【发布时间】:2013-11-17 22:30:10
【问题描述】:
我正在尝试在我的共享主机上安装新的 Python 环境。我按照this post中写的步骤:
mkdir ~/src
wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
tar -zxvf Python-2.7.1.tar.gz
cd Python-2.7.1
mkdir ~/.localpython
./configure --prefix=/home/<user>/.localpython
make
make install
来到./configure --prefix=/home/<user>/.localpython命令后,得到如下输出:
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux3
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home3/mikos89/Python-2.7.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
如何解决这个问题?我已经尝试了 3 个小时来寻找解决方案,但我仍然卡在一个地方。
更新
Hostgator does not allow gcc 在他们的共享帐户上:
【问题讨论】:
-
完全相同的问题
-
您应该尝试为您的系统找到预构建的二进制文件。如果您没有 root 访问权限,这是最简单的方法。
标签: python compiler-errors virtualenv