LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-20-2016, 04:36 PM   #1
federicoponzi
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Rep: Reputation: Disabled
Question x86_64-lfs-linux-gnu-gcc: command not found


I'm at chapter 5.7 of LFS. I've got no problems until now, when I tried
Code:
$LFS_TGT-gcc dummy.c
it says:

Code:
x86_64-lfs-linux-gnu-gcc: command not found
Someone has any ideas on why this is happening? Thanks in advance for any help!
 
Old 01-20-2016, 06:01 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,678

Rep: Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669
You must have missed a bit, did you do make install?
Is your PATH variablre correct?
It may be easier to start from scratch as you are so near the begining anyway.
 
Old 01-21-2016, 07:14 AM   #3
federicoponzi
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi and thanks for the answer! Maybe i missed the part where i should have updated my PATH variabile. Where can I find it?

Also it's not the first time that I start again, so I would like to fix instead of repeating. Thanks again!
 
Old 01-21-2016, 07:26 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,678

Rep: Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669
PATH should have been set here:
http://www.linuxfromscratch.org/lfs/...vironment.html
 
Old 01-24-2016, 10:20 AM   #5
cola
Senior Member
 
Registered: Sep 2007
Location: Dhaka,Bangladesh
Distribution: Debian
Posts: 1,031

Rep: Reputation: 64
Quote:
Originally Posted by federicoponzi View Post
I'm at chapter 5.7 of LFS. I've got no problems until now, when I tried
Code:
$LFS_TGT-gcc dummy.c
it says:

Code:
x86_64-lfs-linux-gnu-gcc: command not found
Someone has any ideas on why this is happening? Thanks in advance for any help!
Start from here again: http://www.linuxfromscratch.org/lfs/...roduction.html
 
Old 12-06-2018, 12:26 PM   #6
Vidy
LQ Newbie
 
Registered: Dec 2018
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by cola View Post
Hai, when in chapter 4.3. Adding the LFS User, i got missed this command mistakenly (chown -v lfs $LFS/tools) and continuous till 5.7. Glibc-2.27.

When doing this code ($LFS_TGT-gcc dummy.c) gets the same error says (x86_64-lfs-linux-gnu-gcc: command not found). Is this error because what i missed in chapter 4?

If, yes should i do again chapter 4 all over again and chapter 5 from beginning?

Please help, I'm new to Linux. Thank you
 
Old 12-06-2018, 03:13 PM   #7
KIOPRET
LQ Newbie
 
Registered: Nov 2018
Posts: 20

Rep: Reputation: 0
You had better start chapter 4 again and note everything you do, I think that you`ve missed something important
 
Old 12-06-2018, 10:56 PM   #8
Vidy
LQ Newbie
 
Registered: Dec 2018
Posts: 3

Rep: Reputation: Disabled
Quote:
Originally Posted by KIOPRET View Post
You had better start chapter 4 again and note everything you do, I think that you`ve missed something important
I mean, should I create again LFS as root user all over again?..Because previously I'm already created. Is it possible to do again?

Or should I just do 4.2. Creating the $LFS/tools Directory and 4.4. Setting Up the Environment?
 
Old 12-07-2018, 09:44 AM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,678

Rep: Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669
Once the LFS user is created you dont need to re create it.
 
Old 01-15-2019, 06:06 AM   #10
spatial dreams
LQ Newbie
 
Registered: Jan 2019
Distribution: Archlinux, Debian
Posts: 3

Rep: Reputation: Disabled
LFS 8.8

Greetings all,

I've seemingly followed the instructions listed in 4.4-5.7 without a problem, but I'm still getting the same error as the OP.

some proofs:

Code:
lfs@debian:/mnt/lfs/home/lfs$ echo $LFS $LC_ALL $LFS_TGT $PATH
/mnt/lfs POSIX x86_64-lfs-linux-gnu /tools/bin:/bin:/usr/bin
Code:
lfs@debian:/mnt/lfs/sources/gcc-8.2.0/build$ readlink -f /tools
/mnt/lfs/tools
Code:
lfs@debian:/mnt/lfs/home/lfs$ ls /tools/
bin  etc  include  lib  lib64  libexec  sbin  share  var  x86_64-lfs-linux-gnu
Code:
lfs@debian:/mnt/lfs/home/lfs$ ls -l $LFS
total 44
drwxr-xr-x  2 root root 16384 Dec 31  1969 boot
drwxr-xr-x  3 root root  4096 Jan 15 01:29 home
drwx------  2 root root 16384 Jan 14 23:04 lost+found
drwxrwxrwt  6 lfs  lfs   4096 Jan 15 04:43 sources
drwxr-xr-x 11 lfs  lfs   4096 Jan 15 04:55 tools
but I don't have the gnu-gcc bin :/ so clearly I did something wrong.
Code:
lfs@debian:/mnt/lfs/home/lfs$ ls /tools/bin/
catchsegv  localedef      tzselect                        x86_64-lfs-linux-gnu-ld       x86_64-lfs-linux-gnu-size
gencat     makedb         x86_64-lfs-linux-gnu-addr2line  x86_64-lfs-linux-gnu-ld.bfd   x86_64-lfs-linux-gnu-strings
getconf    mtrace         x86_64-lfs-linux-gnu-ar         x86_64-lfs-linux-gnu-nm       x86_64-lfs-linux-gnu-strip
getent     pcprofiledump  x86_64-lfs-linux-gnu-as         x86_64-lfs-linux-gnu-objcopy  xtrace
iconv      pldd           x86_64-lfs-linux-gnu-c++filt    x86_64-lfs-linux-gnu-objdump
ldd        sotruss        x86_64-lfs-linux-gnu-elfedit    x86_64-lfs-linux-gnu-ranlib
locale     sprof          x86_64-lfs-linux-gnu-gprof      x86_64-lfs-linux-gnu-readelf
I'm following LFS 8.3
Have I posted enough information for us to at least speculate where I went wrong?

Thanks,
SD

Last edited by spatial dreams; 01-19-2019 at 07:51 PM. Reason: LFS version typo
 
Old 01-15-2019, 05:37 PM   #11
spatial dreams
LQ Newbie
 
Registered: Jan 2019
Distribution: Archlinux, Debian
Posts: 3

Rep: Reputation: Disabled
Huh, apparently I double posted.

Last edited by spatial dreams; 01-19-2019 at 07:52 PM. Reason: remove double-post
 
Old 01-16-2019, 10:58 AM   #12
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,678

Rep: Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669Reputation: 669
Quote:
Originally Posted by spatial dreams View Post
...
I'm following LFS 8.8
...
There is no version 8.8, if this is the 1st time you have tried LFS stick to the STABLE version of the book.
 
Old 01-19-2019, 07:48 PM   #13
spatial dreams
LQ Newbie
 
Registered: Jan 2019
Distribution: Archlinux, Debian
Posts: 3

Rep: Reputation: Disabled
My mistake, that was a typo- I've been following version 8.3

Last edited by spatial dreams; 01-19-2019 at 07:50 PM.
 
  


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
gnu-gcc: command not found error after installing glibc in chapter 5.7 of LFS 7.2 Black Death Linux From Scratch 13 10-22-2014 11:47 AM
source ~/.bash_profile bash: -lfs-linux-gnu: command not found k3lt01 Linux From Scratch 15 09-16-2014 02:57 AM
arm-linux-gnu-gcc in Fedora 18: stdio.h not found markmb Linux - Software 2 06-16-2013 07:59 AM
adjusting tool chain section 5.8 i686-lfs-linux-gnu-gcc: command not found rlaybourn Linux From Scratch 7 10-14-2010 09:23 AM
GCC command not found LFS book 6.3, section 6.7.1 cdc5205 Linux From Scratch 1 08-16-2008 02:56 PM

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

All times are GMT -5. The time now is 12:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration