LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can't compile simple C++ programs on Suse 9.1 after installing gcc (https://www.linuxquestions.org/questions/linux-software-2/cant-compile-simple-c-programs-on-suse-9-1-after-installing-gcc-281014/)

cyclebain 01-22-2005 07:01 PM

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

jtshaw 01-22-2005 07:04 PM

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.

cyclebain 01-22-2005 07:13 PM

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

jtshaw 01-22-2005 07:26 PM

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.

__J 01-23-2005 12:23 AM

gcc is not a cpp compiler. you need to install the g++ package.

cyclebain 01-23-2005 08:26 AM

Thanks,
Any idea where to find the g++ package?

laceupboots 01-23-2005 01:04 PM

sourceforge.net, rpmseek.com, rpmfind.com

__J 01-23-2005 06:39 PM

for Suse use Yast to get it.

cyclebain 01-23-2005 08:07 PM

got it through Yast2 once I updated my source location.
Thanks for all of the help

EhabRadwan 07-04-2007 08:04 AM

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.