python编译安装没有c_安装python时在$ PATH中找不到可接受的C编译器

我正在尝试在我的共享主机上安装新的python环境。 我按照这篇文章中的步骤进行操作:

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//.localpython

make

make install

在进入“./configure --prefix = / home // .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小时的解决方案,但仍然停留在一个地方。

UPDATE

Hostgator不允许在其共享帐户上使用gcc:[http://support.hostgator.com/articles/pre-sales-questions/compatible-technologies]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值