On 2/25/19 12:22 PM, Pei Jia wrote:

To whom it may concern:


I'm building LFS, so far everything is good, until *Python while constructing a temporary system*.

http://www.linuxfromscratch.org/lfs/view/systemd/chapter05/Python.html


 1.   If I strictly follow what's instructed, I obtained the following
    *ERROR* messages:

/INFO: Could not locate ffi libs and/or headers//
///mnt/lfs/sources/python/Python-3.7.2/Modules/_dbmmodule.c:16:10: fatal error: ndbm.h: No such file or directory//
// #include <ndbm.h>//
//          ^~~~~~~~//
//compilation terminated.//
//In file included from ./Include/py_curses.h:36,//
//                 from /mnt/lfs/sources/python/Python-3.7.2/Modules/_curses_panel.c:15:// ///usr/include/ncursesw/curses.h:60:10: fatal error: ncursesw/ncurses_dll.h: No such file or directory//
// #include <ncursesw/ncurses_dll.h>//
//          ^~~~~~~~~~~~~~~~~~~~~~~~//
//compilation terminated.//
///mnt/lfs/sources/python/Python-3.7.2/Modules/_hashopenssl.c:23:10: fatal error: openssl/evp.h: No such file or directory//
// #include <openssl/evp.h>//
//          ^~~~~~~~~~~~~~~//
//compilation terminated.//
///mnt/lfs/sources/python/Python-3.7.2/Modules/nismodule.c:17:10: fatal error: rpc/rpc.h: No such file or directory//
// #include <rpc/rpc.h>//
//          ^~~~~~~~~~~//
//compilation terminated.//
//In file included from ./Include/py_curses.h:36,//
//                 from /mnt/lfs/sources/python/Python-3.7.2/Modules/_cursesmodule.c:113:// ///usr/include/ncursesw/curses.h:60:10: fatal error: ncursesw/ncurses_dll.h: No such file or directory//
// #include <ncursesw/ncurses_dll.h>//
//          ^~~~~~~~~~~~~~~~~~~~~~~~//
//compilation terminated./


2. After some investigation, I added up *2 includedirs* as:

/./configure --prefix=/tools --without-ensurepip --includedir=/usr/include --includedir=/usr/include/x86_64-linux-gnu/

Did you use the sed?

sed -i '/def add_multiarch_paths/a \        return' setup.py

What is you host system?

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to