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 Code:
x86_64-lfs-linux-gnu-gcc: command not found |
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. |
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! |
PATH should have been set here:
http://www.linuxfromscratch.org/lfs/...vironment.html |
Quote:
|
Quote:
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 |
You had better start chapter 4 again and note everything you do, I think that you`ve missed something important
|
Quote:
Or should I just do 4.2. Creating the $LFS/tools Directory and 4.4. Setting Up the Environment? |
Once the LFS user is created you dont need to re create it.
|
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 Code:
lfs@debian:/mnt/lfs/sources/gcc-8.2.0/build$ readlink -f /tools Code:
lfs@debian:/mnt/lfs/home/lfs$ ls /tools/ Code:
lfs@debian:/mnt/lfs/home/lfs$ ls -l $LFS Code:
lfs@debian:/mnt/lfs/home/lfs$ ls /tools/bin/ Have I posted enough information for us to at least speculate where I went wrong? Thanks, SD |
Huh, apparently I double posted.
|
Quote:
|
My mistake, that was a typo- I've been following version 8.3
|
Hi, I've been following the LFS too and I've had the same problem with the GCC. Turns out I found this post: https://stackoverflow.com/questions/...e-or-directory
In which the author suggests the following: Quote:
Yet, I think that an explanation for the error we've been experiencing is needed (that I leave for more experienced users). |
All times are GMT -5. The time now is 01:41 AM. |