已经安装了 Python 仍然报错 no suitable Python interpreter found 如何解决?
雪峰 业界专家认证 2007-08-14 03:41:01 我最近刚刚接触 Linux,练习从源文件安装程序,可能这是太基础的东西,所以在网上搜索很久也没找到答案,所以才来麻烦各位高手给详细解释一下。
红旗 Linux Desktop 5.0 下安装 Scribes-0.3.2.8 或者 gEdit 2.18.0,执行 ./configure 编译总不能通过,最后报错:
Python >= 2.4
no suitable Python interpreter found
实际上已经安装了 Python 2.5.1,但仍然报上面的错。请问是什么原因,怎么解决?
详细的配置日志 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 scribes configure 0.3.2.8, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --with-python-dir=/usr/python --prefix=/usr/local/
## --------- ##
## Platform. ##
## --------- ##
hostname = localhost
uname -m = i686
uname -r = 2.6.9-5.34DT
uname -s = Linux
uname -v = #1 Mon Jan 23 16:32:34 CST 2006
/usr/bin/uname -p = unknown
/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/kerberos/sbin
PATH: /usr/kerberos/bin
PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /usr/local/bin
PATH: /usr/share/jre/bin
PATH: /root/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1883: checking for a BSD-compatible install
configure:1939: result: /usr/bin/install -c
configure:1950: checking whether build environment is sane
configure:1993: result: yes
configure:2058: checking for gawk
configure:2074: found /bin/gawk
configure:2085: result: gawk
configure:2096: checking whether make sets $(MAKE)
configure:2117: result: yes
configure:2301: checking whether to enable maintainer-specific portions of Makefiles
configure:2310: result: no
configure:2341: checking for style of include used by make
configure:2369: result: GNU
configure:2442: checking for gcc
configure:2458: found /usr/bin/gcc
configure:2469: result: gcc
configure:2707: checking for C compiler version
configure:2714: gcc --version >&5
gcc (GCC) 3.4.3 20041212 (Asianux 2.0 3.4.3-9.EL4.2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2717: $? = 0
configure:2724: gcc -v >&5
Reading specs from /usr/lib/gcc/i386-redflag-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,java,f77 --disable-libgcj --host=i386-redflag-linux
Thread model: posix
gcc version 3.4.3 20041212 (Asianux 2.0 3.4.3-9.EL4.2)
configure:2727: $? = 0
configure:2734: gcc -V >&5
gcc: `-V' option must have argument
configure:2737: $? = 1
configure:2760: checking for C compiler default output file name
configure:2787: gcc conftest.c >&5
configure:2790: $? = 0
configure:2828: result: a.out
configure:2845: checking whether the C compiler works
configure:2855: ./a.out
configure:2858: $? = 0
configure:2875: result: yes
configure:2882: checking whether we are cross compiling
configure:2884: result: no
configure:2887: checking for suffix of executables
configure:2894: gcc -o conftest conftest.c >&5
configure:2897: $? = 0
configure:2921: result:
configure:2927: checking for suffix of object files
configure:2953: gcc -c conftest.c >&5
configure:2956: $? = 0
configure:2979: result: o
configure:2983: checking whether we are using the GNU C compiler
configure:3012: gcc -c conftest.c >&5
configure:3018: $? = 0