Why NetBeans can't find Mercurial path? - linux

I have a Linux Mint VM, where I installed formerly NetBeans 12.x (up to 12.6) and now I've updated it to 13.0, all with flatpak, and even starting from a clean setup.
With all those setups, NetBeans can't find Mercurial, even if I really have it in /usr/bin/hg available and working (when used from the shell).
From menu Team / Mercurial / Initialize repository... I get the error "Mercurial could not be found", asking to check PATH.
The strange behavior is that if I even browse for Options and Mercurial Executable Path to /usr/bin I can't see hg in there, while it is in the filesystem!
Is NB browsing somewhere else when I open /usr/bin?
Is it accessing some virtual environment? I'm confused

I have a partial solution: the flatpak package is indeed at fail, as for some reason it's not seeing my /usr/bin but a virtualized (?) directory, where many files are missing - notably hg and hg-ssh
So I removed the package suggested by the Linux Mint Software Manager and installed the package got from the Apache NetBeans site, similarly to what #flied-onion did.
What's still missing is that NetBeans relies on the hgk application as an hg GUI interface for some functions (see Team / View). This is unknown to me, and I don't find it in any (recent) Debian flavor.

Related

How to install Weechat?

I must admit i'm not much of a coder or computer scientist, but in the past a friend installed Weechat on my windows computer using Cygwin (via the Cygwin terminal of course). I have a new computer now thats running windows 8.1 and have installed Cygwin with all of the necessary packages, and downloaded the latest stable version of Weechat (1.2). I am stuck from there though and don't really know which direction to move in, the only thing I have done with Cygwin so far is moved the home terminal folder to a more easier accessible location. Would it be possible to get a step by step walkthrough of how the installation progresses after downloading both the Cygwin component and the Weechat files and scripts?
Before we you can start using WeeChat, there are a few other pieces of software you need to install with CygWin. WeeChat relies on them for its functionality, which is why they are called dependencies.
You can find a detailed list of dependencies and further instructions on this link:
Weechat on Windows
Feel free to ask for further help if the above guide wouldn't suffice.
EDIT
WeeChat is currently available via the CygWin native repositories.
Simply search for weechat in the CygWin package manager.
I already have CygWin installed, what now?
No worries, simply rerun the setup-x86-64.exe* you've downloaded. This process won't remove any of your previously installed packages. At the end of the installation process you'll be able to look for and install WeeChat.
* (on 32-bit systems, the installer would be named setup-x86.exe)

I can't compile CGI project to Linux in Lazarus

I installed Lazarus 1.0.10 and FCL package.
I made a CGI test program to run in my Hostgator account but when I compile it I get this error:
fcllaz.pas(0,0) Fatal: Can not find unit system used by fcllaz.
That if I configure the project to target Linux SO. If I use standard (Windows) it compiles ok, but my hostgator account is Linux.
Does anyone had that kind of problem? How to fix it?
(a.s. If you are trying to do crosscompiling, crosscompiling TO linux is an advanced topic. You are better off with installing a similar *nix system as your host in a VM)
FPC is probably not completely installed. Some Ubuntu/debian versions insist on having to do manual configuration afterwards.
Make sure that
there is a symlink of $prefix/bin/ppc386 to $prefix/lib/fpc//ppc386
make sure there is a /etc/fpc.cfg or ~/.fpc.cfg with a -Fu line in it that points
to $prefix/lib/fpc/$FPCVERSION/units/$FPCTARGET/* (in this case FPC will fill in version and target)
where $PREFIX is the prefix where you installed FPC ( typically /usr or /usr/local )
for more information see the buildfaq

Error when installing Google Plugin for Eclipse into /opt on Linux

I'm following the steps to install the GPE 4.2(Juno) located here https://developers.google.com/eclipse/docs/install-eclipse-4.2
I receive the following error when trying to install the GPE.
Cannot complete the install because one or more required items could
not be found. Software being installed: Google Plugin for Eclipse
4.2 3.1.0.v201208080121-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group
3.1.0.v201208080121-rel-r42) Missing requirement for filter properties ~= $0: Eclipse Platform
4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO (org.eclipse.platform.feature.group
4.2.1.v20120814-120134-9JF7BHVGFyMveli1uX6aTH0q-eAap6PAgOP5mO) requires 'org.eclipse.core.net.linux.x86 [1.1.200.v20120522-1148]' but
it could not be found Cannot satisfy dependency:
From: Google Plugin for Eclipse 4.2 3.1.0.v201208080121-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group
3.1.0.v201208080121-rel-r42)
To: org.eclipse.platform.feature.group 3.8.0
I have eclipse installed for java EE (Juno) on a linux 64bit system (Linux Mint 13)
This only occurs when I try to use the instance of eclipse that I have installed under /opt. I installed another instance of eclipse under my home directory and did not experience this problem. I assume there is a path/permission issue that is causing the problem when trying to use the instance installed under /opt.
What should i do to resolve this problem? I'm trying to conform to the Filesystem Hierarchy Standard. I used the instructions posted here to install eclipse http://colinrrobinson.com/technology/install-eclipse-ubuntu/
You need to install your plugins to Eclipse with the proper permissions to access /opt. There are two options:
Start Eclipse with sudo whenever you want to install/update plugins.
Give your user/group write permissions to /opt/
I personally use #2 and don't have any problems with it.
NOTE: This isn't related to google-plugin-for-eclipse, it is just a generic permissions issue with Linux and your Eclipse install dir.

Installing Qt on Linux (Debian distribution)

I have Qt 4.6.3 on Debian. I need version 4.8.1.
To install it I downloaded the Qt SDK 1.2.1 from the Qt site, where is said that it contains version 4.8.1
After installation I checked Qt version and it is 4.6.3 instead of expected 4.8.1.
What I am doing wrong? And how can I install 4.8.1?
First of all I recommend getting 'official' Debian Qt upgrades by adding the testing (wheezy) repo to your package manager, this way everything on your system will be updated seamlessly in a few clicks.
If you can't do this, then:
Use your package manager to uninstall the existing Qt installation (so that's the runtime libs, plugins, and Qt Creator).
Install the SDK anywhere you like, it installs under one folder anyway.
Update your $PATH to point to the directory with qtcreator, qmake, etc., there are numerous ways of doing this, the simplest is exporting the updated $PATH in your .bashrc. (And optionally make some nice shortcuts for your DE).
Create symlinks in /usr/lib (or /usr/lib64) to point to the Qt libraries the SDK provides, or add a qt.conf file containing the path in your /etc/ld.conf.so.d/ directory and run ldconfig as root.
I'm an openSUSE user myself, so some of the above may slightly different on Debian, hopefully someone with Debian experience can chime in if I'm incorrect.

Mercurial / IIS / No module named osutil

I am trying to get Mercurial to be hosted via "hgweb.cgi" on IIS 7.5. I have everything configured according to http://www.jeremyskinner.co.uk/mercurial-on-iis7/ except for that I installed python 2.6 and Mercurial 1.7.3. When I try to go to the hgweb.cgi script, I get the following error:
"No module named osutil"
After a bit of searching, I've found that I need to install the python-dev packages, but that seems to only apply to unix. Is there anything else I need to get this working on windows?
Thanks.
Note that I tried the mercurial binaries/library.zip on both both HgTortoise and the Mercurial x86 installer available here:
https://www.mercurial-scm.org/downloads
(Mercurial 1.7.3 Inno Setup installer - x86 Windows - does not require admin rights)
I had the same issue trying to re-create an HgWeb server with Mercurial 2.1.1. I posted a question on the Mercurial mailing list.
Because HgWeb requires Python, you have to get Mercurial as a Python module. Fortunately, the Mercurial folks supply one; it's tagged py2.6 with the description
installs Mercurial source as Python modules and thus requires Python 2.6 installed. This is recommended for hgweb setups
Once I ran that installer, HgWeb started working.
Looking at the available downloads and the version specified in the question, it looks like you might have installed TortoiseHg 1.1.8 with Mercurial 1.7.3, which is probably missing some python packages.
I've been researching this problem myself (except I'm trying to run Mercurial via ISAPI), and it appears 1.7.1 is the last version that works with IIS due to dependency problems with msvcr90.dll in all later versions, including the newly released 1.8.2.
See this issue, which ultimately seems to be caused by this still open 1-year-old Python issue.
Judging by the conversation, a fix is not easy. I know of no workarounds, so I am forced to use 1.7.1 in the meantime.
Edit: CGI works with 1.8.2 though, so the above issue seems to only affect running Mercurial through ISAPI.

Resources