can't compile simple C++ programs on Suse 9.1 after installing gcc
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
can't compile simple C++ programs on Suse 9.1 after installing gcc
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
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.