【问题标题】:VerificationError: CompileError: command 'cc' failed with exit status 1VerificationError: CompileError: command 'cc' failed with exit status 1
【发布时间】:2015-11-09 05:57:15
【问题描述】:

我正在尝试安装:couchbase-python-cffi 作为 PyPi 包的一部分。但是在尝试安装 couchbase-python-cffi 时,我不断收到以下错误:

VerificationError: CompileError: command 'cc' failed with exit status 1

这个错误只发生在我的 Travis Build: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

任何帮助将不胜感激,因为这已经困扰了我很长一段时间。

【问题讨论】:

  • Travis 日志中的第一个错误是error: ‘lcb_SYNCTOKEN’ undeclared。在 couchbase_ffi 的 cffi 源代码中,它看起来像是缺少 #include。我不知道为什么只在 Travis...
  • 看进一步的错误,可能是libcouchbase-dev的版本问题。
  • @ArminRigo:感谢您的关注!原来我错过了一个缓存的标头。

标签: python ubuntu-12.04 couchbase python-cffi


【解决方案1】:

couchbase_cffi 模块包含库的“缓存”标头(在couchbase_ffi/_lcb.h 中)。这是针对旧版本的库生成的。删除该文件以强制 couchbase_cffi 重新生成该文件。

【讨论】:

猜你喜欢
  • 2019-03-19
  • 1970-01-01
  • 2020-10-13
  • 2011-08-20
  • 2020-11-04
  • 1970-01-01
  • 2014-05-07
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多