LinuxQuestions.org
Help answer threads with 0 replies.
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 06-03-2010, 06:51 PM   #1
slvrsplsh
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Rep: Reputation: 0
Unhappy Unable to compile programs


I am having a problem I have never encountered before. When I try to install programs, I get a failure to compile error in configure. I have tried to install Prozilla, Prozgui, and Aria2, but I get the same message for each. The message follows:

./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for cppunit-config... no
checking for Cppunit - version >= 1.10.2... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/home/david/Downloads/Aria2/aria2-1.9.3':
configure: error: C++ compiler cannot create executables

Can someone help?
Thanks,
Dave
 
Old 06-03-2010, 07:14 PM   #2
mryuck
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 23
did you install gcc/g++?

Last edited by mryuck; 06-03-2010 at 07:15 PM.
 
Old 06-03-2010, 07:19 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,456

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
this is your problem
Quote:
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking whether the C++ compiler works... no
you do not have gcc installed

also please , next time, include more info
like WHAT distro ( an version) you are using
 
Old 06-03-2010, 08:50 PM   #4
slvrsplsh
LQ Newbie
 
Registered: Jun 2010
Posts: 5

Original Poster
Rep: Reputation: 0
gcc IS installed

I am using PCLinuxOS 2009. Gcc IS installed. Although I am a newbie to Linux Questions, I have been a Linux user for over 5 years and have never had this problem before.
 
Old 06-03-2010, 08:58 PM   #5
mac.tieu
Member
 
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65

Rep: Reputation: 22
Quote:
Originally Posted by slvrsplsh View Post
I am using PCLinuxOS 2009. Gcc IS installed. Although I am a newbie to Linux Questions, I have been a Linux user for over 5 years and have never had this problem before.
There are maybe a 'config.log' file in source dirertory after 'configure'. If so, have a look at it.

MT.
 
Old 06-03-2010, 09:29 PM   #6
mryuck
Member
 
Registered: Feb 2010
Posts: 107

Rep: Reputation: 23
Im not sure if your distribution packages gcc and g++ together or not but:
Is it possible that gcc and g++ are different versions?
For some ridiculous reason is gcc on a partition that is not mounted?

It really looks like gcc is missing!
check your version. gcc -v
 
Old 06-04-2010, 02:05 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,311

Rep: Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573
PCLinuxOS 2009 : apt-get install gcc-c++

.. Or use Synaptic for the package install.

..
 
Old 06-04-2010, 06:02 AM   #8
TheSergon13
LQ Newbie
 
Registered: Feb 2010
Location: Portugal
Posts: 10

Rep: Reputation: 0
Try gcc -v and see if you have permissions to execute it. You can do it once with your user and another as root user.
Maybe your user has no permission.
Remember,
sudo ./configure
is not the same than
sudo su
./configure

1st sometimes does not work
 
Old 06-04-2010, 06:06 AM   #9
TheSergon13
LQ Newbie
 
Registered: Feb 2010
Location: Portugal
Posts: 10

Rep: Reputation: 0
Quote:
I am using PCLinuxOS 2009. Gcc IS installed. Although I am a newbie to Linux Questions, I have been a Linux user for over 5 years and have never had this problem before.
You installed gcc, but did you add its directory to environment variable PATH ?
 
Old 06-04-2010, 11:15 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,311

Rep: Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573Reputation: 3573
@TheSergon13 : #9 : gcc is not a directory.

#8 : No sudo on PCLinuxOS. And you are not supposed
to do 'su' to run ./configure
..
 
  


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
Unable to compile C++ programs.make:g++ command not found error.Error 127 PrathuD Programming 3 03-16-2009 01:44 PM
Unable to compile my programs ranjit.singh Linux - Newbie 1 10-29-2008 11:46 PM
Unable to compile gtk programs posix_memalign Programming 7 08-19-2008 03:53 PM
how should i compile c programs?? vbnandu86 Fedora 3 09-01-2006 08:15 AM
cannot compile c programs umeshpandey007 Linux - Newbie 7 08-29-2005 10:19 PM

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

All times are GMT -5. The time now is 03:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration