LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-12-2013, 08:11 PM   #1
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 69

Rep: Reputation: 2
LFS 7.4 in Fedora 19 C++ compiler not found error


Since I like a challenge, I'm attempting to build LFS 7.4 in Fedora 19 x64.

Below is the code from the version-check script, after bringing the host into compliance by downloading a few packages.

I get stuck on Chapter 5.5, installing Glibc for the first time. After running 'make', I get an error stating that C++ compiler is not found or is not usable, and am unable to proceed further.

Another interesting point is that while I have all of the packages required by the book, the versions in some cases are not the latest required by the book even when using yum to install them. For example, Glibc is version 2.17, but the book recommends 2.18 or later. Any idea why when I try to install via yum it tells me my version 2.17 is already the latest?

Code:
bash, version 4.2.45(1)-release
/bin/sh -> /usr/bin/bash
Binutils: version 2.23.52.0.1-8.fc19 20130226
bison (GNU Bison) 2.6.4
/usr/bin/yacc -> /usr/bin/yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.5.11
GNU Awk 4.0.2
/usr/bin/awk -> /usr/bin/gawk
gcc (GCC) 4.8.2 20131017 (Red Hat 4.8.2-1)
(GNU libc) 2.17
grep (GNU grep) 2.14
gzip 1.5
Linux version 3.9.5-301.fc19.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC) ) #1 SMP Tue Jun 11 19:39:38 UTC 2013
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7.1
Perl version='5.16.3';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 5.1
xz (XZ Utils) 5.1.2alpha
gcc compilation OK
 
Old 12-12-2013, 08:54 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
maybe you need:
Code:
sudo yum install gcc-c++
 
Old 12-13-2013, 12:13 AM   #3
mayur_
Member
 
Registered: Dec 2013
Location: Pune, India
Distribution: Ubuntu
Posts: 46

Rep: Reputation: 1
Install build essentials maybe it'll help as it already contains c++ compiler
 
Old 12-13-2013, 12:19 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by engineer View Post
Any idea why when I try to install via yum it tells me my version 2.17 is already the latest?
Because yum does not look on the developers website for a new version, but in the distro's repository. For Fedora 19 the latest version is 2.17 and this will very likely not change. Exchanging the glibc on a binary distribution is prone to failure and therefore very rarely happens. If you want a newer glibc you will have to go for Fedora 20.

Besides that, Fedora is not by default a good system to build LFS, have a look here: http://www.linuxquestions.org/questi...ed-4175485207/
 
2 members found this post helpful.
Old 12-13-2013, 06:55 AM   #5
engineer
Member
 
Registered: Oct 2007
Distribution: LFS
Posts: 69

Original Poster
Rep: Reputation: 2
I know, I saw the post, which is of course what made me want to try it. I've built it successfully a couple of times on F17 (LFS 7.1 though). I did also see that druuna was able to get along to at least Chapter 6 with no real issues. I tried installing gcc-c++ as suggested above, and received a different error this time (can't remember off the top of my head). Tonight I'll probably reinstall F19 and try again. If that doesn't work, maybe Arch or Slack is the next challenge!
 
Old 12-13-2013, 09:36 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I don't know about Arch, but with Slackware you won't have any problems, it is compliant for building LFS out of the box.
 
  


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
[SOLVED] configure: error: no acceptable C compiler found in $PATH awtz Linux - Newbie 14 04-04-2013 08:39 PM
error : no acceptable C compiler found in $PATH tzonga1 Linux - Software 1 03-02-2005 09:01 PM
error: no acceptable C compiler found in $PATH Tracianddwayne Linux - Newbie 1 12-23-2004 03:18 PM
configure: error: no acceptable C compiler found in $PATH pdemaers Linux - Software 6 05-15-2004 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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