LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-22-2005, 07:01 PM   #1
cyclebain
LQ Newbie
 
Registered: Jan 2005
Location: Madison, GA
Distribution: Suse
Posts: 7

Rep: Reputation: 0
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
 
Old 01-22-2005, 07:04 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 01-22-2005, 07:13 PM   #3
cyclebain
LQ Newbie
 
Registered: Jan 2005
Location: Madison, GA
Distribution: Suse
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 01-22-2005, 07:26 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 01-23-2005, 12:23 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
gcc is not a cpp compiler. you need to install the g++ package.
 
Old 01-23-2005, 08:26 AM   #6
cyclebain
LQ Newbie
 
Registered: Jan 2005
Location: Madison, GA
Distribution: Suse
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks,
Any idea where to find the g++ package?
 
Old 01-23-2005, 01:04 PM   #7
laceupboots
Member
 
Registered: Dec 2003
Location: Houston
Distribution: Knoppix,lenova yoga 3, Samsung s6 -android
Posts: 307

Rep: Reputation: 30
sourceforge.net, rpmseek.com, rpmfind.com
 
Old 01-23-2005, 06:39 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
for Suse use Yast to get it.
 
Old 01-23-2005, 08:07 PM   #9
cyclebain
LQ Newbie
 
Registered: Jan 2005
Location: Madison, GA
Distribution: Suse
Posts: 7

Original Poster
Rep: Reputation: 0
got it through Yast2 once I updated my source location.
Thanks for all of the help
 
Old 07-04-2007, 08:04 AM   #10
EhabRadwan
LQ Newbie
 
Registered: Jul 2007
Posts: 1

Rep: Reputation: 0
The same but in SuSE 10 ?

Can you tell me more about the C++ compilers in SuSE10

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't compile programs under SuSE 9.3 Personal manuelkuhs SUSE / openSUSE 2 09-29-2005 02:19 PM
"not able to compile simple C++ programs" error mac1234mac Programming 2 09-17-2005 11:16 PM
Can anyone give me a simple no-nonsense guide to installing source programs? G_Freeman76 Red Hat 1 02-27-2005 09:34 AM
how to compile c++ programs with gcc nimra Programming 7 05-17-2004 07:08 AM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration