LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-25-2004, 03:01 PM   #1
IceStorm
LQ Newbie
 
Registered: May 2004
Location: Dallas
Posts: 7

Rep: Reputation: 0
C++ compiler cannot create executables


alert!!!!
I've searched hi and low but haven't found any help. Hopefully someone here can lead me to the righteous path of enlightenment.
I'm trying to install some drivers, the INSTALL says to "do the usual make/make install/ configure'. Well when I try any of them I get errors and can go no further.
Quote:
$ make
./configure
loading cache ./config.cache
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
I get this same type of error when I try to install other items too. I've read that people say you need to install the rpm, etc. Ok fine, how? Where? I even read that I need to find out what rpm's I have installed. Fine, how? lol I tried running urpmi at the console and it says 'command no found' so I'm obviously not doing it right. Im really really really new, so I ask that you don't tell me just what to do, but also how to do it.

Please help this rookie. I'm not asking for a fish, I'm asking to be taught how to fish. Thank you very much.
 
Old 05-25-2004, 03:53 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
Quote:
checking for gcc... gcc
You simply don't have a compiler installed. To install it, open Mandrake's 'Software installation' graphical tool and choose to install all 'gcc' and 'g++' packages.
It may be easier to do it under console...Open a terminal and type
su
(will ask you for password, type root's password; beeing root is needed to install programs)
urpmi gcc
(when running urpmi as root you shouldn't get 'no such command' type of error) and then
urpmi g++
 
Old 05-25-2004, 04:04 PM   #3
IceStorm
LQ Newbie
 
Registered: May 2004
Location: Dallas
Posts: 7

Original Poster
Rep: Reputation: 0
I ran the console commands and this is what I received
urpmi gcc
Everything already installed
urpmi g++
no package named g++

so then I tried this
urpmi c++
The following packages contain c++:
Quote:
gcc-c++
gcc2.96-c++
gcc3.4-c++
libflac++2
libflac++2-devel
liboggflac++0
liboggflac++0-devel
libsigc++1.0_0
libsigc++1.0_0-devel
libsigc++1.0_0-examples
libsigc++1.2_5
libsigc++1.2_5-devel
libstdc++2.10
libstdc++2.10-devel
libstdc++5
libstdc++5-devel
libstdc++5-static-devel
libstdc++6
libstdc++6-devel
libstdc++6-static-devel
mpic++
Now what?
 
Old 05-25-2004, 04:15 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,537

Rep: Reputation: 149Reputation: 149
Code:
urpmi gcc3.4-c++
It'll install you the newest version.
 
Old 05-25-2004, 04:15 PM   #5
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
So basically you do, have gcc (c compiler) but not g++(C++ extension for gcc). Do as Mara said, open Mandrake Control Center(you can simply type "mcc" at the terminal to call Mandrake Control Center) and try to install g++ from there. Mandrake can be really tricky to compile things though, you are always better off using Mandrake rpm's.
 
Old 06-14-2004, 01:38 AM   #6
karfei00
Member
 
Registered: May 2004
Posts: 54

Rep: Reputation: 15
i faced the same problem, any idea on redhat 9?
 
Old 06-14-2004, 01:45 AM   #7
IceStorm
LQ Newbie
 
Registered: May 2004
Location: Dallas
Posts: 7

Original Poster
Rep: Reputation: 0
Go to this website:

http://rpm.pbone.net

Search for the complier you're looking for. It will give you the link, if found, to the RPM. Then download it and install it. It worked great for me. Just select Red Hat as your distribution and you should be fine.
 
  


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
C++ compiler cannot create executables eomerek Linux - Newbie 28 12-13-2010 09:14 AM
C compiler cannot create executables packets Linux - Security 3 05-03-2010 05:30 PM
C++ compiler cannot create executables notmatt Linux - Newbie 4 09-30-2004 07:59 AM
C compiler cannot create executables w0lv3rin3 Linux - Software 4 08-07-2004 10:44 AM
C compiler cannot create executables londonboi Debian 2 09-23-2003 02:41 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration