[英]PyStan: CompileError: command 'gcc' failed with exit status 1 (macos)
[英]VerificationError: CompileError: command 'cc' failed with exit status 1
我正在嘗試安裝: PyPi軟件包中的couchbase-python-cffi 。 但是在嘗試安裝couchbase-python-cffi時,我仍然收到以下錯誤:
VerificationError: CompileError: command 'cc' failed with exit status 1
僅在我的Travis構建上會發生此錯誤: https : //travis-ci.org/ardydedase/pycouchbase/jobs/75819605#L541
這是我的travis文件的內容:
# Config file for automatic testing at travis-ci.org
language: python
python:
- "3.4"
- "3.3"
- "2.7"
- "2.6"
- "pypy"
before_install:
- sudo rm -rf /etc/apt/sources.list.d/*
- wget -O- http://packages.couchbase.com/ubuntu/couchbase.key | sudo apt-key add -
- echo deb http://packages.couchbase.com/ubuntu precise precise/main | sudo tee /etc/apt/sources.list.d/couchbase.list
- sudo apt-get update
- sudo apt-cache search libcouchbase
- sudo apt-get install libxml2-dev libxslt-dev python-dev libffi6 libffi-dev
- sudo apt-get install build-essential libssl-dev
install:
- sudo apt-get -y install libcouchbase-dev libcouchbase2-core libcouchbase2-libevent libevent-dev
- pip -q install gevent || echo "Couldn't find gevent"
- pip -q install twisted
- pip -q install testresources
- pip install -r requirements.txt
# command to run tests, e.g. python setup.py test
script:
- cd couchbase-python-cffi
- python setup.py install
- cd ..
- python runtests.py
任何幫助將不勝感激,因為這困擾了我一段時間。
couchbase_cffi模塊包含庫的“ cached”標頭(在couchbase_ffi/_lcb.h
)。 這是針對較舊版本的庫生成的。 刪除該文件,以強制couchbase_cffi再次重新生成該文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.