如何在Jenkins上使用gnureadline解决ShiningPanda virtualenv错误?

时间:2016-01-17 11:32:58

标签: jenkins

Running setup.py bdist_wheel for gnureadline

错误:

DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/usr/include/python2.7 -c Modules/2.x/readline.c -o build/temp.linux-x86_64-2.7/Modules/2.x/readline.o
  In file included from Modules/2.x/readline.c:31:0:
  ./readline/readline.h:385:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
  gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.linux-x86_64-2.7/gnureadline.so
  /usr/bin/ld: cannot find -lncurses
  collect2: error: ld returned 1 exit status
  error: command 'gcc' failed with exit status 1

Mange Jenkins设置:

Python : CPython-2.7
Path: /usr/bin/python

1 个答案:

答案 0 :(得分:1)

问题是.css()gnureadline中,在构建虚拟环境和安装要求时无法安装软件包。

大多数操作系统不需要

requirements.txt。正如Ludwig中指出post

  

仅在不提供readline的平台上使用gnureadline [仅]   根本就是替换不相容产品的readline   libedit(即Mac OS X)

因此解决方案只是从gnureadline

中删除gnureadline