-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip not working #334
Comments
Thanks for the report. Based on the output, it looks like the attempt to look up zlib library is not working as expected:
I am attempting to reproduce the issue setting the environment using the corresponding docker image. |
After setting up the environment using the following, I am able to reproduce. Download docker image
Shell into the imageThen, shell into the image:
After confirming the system is the right one, install the build requirements:
Install glibc static library. See https://stackoverflow.com/a/73242284/1539918
Install zlib
Download source, configure & build:
Configure output
Complete configuration output-- The C compiler identification is GNU 8.5.0 -- The ASM compiler identification is GNU -- Found assembler: /usr/bin/cc -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Setting CMAKE_FIND_LIBRARY_SUFFIXES to ".a" because of WITH_STATIC_DEPENDENCIES=ON -- Setting BUILD_EXTENSIONS_AS_BUILTIN to ON because of WITH_STATIC_DEPENDENCIES=ON -- Setting BUILD_LIBPYTHON_SHARED to OFF because of WITH_STATIC_DEPENDENCIES=ON -- Appending -static to CMAKE_EXE_LINKER_FLAGS because of WITH_STATIC_DEPENDENCIES=ON -- SRC_DIR: /root/scratch/Python-3.9.17 -- PY_VERSION : 3.9.17 -- PY_VERSION_LONG: 3.9.17 -- Found Git: /usr/bin/git (found version "2.39.3") -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux-GNU' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux-GNU/8.5.0' does not exist -- Setting PY_SSL_DEFAULT_CIPHER_STRING to 'python' -- The system name is Linux -- The system processor is x86_64 -- The system version is 5.15.0-76-generic -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) -- BZIP2_INCLUDE_DIR=BZIP2_INCLUDE_DIR-NOTFOUND -- BZIP2_LIBRARIES=BZIP2_LIBRARY-NOTFOUND -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) -- CURSES_LIBRARIES=CURSES_CURSES_LIBRARY-NOTFOUND -- PANEL_LIBRARIES=PANEL_LIBRARY-NOTFOUND -- TINFO_LIBRARY=TINFO_LIBRARY-NOTFOUND -- GPM_LIBRARY=GPM_LIBRARY-NOTFOUND -- Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR) -- EXPAT_LIBRARIES= -- EXPAT_INCLUDE_DIRS= -- LibFFI_INCLUDE_DIR=LibFFI_INCLUDE_DIR-NOTFOUND -- LibFFI_LIBRARY=LibFFI_LIBRARY-NOTFOUND -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) (Required is at least version "0.9.7") -- OPENSSL_LIBRARIES=OPENSSL_SSL_LIBRARY-NOTFOUND;OPENSSL_CRYPTO_LIBRARY-NOTFOUND -- OPENSSL_INCLUDE_DIR=OPENSSL_INCLUDE_DIR-NOTFOUND -- Could NOT find Tclsh (missing: TCL_TCLSH) -- Could NOT find TCL (missing: TCL_LIBRARY TCL_INCLUDE_PATH) -- Could NOT find TCLTK (missing: TCL_LIBRARY TCL_INCLUDE_PATH TK_LIBRARY TK_INCLUDE_PATH) -- Could NOT find TK (missing: TK_LIBRARY TK_INCLUDE_PATH) -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.11") -- ZLIB_INCLUDE_DIRS= -- ZLIB_LIBRARIES=ZLIB_LIBRARY-NOTFOUND -- GDBM_INCLUDE_PATH=GDBM_INCLUDE_PATH-NOTFOUND -- GDBM_LIBRARY=GDBM_LIBRARY-NOTFOUND -- GDBM_COMPAT_LIBRARY=GDBM_COMPAT_LIBRARY-NOTFOUND -- NDBM_TAG= -- _INCLUDE_PATH= -- LZMA_INCLUDE_PATH=LZMA_INCLUDE_PATH-NOTFOUND -- LZMA_LIBRARY=LZMA_LIBRARY-NOTFOUND -- READLINE_INCLUDE_PATH=READLINE_INCLUDE_PATH-NOTFOUND -- READLINE_LIBRARY=READLINE_LIBRARY-NOTFOUND -- Could NOT find SQLite3 (missing: SQLite3_INCLUDE_DIR SQLite3_LIBRARY) -- SQLite3_INCLUDE_DIRS=SQLite3_INCLUDE_DIR-NOTFOUND -- SQLite3_LIBRARIES=SQLite3_LIBRARY-NOTFOUND -- Checking WITH_HASH_ALGORITHM option -- Checking WITH_HASH_ALGORITHM option [default] -- Checking ABIFLAGS - -- Checking SOABI - cpython-39-x86_64-linux-gnu -- Looking for include file dirent.h -- Looking for include file dirent.h - found -- Looking for dirfd -- Looking for dirfd - found -- Looking for include file alloca.h -- Looking for include file alloca.h - found -- Looking for include file asm/types.h -- Looking for include file asm/types.h - found -- Looking for include file arpa/inet.h -- Looking for include file arpa/inet.h - found -- Looking for include file bluetooth/bluetooth.h -- Looking for include file bluetooth/bluetooth.h - not found -- Looking for include file bluetooth.h -- Looking for include file bluetooth.h - not found -- Looking for include file conio.h -- Looking for include file conio.h - not found -- Looking for include file crypt.h -- Looking for include file crypt.h - found -- Looking for include file curses.h -- Looking for include file curses.h - not found -- Looking for include file direct.h -- Looking for include file direct.h - not found -- Looking for include file dlfcn.h -- Looking for include file dlfcn.h - found -- Looking for include file errno.h -- Looking for include file errno.h - found -- Looking for include file fcntl.h -- Looking for include file fcntl.h - found -- Looking for include file fpu_control.h -- Looking for include file fpu_control.h - found -- Looking for include file grp.h -- Looking for include file grp.h - found -- Looking for include file ieeefp.h -- Looking for include file ieeefp.h - not found -- Looking for include file inttypes.h -- Looking for include file inttypes.h - found -- Looking for include file io.h -- Looking for include file io.h - not found -- Looking for include file langinfo.h -- Looking for include file langinfo.h - found -- Looking for include file libintl.h -- Looking for include file libintl.h - found -- Looking for include file libutil.h -- Looking for include file libutil.h - not found -- Looking for include file linux/tipc.h -- Looking for include file linux/tipc.h - found -- Looking for include file locale.h -- Looking for include file locale.h - found -- Looking for include file sys/socket.h -- Looking for include file sys/socket.h - found -- Looking for 3 include files asm/types.h, ..., linux/netlink.h -- Looking for 3 include files asm/types.h, ..., linux/netlink.h - found -- Looking for 3 include files asm/types.h, ..., linux/qrtr.h -- Looking for 3 include files asm/types.h, ..., linux/qrtr.h - found -- Looking for include files sys/socket.h, linux/can.h -- Looking for include files sys/socket.h, linux/can.h - found -- Looking for include files sys/socket.h, linux/can/bcm.h -- Looking for include files sys/socket.h, linux/can/bcm.h - found -- Looking for include files sys/socket.h, linux/can/j1939.h -- Looking for include files sys/socket.h, linux/can/j1939.h - not found -- Looking for include files sys/socket.h, linux/can/raw.h -- Looking for include files sys/socket.h, linux/can/raw.h - found -- Looking for include files sys/socket.h, linux/vm_sockets.h -- Looking for include files sys/socket.h, linux/vm_sockets.h - found -- Looking for include file mach-o/dyld.h -- Looking for include file mach-o/dyld.h - not found -- Looking for include file memory.h -- Looking for include file memory.h - found -- Looking for include file minix/config.h -- Looking for include file minix/config.h - not found -- Looking for include file ncurses.h -- Looking for include file ncurses.h - not found -- Looking for include file ncurses/panel.h -- Looking for include file ncurses/panel.h - not found -- Looking for include file netdb.h -- Looking for include file netdb.h - found -- Looking for include file netinet/in.h -- Looking for include file netinet/in.h - found -- Looking for include file netpacket/packet.h -- Looking for include file netpacket/packet.h - found -- Looking for include file panel.h -- Looking for include file panel.h - not found -- Looking for include file poll.h -- Looking for include file poll.h - found -- Looking for include file process.h -- Looking for include file process.h - not found -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for include file pty.h -- Looking for include file pty.h - found -- Looking for include file pwd.h -- Looking for include file pwd.h - found -- Looking for include files stdio.h, readline/readline.h -- Looking for include files stdio.h, readline/readline.h - not found -- Looking for include file semaphore.h -- Looking for include file semaphore.h - found -- Looking for include file shadow.h -- Looking for include file shadow.h - found -- Looking for include file signal.h -- Looking for include file signal.h - found -- Looking for include file spawn.h -- Looking for include file spawn.h - found -- Looking for include file stdint.h -- Looking for include file stdint.h - found -- Looking for include file stdlib.h -- Looking for include file stdlib.h - found -- Looking for include file strings.h -- Looking for include file strings.h - found -- Looking for include file string.h -- Looking for include file string.h - found -- Looking for include file stropts.h -- Looking for include file stropts.h - not found -- Looking for include file sysexits.h -- Looking for include file sysexits.h - found -- Looking for include file sys/audioio.h -- Looking for include file sys/audioio.h - not found -- Looking for include file sys/bsdtty.h -- Looking for include file sys/bsdtty.h - not found -- Looking for include file sys/epoll.h -- Looking for include file sys/epoll.h - found -- Looking for include file sys/event.h -- Looking for include file sys/event.h - not found -- Looking for include file sys/file.h -- Looking for include file sys/file.h - found -- Looking for include file sys/loadavg.h -- Looking for include file sys/loadavg.h - not found -- Looking for include file sys/lock.h -- Looking for include file sys/lock.h - not found -- Looking for include file sys/sysmacros.h -- Looking for include file sys/sysmacros.h - found -- Looking for include file sys/mkdev.h -- Looking for include file sys/mkdev.h - not found -- Looking for include file sys/mman.h -- Looking for include file sys/mman.h - found -- Looking for include file sys/modem.h -- Looking for include file sys/modem.h - not found -- Looking for include file sys/param.h -- Looking for include file sys/param.h - found -- Looking for include file sys/poll.h -- Looking for include file sys/poll.h - found -- Looking for include file sys/random.h -- Looking for include file sys/random.h - found -- Looking for include file sys/resource.h -- Looking for include file sys/resource.h - found -- Looking for include file sys/select.h -- Looking for include file sys/select.h - found -- Looking for include file sys/statvfs.h -- Looking for include file sys/statvfs.h - found -- Looking for include file sys/stat.h -- Looking for include file sys/stat.h - found -- Looking for include file sys/timeb.h -- Looking for include file sys/timeb.h - found -- Looking for include file sys/termio.h -- Looking for include file sys/termio.h - not found -- Looking for include file sys/times.h -- Looking for include file sys/times.h - found -- Looking for include file sys/time.h -- Looking for include file sys/time.h - found -- Looking for include file sys/types.h -- Looking for include file sys/types.h - found -- Looking for include file sys/un.h -- Looking for include file sys/un.h - found -- Looking for include file sys/utsname.h -- Looking for include file sys/utsname.h - found -- Looking for include file sys/wait.h -- Looking for include file sys/wait.h - found -- Looking for include file termios.h -- Looking for include file termios.h - found -- Looking for include file term.h -- Looking for include file term.h - not found -- Looking for include file unistd.h -- Looking for include file unistd.h - found -- Looking for include file util.h -- Looking for include file util.h - not found -- Looking for include file utime.h -- Looking for include file utime.h - found -- Looking for include file wchar.h -- Looking for include file wchar.h - found -- Looking for 4 include files stdlib.h, ..., float.h -- Looking for 4 include files stdlib.h, ..., float.h - found -- Looking for include file stdarg.h -- Looking for include file stdarg.h - found -- Looking for include file endian.h -- Looking for include file endian.h - found -- Looking for include file sched.h -- Looking for include file sched.h - found -- Looking for include file linux/memfd.h -- Looking for include file linux/memfd.h - found -- Looking for include file linux/random.h -- Looking for include file linux/random.h - found -- Looking for include file sys/devpoll.h -- Looking for include file sys/devpoll.h - not found -- Looking for include file sys/endian.h -- Looking for include file sys/endian.h - not found -- Looking for include file sys/ioctl.h -- Looking for include file sys/ioctl.h - found -- Looking for include file sys/memfd.h -- Looking for include file sys/memfd.h - not found -- Looking for include files sys/types.h, sys/kern_control.h -- Looking for include files sys/types.h, sys/kern_control.h - not found -- Looking for include file sys/sendfile.h -- Looking for include file sys/sendfile.h - found -- Looking for include file sys/syscall.h -- Looking for include file sys/syscall.h - found -- Looking for include file sys/sys_domain.h -- Looking for include file sys/sys_domain.h - not found -- Looking for include file sys/uio.h -- Looking for include file sys/uio.h - found -- Looking for include file sys/xattr.h -- Looking for include file sys/xattr.h - found -- Looking for 4 include files stdlib.h, ..., net/if.h -- Looking for 4 include files stdlib.h, ..., net/if.h - found -- ptmx: //dev/ptmx ptc: HAVE_DEV_PTC-NOTFOUND -- Looking for acosh -- Looking for acosh - not found -- Looking for openpty -- Looking for openpty - not found -- Found libutil: /usr/lib64/libutil.a -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Checking for RAND_egd in -lcrypto -- Checking for RAND_egd in -lcrypto - no -- Checking for XOPEN_SOURCE -- Checking for XOPEN_SOURCE - yes -- Checking for Large File Support -- Checking for Large File Support - yes -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of double -- Check size of double - done -- Check size of float -- Check size of float - done -- Check size of fpos_t -- Check size of fpos_t - done -- Check size of int -- Check size of int - done -- Check size of long -- Check size of long - done -- Check size of long double -- Check size of long double - done -- Check size of long long -- Check size of long long - done -- Check size of off_t -- Check size of off_t - done -- Check size of pid_t -- Check size of pid_t - done -- Check size of pthread_t -- Check size of pthread_t - done -- Check size of short -- Check size of short - done -- Check size of size_t -- Check size of size_t - done -- Check size of ssize_t -- Check size of ssize_t - done -- Check size of time_t -- Check size of time_t - done -- Check size of uintptr_t -- Check size of uintptr_t - done -- Check size of void * -- Check size of void * - done -- Check size of wchar_t -- Check size of wchar_t - done -- Check size of _Bool -- Check size of _Bool - done -- Looking for alarm -- Looking for alarm - found -- Looking for alloca -- Looking for alloca - found -- Looking for altzone -- Looking for altzone - not found -- Looking for bind_textdomain_codeset -- Looking for bind_textdomain_codeset - found -- Looking for chflags -- Looking for chflags - not found -- Looking for chown -- Looking for chown - found -- Looking for chroot -- Looking for chroot - found -- Looking for clock -- Looking for clock - found -- Looking for confstr -- Looking for confstr - found -- Looking for ctermid -- Looking for ctermid - found -- Looking for ctermid_r -- Looking for ctermid_r - not found -- Looking for dup2 -- Looking for dup2 - found -- Looking for epoll_create -- Looking for epoll_create - found -- Looking for epoll_create1 -- Looking for epoll_create1 - found -- Looking for execv -- Looking for execv - found -- Looking for fchdir -- Looking for fchdir - found -- Looking for fchmod -- Looking for fchmod - found -- Looking for fchown -- Looking for fchown - found -- Looking for fdatasync -- Looking for fdatasync - found -- Looking for flock -- Looking for flock - found -- Looking for fork -- Looking for fork - found -- Looking for forkpty -- Looking for forkpty - found -- Looking for fpathconf -- Looking for fpathconf - found -- Looking for __fpu_control -- Looking for __fpu_control - found -- Looking for fseek64 -- Looking for fseek64 - not found -- Looking for fseeko -- Looking for fseeko - found -- Looking for fstatvfs -- Looking for fstatvfs - found -- Looking for fsync -- Looking for fsync - found -- Looking for ftell64 -- Looking for ftell64 - not found -- Looking for ftello -- Looking for ftello - found -- Looking for ftime -- Looking for ftime - found -- Looking for ftruncate -- Looking for ftruncate - found -- Looking for getc_unlocked -- Looking for getc_unlocked - found -- Looking for getgroups -- Looking for getgroups - found -- Looking for getitimer -- Looking for getitimer - found -- Looking for getloadavg -- Looking for getloadavg - found -- Looking for getlogin -- Looking for getlogin - found -- Looking for getpagesize -- Looking for getpagesize - found -- Looking for getpgid -- Looking for getpgid - found -- Looking for getpgrp -- Looking for getpgrp - found -- Looking for getpid -- Looking for getpid - found -- Checking for getpriority -- Checking for getpriority - yes -- Looking for getpwent -- Looking for getpwent - found -- Looking for getresgid -- Looking for getresgid - found -- Looking for getresuid -- Looking for getresuid - found -- Looking for getsid -- Looking for getsid - found -- Looking for getspent -- Looking for getspent - found -- Looking for getspnam -- Looking for getspnam - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for getwd -- Looking for getwd - found -- Looking for hypot -- Looking for hypot - found -- Looking for initgroups -- Looking for initgroups - found -- Looking for kill -- Looking for kill - found -- Looking for killpg -- Looking for killpg - found -- Looking for kqueue -- Looking for kqueue - not found -- Looking for lchflags -- Looking for lchflags - not found -- Checking for lchmod -- Checking for lchmod - no -- Looking for lchown -- Looking for lchown - found -- Looking for link -- Looking for link - found -- Looking for lstat -- Looking for lstat - found -- Looking for makedev -- Looking for makedev - found -- Looking for memcpy -- Looking for memcpy - found -- Looking for memmove -- Looking for memmove - found -- Looking for mkfifo -- Looking for mkfifo - found -- Looking for mknod -- Looking for mknod - found -- Looking for mktime -- Looking for mktime - found -- Looking for mmap -- Looking for mmap - found -- Looking for mremap -- Looking for mremap - found -- Looking for nice -- Looking for nice - found -- Looking for openpty -- Looking for openpty - found -- Looking for pathconf -- Looking for pathconf - found -- Looking for pause -- Looking for pause - found -- Looking for plock -- Looking for plock - not found -- Looking for poll -- Looking for poll - found -- Looking for putenv -- Looking for putenv - found -- Looking for readlink -- Looking for readlink - found -- Looking for realpath -- Looking for realpath - found -- Looking for select -- Looking for select - found -- Looking for setegid -- Looking for setegid - found -- Looking for seteuid -- Looking for seteuid - found -- Looking for setgid -- Looking for setgid - found -- Looking for setgroups -- Looking for setgroups - found -- Looking for setitimer -- Looking for setitimer - found -- Looking for setlocale -- Looking for setlocale - found -- Looking for setpgid -- Looking for setpgid - found -- Looking for setpgrp -- Looking for setpgrp - found -- Looking for setregid -- Looking for setregid - found -- Looking for setreuid -- Looking for setreuid - found -- Looking for setresgid -- Looking for setresgid - found -- Looking for setresuid -- Looking for setresuid - found -- Looking for setsid -- Looking for setsid - found -- Looking for setuid -- Looking for setuid - found -- Looking for setvbuf -- Looking for setvbuf - found -- Looking for sigaction -- Looking for sigaction - found -- Looking for siginterrupt -- Looking for siginterrupt - found -- Looking for sigrelse -- Looking for sigrelse - found -- Looking for snprintf -- Looking for snprintf - found -- Looking for socketpair -- Looking for socketpair - found -- Looking for statvfs -- Looking for statvfs - found -- Looking for strdup -- Looking for strdup - found -- Looking for strftime -- Looking for strftime - found -- Looking for symlink -- Looking for symlink - found -- Looking for sysconf -- Looking for sysconf - found -- Looking for tcgetpgrp -- Looking for tcgetpgrp - found -- Looking for tcsetpgrp -- Looking for tcsetpgrp - found -- Looking for tempnam -- Looking for tempnam - found -- Looking for timegm -- Looking for timegm - found -- Looking for times -- Looking for times - found -- Looking for tmpfile -- Looking for tmpfile - found -- Looking for tmpnam -- Looking for tmpnam - found -- Looking for tmpnam_r -- Looking for tmpnam_r - found -- Looking for truncate -- Looking for truncate - found -- Looking for uname -- Looking for uname - found -- Looking for unsetenv -- Looking for unsetenv - found -- Looking for utimes -- Looking for utimes - found -- Looking for wait3 -- Looking for wait3 - found -- Looking for wait4 -- Looking for wait4 - found -- Looking for waitpid -- Looking for waitpid - found -- Looking for wcscoll -- Looking for wcscoll - found -- Looking for _getpty -- Looking for _getpty - not found -- Looking for accept4 -- Looking for accept4 - found -- Looking for copy_file_range -- Looking for copy_file_range - found -- Looking for dup3 -- Looking for dup3 - found -- Looking for _dyld_shared_cache_contains_path -- Looking for _dyld_shared_cache_contains_path - not found -- Looking for explicit_bzero -- Looking for explicit_bzero - found -- Looking for explicit_memset -- Looking for explicit_memset - not found -- Looking for faccessat -- Looking for faccessat - found -- Looking for fchmodat -- Looking for fchmodat - found -- Looking for fchownat -- Looking for fchownat - found -- Looking for fdwalk -- Looking for fdwalk - not found -- Looking for fexecve -- Looking for fexecve - found -- Looking for fdopendir -- Looking for fdopendir - found -- Looking for fstatat -- Looking for fstatat - found -- Looking for futimens -- Looking for futimens - found -- Looking for futimes -- Looking for futimes - found -- Looking for futimesat -- Looking for futimesat - found -- Looking for getentropy -- Looking for getentropy - found -- Looking for getgrgid_r -- Looking for getgrgid_r - found -- Looking for getgrnam_r -- Looking for getgrnam_r - found -- Looking for getgrouplist -- Looking for getgrouplist - found -- Looking for getpwnam_r -- Looking for getpwnam_r - found -- Looking for getpwuid_r -- Looking for getpwuid_r - found -- Looking for htole64 -- Looking for htole64 - found -- Looking for if_nameindex -- Looking for if_nameindex - found -- Looking for linkat -- Looking for linkat - found -- Looking for lockf -- Looking for lockf - found -- Looking for lutimes -- Looking for lutimes - found -- Looking for madvise -- Looking for madvise - found -- Looking for mbrtowc -- Looking for mbrtowc - found -- Looking for memfd_create -- Looking for memfd_create - found -- Looking for memrchr -- Looking for memrchr - found -- Looking for mkdirat -- Looking for mkdirat - found -- Looking for mkfifoat -- Looking for mkfifoat - found -- Looking for mknodat -- Looking for mknodat - found -- Looking for openat -- Looking for openat - found -- Looking for pipe2 -- Looking for pipe2 - found -- Looking for posix_fadvise -- Looking for posix_fadvise - found -- Looking for posix_fallocate -- Looking for posix_fallocate - found -- Looking for posix_spawn -- Looking for posix_spawn - not found -- Looking for posix_spawnp -- Looking for posix_spawnp - not found -- Looking for pread -- Looking for pread - found -- Looking for preadv -- Looking for preadv - found -- Looking for preadv2 -- Looking for preadv2 - found -- Looking for prlimit -- Looking for prlimit - found -- Looking for pthread_kill -- Looking for pthread_kill - found -- Looking for pwrite -- Looking for pwrite - found -- Looking for pwritev -- Looking for pwritev - found -- Looking for pwritev2 -- Looking for pwritev2 - found -- Looking for readlinkat -- Looking for readlinkat - found -- Looking for readv -- Looking for readv - found -- Looking for renameat -- Looking for renameat - found -- Looking for rtpSpawn -- Looking for rtpSpawn - not found -- Looking for sched_rr_get_interval -- Looking for sched_rr_get_interval - found -- Looking for sched_setaffinity -- Looking for sched_setaffinity - found -- Looking for sched_setparam -- Looking for sched_setparam - found -- Looking for sched_setscheduler -- Looking for sched_setscheduler - found -- Looking for sendfile -- Looking for sendfile - found -- Looking for sethostname -- Looking for sethostname - found -- Looking for setpriority -- Looking for setpriority - found -- Looking for sched_get_priority_max -- Looking for sched_get_priority_max - found -- Looking for sigaltstack -- Looking for sigaltstack - found -- Looking for sigfillset -- Looking for sigfillset - found -- Looking for sigpending -- Looking for sigpending - found -- Looking for strsignal -- Looking for strsignal - found -- Looking for sigtimedwait -- Looking for sigtimedwait - found -- Looking for sigwait -- Looking for sigwait - found -- Looking for sigwaitinfo -- Looking for sigwaitinfo - found -- Looking for strlcpy -- Looking for strlcpy - not found -- Looking for symlinkat -- Looking for symlinkat - found -- Looking for sync -- Looking for sync - found -- Looking for unlinkat -- Looking for unlinkat - found -- Looking for utimensat -- Looking for utimensat - found -- Looking for waitid -- Looking for waitid - found -- Looking for wcsftime -- Looking for wcsftime - found -- Looking for wcsxfrm -- Looking for wcsxfrm - found -- Looking for wmemcmp -- Looking for wmemcmp - found -- Looking for writev -- Looking for writev - found -- Performing Test HAVE_STAT_TV_NSEC -- Performing Test HAVE_STAT_TV_NSEC - Success -- Performing Test HAVE_STAT_TV_NSEC2 -- Performing Test HAVE_STAT_TV_NSEC2 - Failed -- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIME -- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIME - Failed -- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE -- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE - Success -- Performing Test HAVE_STRUCT_STAT_ST_BLOCKS -- Performing Test HAVE_STRUCT_STAT_ST_BLOCKS - Success -- Performing Test HAVE_STRUCT_STAT_ST_FLAGS -- Performing Test HAVE_STRUCT_STAT_ST_FLAGS - Failed -- Performing Test HAVE_STRUCT_STAT_ST_GEN -- Performing Test HAVE_STRUCT_STAT_ST_GEN - Failed -- Performing Test HAVE_STRUCT_STAT_ST_RDEV -- Performing Test HAVE_STRUCT_STAT_ST_RDEV - Success -- Performing Test HAVE_STRUCT_PASSWD_PW_GECOS -- Performing Test HAVE_STRUCT_PASSWD_PW_GECOS - Success -- Performing Test HAVE_STRUCT_PASSWD_PW_PASSWD -- Performing Test HAVE_STRUCT_PASSWD_PW_PASSWD - Success -- Performing Test HAVE_SIGINFO_T_SI_BAND -- Performing Test HAVE_SIGINFO_T_SI_BAND - Failed -- Looking for shm_open -- Looking for shm_open - not found -- Looking for shm_open -- Looking for shm_open - not found -- Looking for shm_unlink -- Looking for shm_unlink - not found -- Looking for shm_unlink -- Looking for shm_unlink - not found -- Checking for x64 gcc inline assembler -- Checking for x64 gcc inline assembler - yes -- Checking whether C doubles are little-endian IEEE 754 binary64 -- Checking whether C doubles are little-endian IEEE 754 binary64 - yes -- Checking whether C doubles are big-endian IEEE 754 binary64 -- Checking whether C doubles are big-endian IEEE 754 binary64 - no -- Checking doubles are ARM mixed-endian IEEE 754 binary64 -- Checking doubles are ARM mixed-endian IEEE 754 binary64 - no -- Checking whether we can use gcc inline assembler to get and set x87 control word -- Checking whether we can use gcc inline assembler to get and set x87 control word - yes -- Checking whether read-only mmap of a plain file works -- Checking whether read-only mmap of a plain file works - yes -- Checking whether assembler supports .ascii -- Checking whether assembler supports .ascii - yes -- Checking whether assembler supports .cfi_* directives -- Checking whether assembler supports .cfi_* directives - yes -- Checking whether assembler supports .string -- Checking whether assembler supports .string - yes -- Checking whether assembler supports PC relative relocs -- Checking whether assembler supports PC relative relocs - yes -- Performing Test HAVE_HIDDEN_VISIBILITY_ATTRIBUTE -- Performing Test HAVE_HIDDEN_VISIBILITY_ATTRIBUTE - Success -- Performing Test HAVE_MMAP_ANON -- Performing Test HAVE_MMAP_ANON - Success -- Performing Test HAVE_MMAP_DEV_ZERO -- Performing Test HAVE_MMAP_DEV_ZERO - Success -- Checking whether we can use gcc inline assembler to get and set mc68881 fpcr -- Checking whether we can use gcc inline assembler to get and set mc68881 fpcr - no -- Checking for x87-style double rounding -- Checking for x87-style double rounding - no -- Checking for crypt in -lcrypt -- Checking for crypt in -lcrypt - yes -- Performing Test HAVE_CRYPT_R -- Performing Test HAVE_CRYPT_R - Success -- Checking whether tanh preserves the sign of zero -- Checking whether tanh preserves the sign of zero - yes -- Checking whether log1p drops the sign of negative zero -- Checking whether log1p drops the sign of negative zero - no -- Looking for acosh -- Looking for acosh - found -- Looking for asinh -- Looking for asinh - found -- Looking for atanh -- Looking for atanh - found -- Looking for copysign -- Looking for copysign - found -- Looking for erf -- Looking for erf - found -- Looking for erfc -- Looking for erfc - found -- Looking for expm1 -- Looking for expm1 - found -- Looking for finite -- Looking for finite - found -- Looking for gamma -- Looking for gamma - found -- Looking for lgamma -- Looking for lgamma - found -- Looking for log1p -- Looking for log1p - found -- Looking for round -- Looking for round - found -- Looking for tgamma -- Looking for tgamma - found -- Looking for log2 -- Looking for log2 - found -- Looking for isinf -- Looking for isinf - found -- Looking for isnan -- Looking for isnan - found -- Looking for isfinite -- Looking for isfinite - found -- Performing Test HAVE_STRUCT_TM_TM_ZONE -- Performing Test HAVE_STRUCT_TM_TM_ZONE - Success -- Check size of struct tm -- Check size of struct tm - done -- Performing Test TIME_WITH_SYS_TIME -- Performing Test TIME_WITH_SYS_TIME - Success -- Performing Test SYS_SELECT_WITH_SYS_TIME -- Performing Test SYS_SELECT_WITH_SYS_TIME - Success -- Performing Test GETTIMEOFDAY_WITH_TZ -- Performing Test GETTIMEOFDAY_WITH_TZ - Success -- Checking for clock_getres -- Checking for clock_getres - yes -- Checking for clock_gettime -- Checking for clock_gettime - yes -- Checking for clock_settime -- Checking for clock_settime - yes -- Checking for UCS-4 tcl -- Checking for UCS-4 tcl - no -- Looking for include file uuid/uuid.h -- Looking for include file uuid/uuid.h - not found -- Looking for include file uuid.h -- Looking for include file uuid.h - not found -- Looking for uuid_create -- Looking for uuid_create - not found -- Looking for gethostbyname_r -- Looking for gethostbyname_r - found -- Checking gethostbyname_r with 6 args -- Checking gethostbyname_r with 6 args - yes -- Looking for gai_strerror -- Looking for gai_strerror - found -- Looking for getaddrinfo -- Looking for getaddrinfo - found -- Looking for getnameinfo -- Looking for getnameinfo - found -- Looking for getpeername -- Looking for getpeername - found -- Looking for hstrerror -- Looking for hstrerror - found -- Looking for inet_aton -- Looking for inet_aton - found -- Looking for inet_pton -- Looking for inet_pton - found -- Check size of struct addrinfo -- Check size of struct addrinfo - done -- Performing Test HAVE_SOCKADDR_SA_LEN -- Performing Test HAVE_SOCKADDR_SA_LEN - Failed -- Check size of struct sockaddr_storage -- Check size of struct sockaddr_storage - done -- Check size of struct sockaddr_alg -- Check size of struct sockaddr_alg - done -- Looking for pthread_init -- Looking for pthread_init - not found -- Looking for pthread_sigmask -- Looking for pthread_sigmask - found -- Looking for pthread_atfork -- Looking for pthread_atfork - found -- Looking for pthread_condattr_setclock -- Looking for pthread_condattr_setclock - found -- Looking for pthread_getcpuclockid -- Looking for pthread_getcpuclockid - found -- Looking for sem_clockwait -- Looking for sem_clockwait - not found -- Looking for sem_getvalue -- Looking for sem_getvalue - found -- Looking for sem_open -- Looking for sem_open - found -- Looking for sem_timedwait -- Looking for sem_timedwait - found -- Looking for sem_unlink -- Looking for sem_unlink - found -- Checking whether POSIX semaphores are enabled -- Checking whether POSIX semaphores are enabled - no -- Checking for broken sem_getvalue -- Checking for broken sem_getvalue - no -- Looking for dlopen -- Looking for dlopen - found -- Looking for RTLD_DEEPBIND -- Looking for RTLD_DEEPBIND - found -- Looking for RTLD_GLOBAL -- Looking for RTLD_GLOBAL - found -- Looking for RTLD_LAZY -- Looking for RTLD_LAZY - found -- Looking for RTLD_LOCAL -- Looking for RTLD_LOCAL - found -- Looking for RTLD_MEMBER -- Looking for RTLD_MEMBER - not found -- Looking for RTLD_NODELETE -- Looking for RTLD_NODELETE - found -- Looking for RTLD_NOLOAD -- Looking for RTLD_NOLOAD - found -- Looking for RTLD_NOW -- Looking for RTLD_NOW - found -- Check size of gid_t -- Check size of gid_t - done -- Check size of mode_t -- Check size of mode_t - done -- Check size of off_t -- Check size of off_t - done -- Check size of pid_t -- Check size of pid_t - done -- Check size of size_t -- Check size of size_t - done -- Check size of uint64_t -- Check size of uint64_t - done -- Check size of int64_t -- Check size of int64_t - done -- Check size of uint32_t -- Check size of uint32_t - done -- Check size of int32_t -- Check size of int32_t - done -- Check size of __uint128_t -- Check size of __uint128_t - done -- Check size of socklen_t -- Check size of socklen_t - done -- Check size of uid_t -- Check size of uid_t - done -- Check size of clock_t -- Check size of clock_t - done -- Performing Test const_WORKS -- Performing Test const_WORKS - Success -- Performing Test signed_WORKS -- Performing Test signed_WORKS - Success -- Performing Test volatile_WORKS -- Performing Test volatile_WORKS - Success -- Checking for prototypes -- Checking for prototypes - yes -- Performing Test NOT_VA_LIST_IS_ARRAY -- Performing Test NOT_VA_LIST_IS_ARRAY - Failed -- Checking whether char is unsigned -- Checking whether char is unsigned - no -- Checking if the dirent structure of a d_type field -- Checking if the dirent structure of a d_type field - yes -- Checking for the Linux getrandom() syscall -- Checking for the Linux getrandom() syscall - no -- Checking for the getrandom() function -- Checking for the getrandom() function - yes -- Performing Test GETPGRP_HAVE_ARG -- Performing Test GETPGRP_HAVE_ARG - Failed -- Performing Test SETPGRP_HAVE_ARG -- Performing Test SETPGRP_HAVE_ARG - Failed -- Checking for inline -- Checking for inline - yes -- Checking for append_history in -lreadline -- Checking for append_history in -lreadline - no -- Performing Test HAVE_BROKEN_NICE -- Performing Test HAVE_BROKEN_NICE - Failed -- Performing Test HAVE_BROKEN_POLL -- Performing Test HAVE_BROKEN_POLL - Failed -- Checking for working tzset() -- Checking for working tzset() - yes -- Checking for broken unsetenv -- Checking for broken unsetenv - no -- Checking aligned memory access is required -- Checking aligned memory access is required - no -- Checking for broken mbstowcs -- Checking for broken mbstowcs - no -- Check size of pthread_key_t -- Check size of pthread_key_t - done -- Performing Test PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT -- Performing Test PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT - Success -- Checking whether GNU supports computed gotos -- Checking whether GNU supports computed gotos - yes -- Performing Test have_O2 -- Performing Test have_O2 - Success -- Checking for glibc _FORTIFY_SOURCE/memmove bug -- Checking for glibc _FORTIFY_SOURCE/memmove bug - no -- Checking for gcc ipa-pure-const bug -- Checking for gcc ipa-pure-const bug - no -- Checking for stdatomic.h -- Checking for stdatomic.h - yes -- Checking for GCC >= 4.7 __atomic builtins -- Checking for GCC >= 4.7 __atomic builtins - yes -- Checking for %lld and %llu printf() format support -- Checking for %lld and %llu printf() format support - yes -- Checking for %zd printf() format support() -- Checking for %zd printf() format support() - yes -- Setting TIRPC_LIBRARY_STATIC_DEPENDENCY_REQUIRED to 0 -- Performing Test HAVE_LINUX_CAN_RAW_FD_FRAMES -- Performing Test HAVE_LINUX_CAN_RAW_FD_FRAMES - Success -- Performing Test HAVE_LINUX_CAN_RAW_JOIN_FILTERS -- Performing Test HAVE_LINUX_CAN_RAW_JOIN_FILTERS - Success -- -- The following extensions will NOT be built: -- -- cPickle (not set: IS_PY2) -- cStringIO (not set: IS_PY2) -- _ctypes_test (not set: ENABLE_CTYPES_TEST) -- future_builtins (not set: IS_PY2) -- _hotshot (not set: IS_PY2) -- operator (not set: IS_PY2) -- strop (not set: IS_PY2) -- _testcapi (not set: ENABLE_TESTCAPI) -- _testconsole (not set: WIN32) -- _uuid (not set: UUID_LIBRARY HAVE_UUID_H OR HAVE_UUID_UUID_H) -- nis (not set: HAVE_LIBNSL) -- _scproxy (not set: APPLE HAVE_LIBCOREFOUNDATION HAVE_LIBSYSTEMCONFIGURATION) -- linuxaudiodev (not set: IS_PY2) -- _msi (not set: WIN32) -- msvcrt (not set: MSVC) -- nt (not set: WIN32) -- _subprocess (not set: WIN32 IS_PY2) -- winreg (not set: WIN32) -- _overlapped (not set: WIN32) -- _winapi (not set: WIN32) -- _distutils_findvs (not set: WIN32 HAS_DISTUTILS_FINDVS_MODULE_SRC) -- _ctypes (not set: LibFFI_INCLUDE_DIR LibFFI_LIBRARY) -- _bsddb (not set: IS_PY2 DB_INCLUDE_PATH DB_LIBRARY) -- _bz2 (not set: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) -- _curses_panel (not set: CURSES_LIBRARIES TINFO_LIBRARY GPM_LIBRARY PANEL_LIBRARIES HAVE_PANEL_H OR HAVE_NCURSES_PANEL_H) -- _curses (not set: CURSES_LIBRARIES TINFO_LIBRARY GPM_LIBRARY) -- _dbm (not set: NDBM_TAG GDBM_LIBRARY GDBM_COMPAT_LIBRARY) -- _gdbm (not set: GDBM_INCLUDE_PATH GDBM_LIBRARY GDBM_COMPAT_LIBRARY) -- _hashlib (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES) -- _lzma (not set: LZMA_INCLUDE_PATH LZMA_LIBRARY) -- readline (not set: READLINE_INCLUDE_PATH READLINE_LIBRARY CURSES_LIBRARIES HAVE_READLINE_READLINE_H) -- _sqlite3 (not set: SQLite3_INCLUDE_DIRS SQLite3_LIBRARIES) -- _ssl (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES) -- _tkinter (not set: TCL_LIBRARY TK_LIBRARY TCL_INCLUDE_PATH TK_INCLUDE_PATH X11_INCLUDE_DIR X11_LIBRARIES) -- zlib (not set: ZLIB_LIBRARY) -- -- Discovered 416 tests -- Configuring done -- Generating done -- Build files have been written to: /root/scratch/python-build |
Based on the README:
This means that dependency like And it turns out that the content of
Let's install
.. and check it provides the
Now we can reconfigure:
And we can see zlib is found:
Complete configuration output-- Setting CMAKE_FIND_LIBRARY_SUFFIXES to ".a" because of WITH_STATIC_DEPENDENCIES=ON -- Setting BUILD_EXTENSIONS_AS_BUILTIN to ON because of WITH_STATIC_DEPENDENCIES=ON -- Setting BUILD_LIBPYTHON_SHARED to OFF because of WITH_STATIC_DEPENDENCIES=ON -- Appending -static to CMAKE_EXE_LINKER_FLAGS because of WITH_STATIC_DEPENDENCIES=ON -- SRC_DIR: /root/scratch/Python-3.9.17 -- PY_VERSION : 3.9.17 -- PY_VERSION_LONG: 3.9.17 -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux-GNU' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux-GNU/8.5.0' does not exist -- Setting PY_SSL_DEFAULT_CIPHER_STRING to 'python' -- The system name is Linux -- The system processor is x86_64 -- The system version is 5.15.0-76-generic -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) -- BZIP2_INCLUDE_DIR=BZIP2_INCLUDE_DIR-NOTFOUND -- BZIP2_LIBRARIES=BZIP2_LIBRARY-NOTFOUND -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) -- CURSES_LIBRARIES=CURSES_CURSES_LIBRARY-NOTFOUND -- PANEL_LIBRARIES=PANEL_LIBRARY-NOTFOUND -- TINFO_LIBRARY=TINFO_LIBRARY-NOTFOUND -- GPM_LIBRARY=GPM_LIBRARY-NOTFOUND -- Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR) -- EXPAT_LIBRARIES= -- EXPAT_INCLUDE_DIRS= -- LibFFI_INCLUDE_DIR=LibFFI_INCLUDE_DIR-NOTFOUND -- LibFFI_LIBRARY=LibFFI_LIBRARY-NOTFOUND -- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) (Required is at least version "0.9.7") -- OPENSSL_LIBRARIES=OPENSSL_SSL_LIBRARY-NOTFOUND;OPENSSL_CRYPTO_LIBRARY-NOTFOUND -- OPENSSL_INCLUDE_DIR=OPENSSL_INCLUDE_DIR-NOTFOUND -- Could NOT find Tclsh (missing: TCL_TCLSH) -- Could NOT find TCL (missing: TCL_LIBRARY TCL_INCLUDE_PATH) -- Could NOT find TCLTK (missing: TCL_LIBRARY TCL_INCLUDE_PATH TK_LIBRARY TK_INCLUDE_PATH) -- Could NOT find TK (missing: TK_LIBRARY TK_INCLUDE_PATH) -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- Found ZLIB: /usr/lib64/libz.a (found version "1.2.11") -- ZLIB_INCLUDE_DIRS=/usr/include -- ZLIB_LIBRARIES=/usr/lib64/libz.a -- GDBM_INCLUDE_PATH=GDBM_INCLUDE_PATH-NOTFOUND -- GDBM_LIBRARY=GDBM_LIBRARY-NOTFOUND -- GDBM_COMPAT_LIBRARY=GDBM_COMPAT_LIBRARY-NOTFOUND -- NDBM_TAG= -- _INCLUDE_PATH= -- LZMA_INCLUDE_PATH=LZMA_INCLUDE_PATH-NOTFOUND -- LZMA_LIBRARY=LZMA_LIBRARY-NOTFOUND -- READLINE_INCLUDE_PATH=READLINE_INCLUDE_PATH-NOTFOUND -- READLINE_LIBRARY=READLINE_LIBRARY-NOTFOUND -- Could NOT find SQLite3 (missing: SQLite3_INCLUDE_DIR SQLite3_LIBRARY) -- SQLite3_INCLUDE_DIRS=SQLite3_INCLUDE_DIR-NOTFOUND -- SQLite3_LIBRARIES=SQLite3_LIBRARY-NOTFOUND -- Checking WITH_HASH_ALGORITHM option -- Checking WITH_HASH_ALGORITHM option [default] -- Checking ABIFLAGS - -- Checking SOABI - cpython-39-x86_64-linux-gnu -- ptmx: //dev/ptmx ptc: HAVE_DEV_PTC-NOTFOUND -- Checking for XOPEN_SOURCE -- Checking for XOPEN_SOURCE - yes -- Checking for Large File Support -- Checking for Large File Support - yes -- Looking for inflateCopy -- Looking for inflateCopy - found -- extension_decimal: libmpdec_config [x64] -- -- The following extensions will NOT be built: -- -- cPickle (not set: IS_PY2) -- cStringIO (not set: IS_PY2) -- _ctypes_test (not set: ENABLE_CTYPES_TEST) -- future_builtins (not set: IS_PY2) -- _hotshot (not set: IS_PY2) -- operator (not set: IS_PY2) -- strop (not set: IS_PY2) -- _testcapi (not set: ENABLE_TESTCAPI) -- _testconsole (not set: WIN32) -- _uuid (not set: UUID_LIBRARY HAVE_UUID_H OR HAVE_UUID_UUID_H) -- nis (not set: HAVE_LIBNSL) -- _scproxy (not set: APPLE HAVE_LIBCOREFOUNDATION HAVE_LIBSYSTEMCONFIGURATION) -- linuxaudiodev (not set: IS_PY2) -- _msi (not set: WIN32) -- msvcrt (not set: MSVC) -- nt (not set: WIN32) -- _subprocess (not set: WIN32 IS_PY2) -- winreg (not set: WIN32) -- _overlapped (not set: WIN32) -- _winapi (not set: WIN32) -- _distutils_findvs (not set: WIN32 HAS_DISTUTILS_FINDVS_MODULE_SRC) -- _ctypes (not set: LibFFI_INCLUDE_DIR LibFFI_LIBRARY) -- _bsddb (not set: IS_PY2 DB_INCLUDE_PATH DB_LIBRARY) -- _bz2 (not set: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) -- _curses_panel (not set: CURSES_LIBRARIES TINFO_LIBRARY GPM_LIBRARY PANEL_LIBRARIES HAVE_PANEL_H OR HAVE_NCURSES_PANEL_H) -- _curses (not set: CURSES_LIBRARIES TINFO_LIBRARY GPM_LIBRARY) -- _dbm (not set: NDBM_TAG GDBM_LIBRARY GDBM_COMPAT_LIBRARY) -- _gdbm (not set: GDBM_INCLUDE_PATH GDBM_LIBRARY GDBM_COMPAT_LIBRARY) -- _hashlib (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES) -- _lzma (not set: LZMA_INCLUDE_PATH LZMA_LIBRARY) -- readline (not set: READLINE_INCLUDE_PATH READLINE_LIBRARY CURSES_LIBRARIES HAVE_READLINE_READLINE_H) -- _sqlite3 (not set: SQLite3_INCLUDE_DIRS SQLite3_LIBRARIES) -- _ssl (not set: OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES) -- _tkinter (not set: TCL_LIBRARY TK_LIBRARY TCL_INCLUDE_PATH TK_INCLUDE_PATH X11_INCLUDE_DIR X11_LIBRARIES) -- -- Discovered 416 tests -- Configuring done -- Generating done -- Build files have been written to: /root/scratch/python-build |
Let's know build and install:
... and confirm the installed version works:
Now we can install pip
|
Note that installing module is still failing due to missing Indeed, look above1 in the
.. and attempting to
Let's install openssl libraries
Similarly to zlib, there are not static libraries:
So let's install the static ones from the
... and also confirm the static library are provided
Et voila, we can now reconfigure:
Complete configuration output-- Setting CMAKE_FIND_LIBRARY_SUFFIXES to ".a" because of WITH_STATIC_DEPENDENCIES=ON -- Setting BUILD_EXTENSIONS_AS_BUILTIN to ON because of WITH_STATIC_DEPENDENCIES=ON -- Setting BUILD_LIBPYTHON_SHARED to OFF because of WITH_STATIC_DEPENDENCIES=ON -- Appending -static to CMAKE_EXE_LINKER_FLAGS because of WITH_STATIC_DEPENDENCIES=ON -- SRC_DIR: /root/scratch/Python-3.9.17 -- PY_VERSION : 3.9.17 -- PY_VERSION_LONG: 3.9.17 -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux-GNU' does not exist -- Skipping patches: Directory '/root/scratch/python-cmake-buildsystem/patches/3.9.17/Linux-GNU/8.5.0' does not exist -- Setting PY_SSL_DEFAULT_CIPHER_STRING to 'python' -- The system name is Linux -- The system processor is x86_64 -- The system version is 5.15.0-76-generic -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) -- BZIP2_INCLUDE_DIR=BZIP2_INCLUDE_DIR-NOTFOUND -- BZIP2_LIBRARIES=BZIP2_LIBRARY-NOTFOUND -- Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) -- CURSES_LIBRARIES=CURSES_CURSES_LIBRARY-NOTFOUND -- PANEL_LIBRARIES=PANEL_LIBRARY-NOTFOUND -- TINFO_LIBRARY=TINFO_LIBRARY-NOTFOUND -- GPM_LIBRARY=GPM_LIBRARY-NOTFOUND -- Could NOT find EXPAT (missing: EXPAT_LIBRARY EXPAT_INCLUDE_DIR) -- EXPAT_LIBRARIES= -- EXPAT_INCLUDE_DIRS= -- LibFFI_INCLUDE_DIR=LibFFI_INCLUDE_DIR-NOTFOUND -- LibFFI_LIBRARY=LibFFI_LIBRARY-NOTFOUND -- Looking for pthread.h -- Looking for pthread.h - found -- Found OpenSSL: /usr/lib64/libcrypto.a (found suitable version "1.1.1k", minimum required is "0.9.7") -- OPENSSL_LIBRARIES=/usr/lib64/libssl.a;/usr/lib64/libcrypto.a;-lpthread;dl -- OPENSSL_INCLUDE_DIR=/usr/include -- Could NOT find Tclsh (missing: TCL_TCLSH) -- Could NOT find TCL (missing: TCL_LIBRARY TCL_INCLUDE_PATH) -- Could NOT find TCLTK (missing: TCL_LIBRARY TCL_INCLUDE_PATH TK_LIBRARY TK_INCLUDE_PATH) -- Could NOT find TK (missing: TK_LIBRARY TK_INCLUDE_PATH) -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) -- ZLIB_INCLUDE_DIRS=/usr/include -- ZLIB_LIBRARIES=/usr/lib64/libz.a -- GDBM_INCLUDE_PATH=GDBM_INCLUDE_PATH-NOTFOUND -- GDBM_LIBRARY=GDBM_LIBRARY-NOTFOUND -- GDBM_COMPAT_LIBRARY=GDBM_COMPAT_LIBRARY-NOTFOUND -- NDBM_TAG= -- _INCLUDE_PATH= -- LZMA_INCLUDE_PATH=LZMA_INCLUDE_PATH-NOTFOUND -- LZMA_LIBRARY=LZMA_LIBRARY-NOTFOUND -- READLINE_INCLUDE_PATH=READLINE_INCLUDE_PATH-NOTFOUND -- READLINE_LIBRARY=READLINE_LIBRARY-NOTFOUND -- Could NOT find SQLite3 (missing: SQLite3_INCLUDE_DIR SQLite3_LIBRARY) -- SQLite3_INCLUDE_DIRS=SQLite3_INCLUDE_DIR-NOTFOUND -- SQLite3_LIBRARIES=SQLite3_LIBRARY-NOTFOUND -- Checking WITH_HASH_ALGORITHM option -- Checking WITH_HASH_ALGORITHM option [default] -- Checking ABIFLAGS - -- Checking SOABI - cpython-39-x86_64-linux-gnu -- ptmx: //dev/ptmx ptc: HAVE_DEV_PTC-NOTFOUND -- Checking for XOPEN_SOURCE -- Checking for XOPEN_SOURCE - yes -- Checking for Large File Support -- Checking for Large File Support - yes -- Performing Test HAVE_X509_VERIFY_PARAM_SET1_HOST -- Performing Test HAVE_X509_VERIFY_PARAM_SET1_HOST - Failed -- extension_decimal: libmpdec_config [x64] -- -- The following extensions will NOT be built: -- -- cPickle (not set: IS_PY2) -- cStringIO (not set: IS_PY2) -- _ctypes_test (not set: ENABLE_CTYPES_TEST) -- future_builtins (not set: IS_PY2) -- _hotshot (not set: IS_PY2) -- operator (not set: IS_PY2) -- strop (not set: IS_PY2) -- _testcapi (not set: ENABLE_TESTCAPI) -- _testconsole (not set: WIN32) -- _uuid (not set: UUID_LIBRARY HAVE_UUID_H OR HAVE_UUID_UUID_H) -- nis (not set: HAVE_LIBNSL) -- _scproxy (not set: APPLE HAVE_LIBCOREFOUNDATION HAVE_LIBSYSTEMCONFIGURATION) -- linuxaudiodev (not set: IS_PY2) -- _msi (not set: WIN32) -- msvcrt (not set: MSVC) -- nt (not set: WIN32) -- _subprocess (not set: WIN32 IS_PY2) -- winreg (not set: WIN32) -- _overlapped (not set: WIN32) -- _winapi (not set: WIN32) -- _distutils_findvs (not set: WIN32 HAS_DISTUTILS_FINDVS_MODULE_SRC) -- _ctypes (not set: LibFFI_INCLUDE_DIR LibFFI_LIBRARY) -- _bsddb (not set: IS_PY2 DB_INCLUDE_PATH DB_LIBRARY) -- _bz2 (not set: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) -- _curses_panel (not set: CURSES_LIBRARIES TINFO_LIBRARY GPM_LIBRARY PANEL_LIBRARIES HAVE_PANEL_H OR HAVE_NCURSES_PANEL_H) -- _curses (not set: CURSES_LIBRARIES TINFO_LIBRARY GPM_LIBRARY) -- _dbm (not set: NDBM_TAG GDBM_LIBRARY GDBM_COMPAT_LIBRARY) -- _gdbm (not set: GDBM_INCLUDE_PATH GDBM_LIBRARY GDBM_COMPAT_LIBRARY) -- _lzma (not set: LZMA_INCLUDE_PATH LZMA_LIBRARY) -- readline (not set: READLINE_INCLUDE_PATH READLINE_LIBRARY CURSES_LIBRARIES HAVE_READLINE_READLINE_H) -- _sqlite3 (not set: SQLite3_INCLUDE_DIRS SQLite3_LIBRARIES) -- _tkinter (not set: TCL_LIBRARY TK_LIBRARY TCL_INCLUDE_PATH TK_INCLUDE_PATH X11_INCLUDE_DIR X11_LIBRARIES) -- -- Discovered 416 tests -- Configuring done -- Generating done -- Build files have been written to: /root/scratch/python-build and rebuild & re-install:
And re-attempt to pip install
And also update pip as recommended:
And confirm it works:
Footnotes |
Summary@vot4anto Consider installing the missing libraries:
And then reconfigure, build and install. For details, see above. |
I follow the instruction to install the default version of python with the repo.
But I can not have a pip working.
OS:
Follow the logs and instruction of install:
And after when i try to install pip:
It is missing all library?
The text was updated successfully, but these errors were encountered: