Installation issue on Python-3.5.9 ...
Hello Team, While installing Python-3.5.9 in CentOS-5 I am getting the below errors: ======>> [root@manage Python-3.5.9]# grep error config.logconftest.c:11:28: error: ac_nonexistent.h: No such file or directoryconftest.c:11:28: error: ac_nonexistent.h: No such file or directoryconftest.c:54:26: error: minix/config.h: No such file or directoryconftest.c:21:26: error: minix/config.h: No such file or directoryconfigure:6961: gcc -fstrict-aliasing -c -Werror -Wstrict-aliasing conftest.c >&5cc1: warnings being treated as errorsconfigure:7017: gcc -Wunused-result -Werror -c conftest.c >&5cc1: error: unrecognized command line option "-Wunused-result"configure:7041: checking for -Werror=declaration-after-statementconfigure:7062: gcc -Werror=declaration-after-statement -c conftest.c >&5cc1: error: unrecognized command line option "-Werror=declaration-after-statement"conftest.c:62:19: error: conio.h: No such file or directoryconftest.c:29:19: error: conio.h: No such file or directoryconftest.c:62:20: error: direct.h: No such file or directoryconftest.c:29:20: error: direct.h: No such file or directoryconftest.c:66:20: error: ieeefp.h: No such file or directoryconftest.c:33:20: error: ieeefp.h: No such file or directoryconftest.c:66:16: error: io.h: No such file or directoryconftest.c:33:16: error: io.h: No such file or directoryconftest.c:68:21: error: process.h: No such file or directoryconftest.c:35:21: error: process.h: No such file or directoryconftest.c:78:25: error: sys/devpoll.h: No such file or directoryconftest.c:45:25: error: sys/devpoll.h: No such file or directoryconftest.c:80:25: error: sys/audioio.h: No such file or directoryconftest.c:47:25: error: sys/audioio.h: No such file or directoryconftest.c:81:24: error: sys/bsdtty.h: No such file or directoryconftest.c:48:24: error: sys/bsdtty.h: No such file or directoryconftest.c:81:23: error: sys/event.h: No such file or directoryconftest.c:48:23: error: sys/event.h: No such file or directoryconftest.c:83:30: error: sys/kern_control.h: No such file or directoryconftest.c:50:30: error: sys/kern_control.h: No such file or directoryconftest.c:83:25: error: sys/loadavg.h: No such file or directoryconftest.c:50:25: error: sys/loadavg.h: No such file or directoryconftest.c:83:22: error: sys/lock.h: No such file or directoryconftest.c:50:22: error: sys/lock.h: No such file or directoryconftest.c:83:23: error: sys/mkdev.h: No such file or directoryconftest.c:50:23: error: sys/mkdev.h: No such file or directoryconftest.c:83:23: error: sys/modem.h: No such file or directoryconftest.c:50:23: error: sys/modem.h: No such file or directoryconftest.c:84:24: error: sys/random.h: No such file or directoryconftest.c:51:24: error: sys/random.h: No such file or directoryconftest.c:90:28: error: sys/sys_domain.h: No such file or directoryconftest.c:57:28: error: sys/sys_domain.h: No such file or directoryconftest.c:90:24: error: sys/termio.h: No such file or directoryconftest.c:57:24: error: sys/termio.h: No such file or directoryconftest.c:98:21: error: libutil.h: No such file or directoryconftest.c:65:21: error: libutil.h: No such file or directoryconftest.c:101:23: error: bluetooth.h: No such file or directoryconftest.c:68:23: error: bluetooth.h: No such file or directoryconftest.c:101:33: error: bluetooth/bluetooth.h: No such file or directoryconftest.c:68:33: error: bluetooth/bluetooth.h: No such file or directory/usr/include/linux/random.h:38: error: expected specifier-qualifier-list before '__u32'/usr/include/linux/random.h:42: error: expected specifier-qualifier-list before '__u32'conftest.c:103:18: error: util.h: No such file or directoryconftest.c:70:18: error: util.h: No such file or directoryconftest.c:105:24: error: sys/endian.h: No such file or directoryconftest.c:72:24: error: sys/endian.h: No such file or directoryconftest.c:81:23: error: linux/can.h: No such file or directoryconftest.c:81:27: error: linux/can/raw.h: No such file or directoryconftest.c:81:27: error: linux/can/bcm.h: No such file or directoryconftest.c:117: error: expected expression before ')' tokenconftest.c:117: error: expected expression before ')' tokenconftest.c:117: error: expected expression before ')' tokenconftest.c:118: error: expected expression before ')' tokenconftest.c:118: error: expected expression before ')' tokenconftest.c:119: error: expected expression before ')' tokenconftest.c:120: error: expected expression before ')' tokenconftest.c:123: error: size of array 'test_array' is negativeconftest.c:121: error: expected expression before ')' tokenconftest.c:124: error: size of array 'test_array' is negativeconftest.c:122: error: expected expression before ')' tokenconftest.c:123: error: '__uint128_t' undeclared (first use in this function)conftest.c:123: error: (Each undeclared identifier is reported only onceconftest.c:123: error: for each function it appears in.)conftest.c:112: error: expected expression before ')' token| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.conftest.c:115:27: error: linux/can/raw.h: No such file or directoryconftest.c:119: error: 'CAN_RAW_FD_FRAMES' undeclared (first use in this function)conftest.c:119: error: (Each undeclared identifier is reported only onceconftest.c:119: error: for each function it appears in.)conftest.c:115:29: error: Carbon/Carbon.h: No such file or directoryconftest.c:119: error: 'FSIORefNum' undeclared (first use in this function)conftest.c:119: error: (Each undeclared identifier is reported only onceconftest.c:119: error: for each function it appears in.)conftest.c:119: error: expected ';' before 'fRef'| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.configure:11281: checking for gai_strerror| /* Override any GCC internal prototype to avoid an error.conftest.c:189: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'| /* Override any GCC internal prototype to avoid an error.conftest.c:193: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.conftest.c:264: error: 'epoll_create1' undeclared (first use in this function)conftest.c:264: error: (Each undeclared identifier is reported only onceconftest.c:264: error: for each function it appears in.)conftest.c:262:23: error: sys/event.h: No such file or directoryconftest.c:267: error: 'prlimit' undeclared (first use in this function)conftest.c:267: error: (Each undeclared identifier is reported only onceconftest.c:267: error: for each function it appears in.)conftest.c:266: error: 'ctermid_r' undeclared (first use in this function)conftest.c:266: error: (Each undeclared identifier is reported only onceconftest.c:266: error: for each function it appears in.)| /* Override any GCC internal prototype to avoid an error.configure:12030: checking for hstrerror| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.conftest.c:280: error: too many arguments to function 'getpgrp'conftest.c:281: error: too many arguments to function 'setpgrp'| /* Override any GCC internal prototype to avoid an error.conftest.c:326: error: 'struct stat' has no member named 'st_flags'conftest.c:326: error: 'struct stat' has no member named 'st_flags'conftest.c:326: error: 'struct stat' has no member named 'st_gen'conftest.c:326: error: 'struct stat' has no member named 'st_gen'conftest.c:326: error: 'struct stat' has no member named 'st_birthtime'conftest.c:326: error: 'struct stat' has no member named 'st_birthtime'conftest.c:294: error: 'altzone' undeclared (first use in this function)conftest.c:294: error: (Each undeclared identifier is reported only onceconftest.c:294: error: for each function it appears in.)conftest.c:302: error: 'struct sockaddr' has no member named 'sa_len'conftest.c:324:17: error: tcl.h: No such file or directoryconftest.c:326:3: error: #error "NOT UCS4_TCL"| # error "NOT UCS4_TCL"conftest.c:324: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'conftest.c:330: error: 'not' undeclared (first use in this function)conftest.c:330: error: (Each undeclared identifier is reported only onceconftest.c:330: error: for each function it appears in.)conftest.c:330: error: expected ';' before 'big'| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.conftest.c:324:31: error: readline/readline.h: No such file or directory| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.| /* Override any GCC internal prototype to avoid an error.conftest.c:324:31: error: readline/readline.h: No such file or directory| /* Override any GCC internal prototype to avoid an error.conftest.c:334: error: 'struct stat' has no member named 'st_mtimespec'conftest.c:351: error: expected expression before ')' tokenconftest.c:342:27: error: stdatomic.h: No such file or directoryconftest.c:343: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'value'conftest.c:344: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'conftest.c:346: error: 'value' undeclared (first use in this function)conftest.c:346: error: (Each undeclared identifier is reported only onceconftest.c:346: error: for each function it appears in.)conftest.c:344: error: '__ATOMIC_SEQ_CST' undeclared (first use in this function)conftest.c:344: error: (Each undeclared identifier is reported only onceconftest.c:344: error: for each function it appears in.)/usr/include/linux/random.h:38: error: expected specifier-qualifier-list before '__u32'/usr/include/linux/random.h:42: error: expected specifier-qualifier-list before '__u32'conftest.c:350: error: 'GRND_NONBLOCK' undeclared (first use in this function)conftest.c:350: error: (Each undeclared identifier is reported only onceconftest.c:350: error: for each function it appears in.)conftest.c:352: error: 'SYS_getrandom' undeclared (first use in this function)conftest.c:343:28: error: sys/random.h: No such file or directoryconftest.c:347: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'buflen'conftest.c:347: error: 'buflen' undeclared (first use in this function)conftest.c:347: error: (Each undeclared identifier is reported only onceconftest.c:347: error: for each function it appears in.)ac_cv_func_gai_strerror=yes ======>> Could you please look into this asap :) Thanking you, Saikat Das | Mobile: +91 (996) 623-9368 | Skype: das.saikat Hyderabad, India
Saikat Das via Python-Dev writes:
Hello Team, While installing Python-3.5.9 in CentOS-5 I am getting the below errors:
Not our problem (details below). You should get help from someone with experience in building large programs. Best if they are local looking at your console. If you've got nobody like that around, try python-list@python.org for this. Before you ask for help, understand the following, and be very polite: you're asking a lot. 0. Installation problems are almost never Python problems; they are usually packaging or system configuration problems. 1. Python 3.5 is out of support; no changes will be implemented to support new OSes or configurations (although CentOS is almost certainly well-supported). 2. If you are installing from a Centos package, that's a package problem first. Only report to upstream if the package maintainer says it's our bug. 3. Your report contains no problem we could deal with anyway:
====== [root@manage Python-3.5.9] # grep error config.log conftest.c:11:28: error: ac_nonexistent.h: No such file or directory
None of these are real errors. A large number of errors attributed to files (hundreds of them!) named conftest.c are *expected*; they indicate that a system feature is not implemented on your OS rather than a problem with the program being built.
participants (2)
-
Saikat Das
-
Stephen J. Turnbull