LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-27-2014, 04:30 AM   #1
manoj7410
Member
 
Registered: Jun 2012
Location: India
Distribution: 2.6.x
Posts: 40

Rep: Reputation: Disabled
Question make fails : configure: error: C++ compiler missing or inoperational During gcc-4.8.1


Hi,

I dont have access to ubuntu.com,
And I am using Ubuntu 12.04 / 64 bit.
Need to compile some c++ code that says g++ missing.
Trying to compile gcc-4.8.1 but it fails with the following error.

configure: error: C++ compiler missing or inoperational
make[2]: *** [configure-stage1-libcpp] Error 1
make[2]: Leaving directory `/home/me/Downloads/build_gcc/gcc-4.8.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/me/Downloads/build_gcc/gcc-4.8.1'
make: *** [all] Error 2


Any suggestion instead of apt-get or yum.. ?

Thanks
Mannu
 
Old 01-27-2014, 04:41 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I'm not able to help with getting packages for Ubuntu when you do not have internet access, but....

Is this actually LFS related? I'm asking because I see this:
Quote:
Originally Posted by manoj7410
configure: error: C++ compiler missing or inoperational
make[2]: *** [configure-stage1-libcpp] Error 1
make[2]: Leaving directory `/home/me/Downloads/build_gcc/gcc-4.8.1'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/me/Downloads/build_gcc/gcc-4.8.1'
make: *** [all] Error 2
The bold parts suggest you are either not building an LFS system or you are not following the book.

Assuming this is LFS related: g++/c++ might not be the only thing that is missing (or wrong). Did you run the version check script in the Host System Requirements section?

Last edited by druuna; 01-27-2014 at 04:46 AM.
 
Old 01-27-2014, 05:04 AM   #3
manoj7410
Member
 
Registered: Jun 2012
Location: India
Distribution: 2.6.x
Posts: 40

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by druuna View Post
I'm not able to help with getting packages for Ubuntu when you do not have internet access, but....

Is this actually LFS related? I'm asking because I see this:The bold parts suggest you are either not building an LFS system or you are not following the book.

Assuming this is LFS related: g++/c++ might not be the only thing that is missing (or wrong). Did you run the version check script in the Host System Requirements section?

I do have access to Internet, but I dont have access to ubuntu.com (Barred website in my connection).

Is there any other way, like downloading some tar file of g++ from some other website. So that I dont have to use apt-get or yum ?

Thanks
Mannu
 
Old 01-27-2014, 05:09 AM   #4
manoj7410
Member
 
Registered: Jun 2012
Location: India
Distribution: 2.6.x
Posts: 40

Original Poster
Rep: Reputation: Disabled
Question

I'm not able to help with getting packages for Ubuntu when you do not have internet access, but....

Is this actually LFS related? I'm asking because I see this:The bold parts suggest you are either not building an LFS system or you are not following the book.
Quote:
Originally Posted by druuna View Post
Assuming this is LFS related: g++/c++ might not be the only thing that is missing (or wrong). Did you run the version check script in the Host System Requirements section?
version-check.sh: line 23: g++: command not found
.
.
.
version-check.sh: line 37: g++: command not found
g++ compilation failed


I am already aware of it that I don't have g++.
I need to install it.

Thanks
Mannu
 
Old 01-27-2014, 06:07 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by manoj7410 View Post
version-check.sh: line 23: g++: command not found
.
.
version-check.sh: line 37: g++: command not found
g++ compilation failed

I am already aware of it that I don't have g++.
That wasn't the point I was trying to make. It was/is not clear if this is LFS related. If it is other things might need changing/adding as well (besides g++).

There's also the issue of /home/me/Downloads/ versus $LFS/sources which might indicate this is _not_ LFS related.

Quote:
I need to install it.
Answer limited to g++ and Ubuntu: Can't you use the install cd/dvd you (presumably) used to install Ubuntu?

Last edited by druuna; 01-27-2014 at 06:42 AM.
 
Old 01-27-2014, 10:31 PM   #6
manoj7410
Member
 
Registered: Jun 2012
Location: India
Distribution: 2.6.x
Posts: 40

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by druuna View Post
That wasn't the point I was trying to make. It was/is not clear if this is LFS related. If it is other things might need changing/adding as well (besides g++).
It is not an LFS.

Quote:
Originally Posted by druuna View Post
Answer limited to g++ and Ubuntu: Can't you use the install cd/dvd you (presumably) used to install Ubuntu?
I installed Ubuntu by using an ISO image. But thanks for your suggession. I think I'll get access to ubuntu.com and will install the missing package by using apt-get.

Thanks
Mannu
 
Old 01-28-2014, 02:24 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I've asked a moderator to move this thread as it is not LFS related.
 
Old 01-28-2014, 02:36 AM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
If you have access to getting another ISO and disk, try using Slackware instead. It has everything included already to build LFS. Try this if you can't get access to Ubuntu's resources.
 
  


Reply



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
[SOLVED] Error in 5.5. GCC-4.8.1 - C++ compiler missing or inoperational? eyeeze Linux From Scratch 2 11-23-2013 09:43 PM
configure: error: C++ compiler missing or inoperational while trying to make gcc jfernandez1977 Linux - Software 12 07-05-2013 02:05 PM
[SOLVED] GCC-4.6.2 configure: error: C compiler cannot create executables Andy45 Linux From Scratch 2 03-25-2012 06:34 PM
[SOLVED] GCC make error - lib/cpp fails sanity check n1k0 Linux From Scratch 4 11-16-2011 01:56 PM
Problem with gcc: configure: error: C compiler cannot create executable abefroman SUSE / openSUSE 4 05-11-2005 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:36 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