can't compile simple C++ programs on Suse 9.1 after installing gcc
:newbie: I am somewhat of a newbie. I have played with Linux for a few years but now I am using it at home exclusively. I have Suse 9.1 personal and I am trying to install digikam 0.7.1.
I have the source and try to run ./configure and get the following error: configure: error: Your Installation isn't able to compile simple C++ programs. I have GCC installed. (just installed using apt-get) I do have digikam 0.6 installed now but want the new version. Any help would be greatly appreciated. Thanks |
Can you run g++, c++, cc, or gcc on a shell?
It could be you need to run "source /etc/profile" since you just installed a package or you could need to add the bin directory for your gcc installation to your path. |
I get command not found when I try to run g++ and c++.
I ran source /etc/profile and then tried to configure again and got the same error. How do I add the bin directory to my path? Thanks |
Well you have to find out where it is first.
locate g++ will find it so long as your locate database is up to date. If it hasn't be updated sicne you installed it then find / -name "g++" will find it. It could be that there is a seperate g++ package with suse that you need to install. |
gcc is not a cpp compiler. you need to install the g++ package.
|
Thanks,
Any idea where to find the g++ package? |
sourceforge.net, rpmseek.com, rpmfind.com
|
for Suse use Yast to get it.
|
got it through Yast2 once I updated my source location.
Thanks for all of the help |
The same but in SuSE 10 ?
Can you tell me more about the C++ compilers in SuSE10
Thanks |
All times are GMT -5. The time now is 05:07 AM. |