Installation ERROR: unable to find command "g++"

Hello,

I’ve just downloaded a free evaluation version of Intel Fortran compiler 10.1.015. When I install it to openSUSE 10.2, after the commond “./install.sh”, I get a warning as below:

ERROR: unable to find command “g++” !

It appears that one of the missing commands is the ‘g++’ command.
Some Linux distributions do not include ‘g++’ as a part of the ‘gcc’ installation.
Please locate and install the proper ‘g++’ package for your system and restart the installation process for this Intel software product.
Please add the location to the above commands to your PATH and re-run the script.
Please press Enter to continue…

Anyone could tell me how to solve this problem? Thanks!

seb

In my Suse, if I open a console session and enter sudo whereis g++, I get this:

john@suse110:~> sudo whereis g++
root’s password:
g++: /usr/bin/g++ /usr/bin/X11/g++ /usr/share/man/man1/g++.1.gz
john@suse110:~>

That shows me I have it installed. Do you have it installed as shown by that method?

I have openSUSE 10.3.

I opened YaST > Software > Software Managment
Typed g++ in the search field
checked: RPM “Provides” below it (unchecked Name and Summary to speed up a little)
And clicked Search.

Now it seems that the package gcc-cc++ contains g++ (the package is on the OSS repo).

You could do the same and then check the package for intstall and …

Edit: you beat me by one minute!

Well of course… http://www.swerdna.net.au/forumpics/smiley/cool.gif

And I think your advice is good to just go ahead and install gcc-c++

I beat you to it not requiring sudo.

OK, here’s the prize: http://www.swerdna.net.au/forumpics/smiley/beer.gif

Thank you all for your kind advice.

I’ve tried to search it using sudo. But it looks like that I didn’t have g++ installed as the return is just "g++: ".

I also search g++ in the software management but returns no gcc or something like g++.

Could you tell me where can I find a source of g++ to install? Thanks a lot.

Search in yast for gcc and install these: gcc and gcc-c++

Thanks a lot. I’ve installed them and the compiler as well. :slight_smile: