LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-21-2009, 10:15 PM   #1
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Rep: Reputation: 16
failed source install, says C++ compiler required


Code:
[jeremy@OzzyLinux amsn-0.98.1]$ ./configure
checking for prefix by checking for wish... no
which: no tclsh in (/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jeremy/bin)
expr: syntax error
./configure: line 2397: test: too many arguments
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
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 we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
which: no g++ in (/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/jeremy/bin)
configure: error: You need a C++ compiler (g++) to compiler aMSN. Please install g++ and try again
yet I do have gcc installed

Code:
[jeremy@OzzyLinux amsn-0.98.1]$ sudo yum install gcc
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package gcc-4.4.2-7.fc12.i686 already installed and latest version
Nothing to do
I think I had this problem before but I just reinstalled to fix it. Any ideas that could be causing this? I tried removing and reinstalling gcc but that didn't seem to resolve it. I'm running Fedora 12.

Thanks,
 
Old 12-21-2009, 10:18 PM   #2
worm5252
Member
 
Registered: Oct 2004
Location: Atlanta
Distribution: CentOS, RHEL, HP-UX, OS X
Posts: 567

Rep: Reputation: 57
Code:
sudo yum install g++
 
Old 12-21-2009, 10:20 PM   #3
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
yeah tried that one earlier too

Code:
[jeremy@OzzyLinux amsn-0.98.1]$ sudo yum install g++
[sudo] password for jeremy: 
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
No package g++ available.
Nothing to do
 
Old 12-21-2009, 10:26 PM   #4
zyrax
LQ Newbie
 
Registered: Dec 2009
Distribution: Ubuntu/Debian
Posts: 8

Rep: Reputation: 1
Try this:
Code:
sudo yum install gcc-g++
 
Old 12-21-2009, 10:29 PM   #5
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
Code:
[jeremy@OzzyLinux amsn-0.98.1]$ sudo yum install gcc-g++
[sudo] password for jeremy: 
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
No package gcc-g++ available.
Nothing to do

:/
 
Old 12-21-2009, 10:32 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
yum search g++

?



I can't believe it won't pick it up - it's SO commonplace.
What distro is this?
 
Old 12-21-2009, 10:35 PM   #7
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
Code:
[jeremy@OzzyLinux amsn-0.98.1]$ sudo yum search g++
[sudo] password for jeremy: 
Loaded plugins: presto, refresh-packagekit
================================= Matched: g++ =================================
arm-gp2x-linux-gcc-c++.i686 : Cross Compiling GNU G++ targeted at arm-gp2x-linux
avr-gcc-c++.i686 : Cross Compiling GNU GCC targeted at avr
It's running Fedora 12 - I agree, quite perplexing
 
Old 12-21-2009, 10:47 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Are you trying to cross-compile, or is this some funky development
platform?

Try
yum install avr-gcc-c++
if that's the target platform for your aMSN.
 
Old 12-21-2009, 10:56 PM   #9
OzzyBlood
LQ Newbie
 
Registered: Nov 2009
Distribution: Fedora 12
Posts: 23

Original Poster
Rep: Reputation: 16
I downloaded and installed the avr-gcc-c++ but it still won't compile, same error message.
Strange, it's installed, but it's just not finding it.

Not sure what cross compiling is so I'm going to go with negative for that answer.
As for development platform? Shouldn't be, downloaded it from fedoraproject a few weeks back.

Oh well, if another reinstall is needed no big deal.
 
Old 12-21-2009, 11:50 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Well ... that seems a bit over the top. What does
uname -a
tell you about your system, what does your repository list look like?



Cheers,
Tink
 
Old 12-22-2009, 08:16 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) su

2) yum install gcc-c++ tcl-devel glibc-headers

.. provides the c++ / g++ compiler + required headers
.. and provides the " tcl shell " = 'tclsh'

.....
 
  


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
Problem with C compiler when trying to install from source Brian5 Ubuntu 8 01-06-2007 08:41 PM
Mplayer Install from source failed? Philips Linux - Software 12 11-02-2006 05:23 PM
glibc 2.3.6 - configure: error: compiler support for __thread is required egghead Linux - General 0 02-26-2006 09:00 AM
Info Required for Turbo C++ compiler alix123 Programming 3 04-28-2005 10:17 AM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:15 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
Open Source Consulting | Domain Registration