I am trying to configure settings to use C/C++ within the Netbeans 6.5 IDE.
- I’m running SUSE 11.1.
- I have the 4.3.3 version of GNU C/C++ installed at /usr/bin/gcc-4.3.3
Netbeans is asking for:
Base Directory:*** /usr/bin/gcc-4.3.3*** I assume…
C Compiler: (need correct location)
C++ Compiler: (need correct location)
Make Command: (need correct location)
Debugger Command: (need correct location)
Perhaps I should be posting this in the Netbeans forum but I thought I would give this a whirl first.
Some of the child folders underneath the base directory are:
–libcpp
–libgcc
–gcc
–cp
I read that I should add the compiler path to my environment variables. How do I append an entry for the environment variables?
I’m somewhat new to Linux. I’m using 11.1.
Thanks again
Hi
It is probably just expecting the path to the executable in your case
it’s just /usr/bin
This environment variable is already set and can be checked by entering
the following command in a console/konsole (command line)
echo $PATH
To see the entire list set in your user environment use the following
command
env
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 1 day 7:25, 1 user, load average: 0.31, 0.22, 0.14
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME
In order to set the environmental variable I just run this command?
PATH = $PATH:/usr/bin/gcc
Hi
That’s not correct!!.. the PATH variable is only for directories not
the application.
If you enter your shell (command line) and enter
echo $PATH
You will see /usr/bin is already present?
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 14:09, 1 user, load average: 0.11, 0.23, 0.17
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME
Yes I see /usr/bin, but shouldn’t I be setting the path to where the C compiler is located, which is /usr/bin/gcc-4.3.3
Ok, looks like I have it working now. I can compile, run C programs natively as well as within Netbeans.
I didn’t have to set the PATH variable at all.
I typed gcc at the command line and it said it wasn’t installed. So then I ran something like sudo zypp whatever to install it.
I then pointed the Netbeans IDE to look for the C compiler, debugger, etc.
As a side question, where should I be installing applications that I want globally to all users? Should this be /usr/bin ?
Thanks again for your help.
Hi
There or /usr/local/bin, you may wish to read this about what goes
where (FHS 2.2) if you start using the OBS (openSuSE build Service)
http://www.pathname.com/fhs/
BTW, installing gcc is just a softlink to gcc-4.3 (and thats an
app not a directory )
–
Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.1 (i586) Kernel 2.6.27.21-0.1-pae
up 0:32, 1 user, load average: 0.11, 0.20, 0.23
ASUS eeePC 1000HE ATOM N280 1.66GHz | GPU Mobile 945GM/GMS/GME