0

I'm currently trying to install a few modules via virtualenv, which I have bootstrapped at the moment, and so far pip and easy_install have been working fine. I am now trying to install the Sybase module; however, it seems I need gcc to install it as I'm getting the following output:

running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
copying Sybase.py -> build/lib.linux-x86_64-2.6
running build_ext
building 'sybasect' extension
creating build/temp.linux-x86_64-2.6
gcc ...
unable to execute gcc: No such file or directory

error: command 'gcc' failed with exit status 1

----------------------------------------

I am now trying to install the python dev package which I'm assuming will solve my problem; however, I don't have network access from the command line and can't use yum install. Is there a way to install the python dev package from a tar.gz or some other method? or just gcc for virtualenv? My machine does not have a native gcc either and I can't get it at this stage.

4

1 に答える 1

1

python-devシステムにGNUCコンパイラがないため、インストールしても問題は解決しません。それをインストールすると、おそらく問題が解決します。python-devは二次的なものであり、欠落していると、さまざまなタイプのエラーが発生します(つまり、コンパイルプロセス中にヘッダーが欠落します)。

そして..ネイティブgccを入手できない場合は、現時点では運が悪いと思います。

于 2012-12-27T03:54:05.477 に答える