LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-30-2019, 09:20 AM   #1
ritik8699
LQ Newbie
 
Registered: Aug 2019
Posts: 2

Rep: Reputation: Disabled
Unhappy V8.4 LFS - Chapter 6.9.1 - configure: error: python not found


Facing error when running this code :-

Code:
CC="gcc -isystem $GCC_INCDIR -isystem /usr/include" \
../configure --prefix=/usr \
--disable-werror \
--enable-kernel=3.2 \
--enable-stack-protector=strong \
libc_cv_slibdir=/lib
unset GCC_INCDIR
The error that i am facing is :-
Quote:
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.
Can anybody help me on this?
Thanks in Advance.
 
Old 08-30-2019, 10:51 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
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
 
Old 08-31-2019, 01:53 PM   #3
GeekBoy
Member
 
Registered: Dec 2006
Distribution: Fedora v6
Posts: 63

Rep: Reputation: 0
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.
 
Old 09-01-2019, 07:09 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,680
Blog Entries: 19

Rep: Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492Reputation: 4492
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.
 
  


Reply



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] v8.4 LFS systemd - chpt 6.9 configure error: python not found GeekBoy Linux From Scratch 2 06-03-2019 11:25 AM
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 01:57 AM
[SOLVED] Can't configure Perl in LFS-SVN (Chapter 5.27). -lgdbm not found corbis_demon Linux From Scratch 6 08-26-2009 01:09 PM
lfs-6.3 - chapter 6: binutils-2.17 - make error regarding libbfd-2.17.so :not found me-$-on Linux From Scratch 5 07-02-2009 02:49 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM

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

All times are GMT -5. The time now is 08:59 PM.

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