无法在CentOS 6.9中安装python 2.7。 gcc版本是4.4.7

时间:2017-05-01 13:01:20

标签: python c gcc

$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking for --without-gcc... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/users/some_name/Python-2.7.6':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
  

拥有python 2.7软件包,但由于我一直在接受的以下错误而无法安装..这是因为我拥有的gcc版本?它太老了吗?

cat config.log
configure:3838: checking whether the C compiler works
configure:3860: gcc    conftest.c  >&5 
configure:3864: $? = 0 
configure:3912: result: yes 
configure:3915: checking for C compiler default output file name
configure:3917: result: a.out
configure:3923: checking for suffix of executables
configure:3930: gcc -o conftest    conftest.c  >&5 
configure:3934: $? = 0 
configure:3956: result: 
configure:3978: checking whether we are cross compiling
configure:3986: gcc -o conftest    conftest.c  >&5 
In file included from conftest.c:11:
/usr/include/stdio.h:34:21: error: stddef.h: No such file or directory
In file included from /usr/include/stdio.h:75,
                 from conftest.c:11:
/usr/include/libio.h:53:21: error: stdarg.h: No such file or directory
In file included from /usr/include/stdio.h:75,
                 from conftest.c:11:

0 个答案:

没有答案