By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,233 Members | 1,790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,233 IT Pros & Developers. It's quick & easy.

g++: command not found!

P: n/a
JS
When I write g++ in a shell I get the errormessage:

g++: command not found

But when I open Synaptic and search for g++ I have both**g++-2.95/3.2/3.4
listed as being installed.

Hope someone can help!!
Jul 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Zak
Make sure the exe files are registered in the system dir (windows) or
/bin (Linux).

-Zak

Jul 23 '05 #2

P: n/a
> When I write g++ in a shell I get the errormessage:

g++: command not found

But when I open Synaptic and search for g++ I have
both**g++-2.95/3.2/3.4 listed as being installed.


Use the command "whereis" to find g++.

What is the output of "whereis g++" ?
Jul 23 '05 #3

P: n/a
On my (Ubuntu linux box) a version number is added to the name
martin@ubuntu:~ $ ls /usr/bin/g++*
/usr/bin/g++-3.4
martin@ubuntu:~ $

Jul 23 '05 #4

P: n/a
wi******@hotmail.com wrote:
On my (Ubuntu linux box) a version number is added to the name
martin@ubuntu:~ $ ls /usr/bin/g++*
/usr/bin/g++-3.4
martin@ubuntu:~ $


If you installed 3.4.x with an rpm, it could be called g++_34

does it recognize gcc, c++ ?
Jul 23 '05 #5

P: n/a
Apparently, _Zak_, on 30/03/05 09:11,typed:
Make sure the exe files are registered in the system dir (windows) or
/bin (Linux).

-Zak


Try "dpkg -L g++". On Debian Sarge, I get:
{tmp}> dpkg -L g++
/.
/usr
/usr/bin
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/doc
/usr/bin/i386-linux-g++
/usr/bin/g++
/usr/share/man/man1/i386-linux-g++.1.gz
/usr/share/man/man1/g++.1.gz
/usr/share/doc/g++
and I see that I have g++ in /usr/bin. You could also try "dpkg -L g++ |
grep bin", or "dpkg -L gcc | grep bin".

->HS

--
Please remove the underscores ( the '_' symbols) from my email address
to obtain the correct one. Apologies, but the fudging is to remove spam.
Jul 23 '05 #6

P: n/a
no, but i could manually make a link of course. but usually i work
with a makefile, so i do not see a problem with this

Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.