V8.4 LFS - Chapter 6.9.1 - configure: error: python not found
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.
checking if gcc -isystem -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: python
*** Check the INSTALL file for required versions.
Either you don't have Python3 on your host system or your Python3 is too old. The error message tells you what to do. Section 2.2 lists what you need to have on your build host and how to check if you have it.
Oops! I didn't notice that this is a Chapter 6 build. In that case, the Python3 you should be using is the one you built in Chapter 5. The command should be in /tools/bin, which is at the end of your command path if you have chrooted properly.
Last edited by hazel; 08-30-2019 at 11:13 AM.
Reason: Added paragraph
I have had that same error ( I made a post about it here)
You have made a mistake along the way somewhere. I suggest you do it over again.
I have created a text file with everything I will/have entered for the build so I have it all in front of me, and in sections for easy readibility
Going over it a few times, I have seen some minor problems.
If he simply forgot to build Python3, he can at this stage still recover. Remember, this is the glibc build, so his binutils and gcc are still the unadjusted ones that will correctly build anything in Chapter 5. And the build order in most of Chapter 5 is irrelevant (in practice, things are built in alphabetical order). Whereas in Chapter 6, of course, the correct order is essential.
So this is one of the rare places where you can actually make a correction.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.