我想将我的Python更新到2.7.8版,这里出现错误:
jharvard@appliance (~/Downloads/Python-2.7.8): ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-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... clang
checking whether the C compiler works... no
configure: error: in `/home/jharvard/Downloads/Python-2.7.8':
configure: error: C compiler cannot create executables
See `config.log' for more details</code></pre>
所以我重新安装了GCC,然后重新安装了Python,但没有任何效果。似乎&#34; termios.error:(25,&#39;不合适的ioctl for device&#39;)&#34;让我无法安装。
这是config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by python configure 2.7, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = appliance
uname -m = i686
uname -r = 3.10.10-200.fc19.i686.PAE
uname -s = Linux
uname -v = #1 SMP Thu Aug 29 19:16:15 UTC 2013
/usr/bin/uname -p = i686
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/lib/qt-3.3/bin
PATH: /etc/log50.d
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /home/jharvard/.local/bin
PATH: /home/jharvard/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2790: checking build system type
configure:2804: result: i686-pc-linux-gnu
configure:2824: checking host system type
configure:2837: result: i686-pc-linux-gnu
configure:2945: checking for --enable-universalsdk
configure:2986: result: no
configure:2996: checking for --with-universal-archs
configure:3013: result: 32-bit
configure:3170: checking MACHDEP
configure:3362: result: linux2
configure:3368: checking EXTRAPLATDIR
configure:3383: result:
configure:3404: checking for --without-gcc
configure:3448: result: no
configure:3542: checking for gcc
configure:3569: result: clang
configure:3798: checking for C compiler version
configure:3807: clang --version >&5
Traceback (most recent call last):
File "/etc/log50.d/clang", line 7, in <module>
wrapper.run()
File "/usr/lib/python2.7/log50.py", line 62, in run
p.interact()
File "/usr/lib/python2.7/site-packages/pexpect/__init__.py", line 1533, in interact
mode = tty.tcgetattr(self.STDIN_FILENO)
termios.error: (25, 'Inappropriate ioctl for device')
configure:3818: $? = 1
configure:3807: clang -v >&5
Traceback (most recent call last):
File "/etc/log50.d/clang", line 7, in <module>
wrapper.run()
File "/usr/lib/python2.7/log50.py", line 62, in run
p.interact()
File "/usr/lib/python2.7/site-packages/pexpect/__init__.py", line 1533, in interact
mode = tty.tcgetattr(self.STDIN_FILENO)
termios.error: (25, 'Inappropriate ioctl for device')
configure:3818: $? = 1
configure:3807: clang -V >&5
Traceback (most recent call last):
File "/etc/log50.d/clang", line 7, in <module>
wrapper.run()
File "/usr/lib/python2.7/log50.py", line 62, in run
p.interact()
File "/usr/lib/python2.7/site-packages/pexpect/__init__.py", line 1533, in interact
mode = tty.tcgetattr(self.STDIN_FILENO)
termios.error: (25, 'Inappropriate ioctl for device')
configure:3818: $? = 1
configure:3807: clang -qversion >&5
Traceback (most recent call last):
File "/etc/log50.d/clang", line 7, in <module>
wrapper.run()
File "/usr/lib/python2.7/log50.py", line 62, in run
p.interact()
File "/usr/lib/python2.7/site-packages/pexpect/__init__.py", line 1533, in interact
mode = tty.tcgetattr(self.STDIN_FILENO)
termios.error: (25, 'Inappropriate ioctl for device')
configure:3818: $? = 1
configure:3838: checking whether the C compiler works
configure:3860: clang -ggdb3 -O0 -std=c99 -Wall -Werror conftest.c >&5
Traceback (most recent call last):
File "/etc/log50.d/clang", line 7, in <module>
wrapper.run()
File "/usr/lib/python2.7/log50.py", line 62, in run
p.interact()
File "/usr/lib/python2.7/site-packages/pexpect/__init__.py", line 1533, in interact
mode = tty.tcgetattr(self.STDIN_FILENO)
termios.error: (25, 'Inappropriate ioctl for device')
configure:3864: $? = 1
configure:3902: result: no
configure: failed program was:
| /* confdefs.h */
| #define _GNU_SOURCE 1
| #define _NETBSD_SOURCE 1
| #define __BSD_VISIBLE 1
| #define _BSD_TYPES 1
| #define _DARWIN_C_SOURCE 1
| #define _XOPEN_SOURCE 600
| #define _XOPEN_SOURCE_EXTENDED 1
| #define _POSIX_C_SOURCE 200112L
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3907: error: in `/home/jharvard/Downloads/Python-2.7.8':
configure:3909: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-ggdb3 -O0 -std=c99 -Wall -Werror'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_prog_ac_ct_CC=clang
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
ARCH_RUN_32BIT=''
ARFLAGS=''
BASECFLAGS=''
BASECPPFLAGS=''
BLDLIBRARY=''
BLDSHARED=''
BUILDEXEEXT=''
CC='clang'
CCSHARED=''
CFLAGS='-ggdb3 -O0 -std=c99 -Wall -Werror'
CFLAGSFORSHARED=''
CONFIGURE_MACOSX_DEPLOYMENT_TARGET=''
CONFIG_ARGS=' '\''CC=clang'\'' '\''CFLAGS=-ggdb3 -O0 -std=c99 -Wall -Werror'\'''
CPP=''
CPPFLAGS=''
CXX=''
DEFS=''
DLINCLDIR=''
DLLLIBRARY=''
DYNLOADFILE=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXPORT_MACOSX_DEPLOYMENT_TARGET='#'
EXTRAMACHDEPPATH=''
EXTRAPLATDIR=''
FRAMEWORKALTINSTALLFIRST=''
FRAMEWORKALTINSTALLLAST=''
FRAMEWORKINSTALLAPPSPREFIX=''
FRAMEWORKINSTALLFIRST=''
FRAMEWORKINSTALLLAST=''
FRAMEWORKUNIXTOOLSPREFIX='/usr/local'
GNULD=''
GREP=''
HAS_HG=''
HAVE_GETHOSTBYNAME=''
HAVE_GETHOSTBYNAME_R=''
HAVE_GETHOSTBYNAME_R_3_ARG=''
HAVE_GETHOSTBYNAME_R_5_ARG=''
HAVE_GETHOSTBYNAME_R_6_ARG=''
HGBRANCH=''
HGTAG=''
HGVERSION=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTSONAME=''
LDCXXSHARED=''
LDFLAGS=''
LDLAST=''
LDLIBRARY=''
LDLIBRARYDIR=''
LDSHARED=''
LIBC=''
LIBFFI_INCLUDEDIR=''
LIBM=''
LIBOBJS=''
LIBRARY=''
LIBS=''
LIBTOOL_CRUFT=''
LINKCC=''
LINKFORSHARED=''
LIPO_32BIT_FLAGS=''
LN=''
LTLIBOBJS=''
MACHDEP='linux2'
MACHDEP_OBJS=''
MAINCC=''
MKDIR_P=''
MULTIARCH=''
OBJEXT=''
OPT=''
OTHER_LIBTOOL_OPT=''
PACKAGE_BUGREPORT='http://bugs.python.org/'
PACKAGE_NAME='python'
PACKAGE_STRING='python 2.7'
PACKAGE_TARNAME='python'
PACKAGE_URL=''
PACKAGE_VERSION='2.7'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PYTHONFRAMEWORK=''
PYTHONFRAMEWORKDIR='no-framework'
PYTHONFRAMEWORKIDENTIFIER='org.python.python'
PYTHONFRAMEWORKINSTALLDIR=''
PYTHONFRAMEWORKPREFIX=''
PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E'
RANLIB=''
RUNSHARED=''
SGI_ABI=''
SHELL='/bin/sh'
SHLIBS=''
SIGNAL_OBJS=''
SO=''
SOVERSION='1.0'
SRCDIRS=''
SVNVERSION=''
TCLTK_INCLUDES=''
TCLTK_LIBS=''
THREADHEADERS=''
THREADOBJ=''
TRUE=''
UNICODE_OBJS=''
UNIVERSALSDK=''
UNIVERSAL_ARCH_FLAGS=''
USE_SIGNAL_MODULE=''
USE_THREAD_MODULE=''
VERSION='2.7'
_PYTHON_HOST_PLATFORM=''
ac_ct_AR=''
ac_ct_CC='clang'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define _GNU_SOURCE 1
#define _NETBSD_SOURCE 1
#define __BSD_VISIBLE 1
#define _BSD_TYPES 1
#define _DARWIN_C_SOURCE 1
#define _XOPEN_SOURCE 600
#define _XOPEN_SOURCE_EXTENDED 1
#define _POSIX_C_SOURCE 200112L
configure: exit 77