2014-04-06 15 views
24

के माध्यम से gnureadline को स्थापित करने में त्रुटि आईपीथॉन 2.0 में अपग्रेड करने का प्रयास करते समय मैंने अपना आईपीथन सेटअप तोड़ दिया। स्थापना gnureadline स्थापित होने पर विफल हो जाती है। मैं मूल रूप से this problem था लेकिन मैंने इसे ठीक किया। अब मुझे यह त्रुटि मिल रही है:पाइप

cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -Qunused-arguments -Qunused-arguments build/temp.macosx-10.9-intel-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.macosx-10.9-intel-2.7/gnureadline.so 

clang: error: no such file or directory: 'readline/libreadline.a' 

clang: error: no such file or directory: 'readline/libhistory.a' 

error: command 'cc' failed with exit status 1 

---------------------------------------- 
Cleaning up... 
Command /usr/bin/python -c "import setuptools;__file__='/private/var/folders/jj/0w0dd3n16jq4g5579g6c7h040000gn/T/pip_build_root/gnureadline/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/jj/0w0dd3n16jq4g5579g6c7h040000gn/T/pip-iJITYv-record/install-record.txt --single-version-externally-managed failed with error code 1 in /private/var/folders/jj/0w0dd3n16jq4g5579g6c7h040000gn/T/pip_build_root/gnureadline 
Storing complete log in /Users/mc/Library/Logs/pip.log 

किसी भी मदद के लिए धन्यवाद।

उत्तर

52

sudo apt-get install libncurses5-dev

संदर्भ: Ipython no readline available and pip install readline error

+1

टर्मिनल में स्थापित 'sudo apt-libncurses5-dev' इंस्टॉल करें, यह ठीक काम कर रहा है और फिर 'pip install gnureadline == 6.3.3' –

8

उपरोक्त के अतिरिक्त। libffi पैकेज ने इसे मेरे लिए हल किया।

sudo apt-get install libncurses5-dev libffi-dev 
0

टर्मिनल sudo में स्थापित apt-get libncurses5-देव स्थापित करते हैं, यह ठीक काम कर रहा है और उसके बाद रंज gnureadline == 6.3.3

0

स्थापित फेडोरा उपयोगकर्ताओं के लिए:

dnf install ncurses-devel