Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Also, when chrooted, I look at the binaries in /tools/bin :
There is neither awk nor gawk.
Aren't they (one or the other) supposed to be present here ? Given the installation in the first pass (Chapter 5) ?
Thanks.
Well I tried manually copying both gawk and awk in the /tools/bin directory (while being root, not in chroot env) and;
- Gawk is found but the version is not recognized. The same error then appears
- Awk is detected, but the error is now; /tools/bin/awk: no such file or directory.
I also tried reinstalling gawk as in the 5.3 section (logged as lfs user), but it still doesnt appear in the tools binaries.
I don't understand, because I followed the steps carefully.
Should these be in the /tools/bin directory after install ?
As well, I changed the permissions back to what they were before the "chown root:root $LFS/tools"
But I end up getting this error while issuing "make install":
lfs@desktop-mkc5ii4:/mnt/lfs/sources/gawk-4.2.1$ make install
Making install in support
make[1]: Entering directory '/mnt/lfs/sources/gawk-4.2.1/support'
make[2]: Entering directory '/mnt/lfs/sources/gawk-4.2.1/support'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1/support'
make[1]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1/support'
Making install in .
make[1]: Entering directory '/mnt/lfs/sources/gawk-4.2.1'
make[2]: Entering directory '/mnt/lfs/sources/gawk-4.2.1'
/tools/bin/mkdir -p '/tools/bin'
./install-sh -c gawk '/tools/bin'
cp: cannot create regular file '/tools/bin/_inst.11639_': Permission denied
make[2]: *** [Makefile:604: install-binPROGRAMS] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1'
make[1]: *** [Makefile:1028: install-am] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/gawk-4.2.1'
make: *** [Makefile:725: install-recursive] Error 1
A last thing I tried: I installed gawk as in step 5.23 but while logged as root.
No it appears in the /tools/bin directory, but in the glibc configuration process I get this error output:
checking for gawk... gawk
checking version of gawk... v. ?.??, bad
checking for bison... bison
checking version of bison... 3.0.5, ok
checking if gcc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include -isystem /usr/include is sufficient to build libc... yes
checking for nm... nm
checking for python3... no
checking for python... no
configure: error:
*** These critical programs are missing or too old: gawk
*** Check the INSTALL file for required versions.
This error is actually the same as when I manually copy the gawk binary from my /usr/bin directory to the /tools/bin directory.
I also tried reinstalling gawk as in the 5.3 section (logged as lfs user), but it still doesnt appear in the tools binaries.
I don't understand, because I followed the steps carefully.
Should these be in the /tools/bin directory after install ?
Thanks again
Something is wrong. You'll have to figure out where things are going if you want to fix this.
I would check your build environment against chapter 04. Just where exactly does /tools point
at? Try 'readlink /tools'. It should point to /mnt/lfs, if you follow the book correctly.
About right now anyone else on this forum would tell you that it is time to start over
from scratch. No new LFS user wants to hear that news. But, keep looking.
Ahah ok I'll take a look at it.
Yes of course not fun to start over, but I wanted to solve this in order to learn something that I would not face if everything went well !
I'll keep you in touch !
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.