2013-05-17 23 views
0

我在ubuntu上安裝了python3.3.1安裝(雖然默認是python2.6.5)。我通常使用virtualenvwrapper工作。讓ipython3在Ubuntu linux中使用readline

我想安裝ipython支持python3。所以我沒有這個

>>workon envpy331 
(envpy331)[email protected]:~$ 
(envpy331)[email protected]:~$pip install ipython 
.... 

安裝已完成後,我試圖

(envpy331)[email protected]:ipython3 
(envpy331)[email protected]: 

WARNING: IPython History requires SQLite, your history will not be saved 
Python 3.3.1 (default, Apr 19 2013, 11:41:37) 
Type "copyright", "credits" or "license" for more information. 

IPython 0.13.2 -- An enhanced Interactive Python. 
?   -> Introduction and overview of IPython's features. 
%quickref -> Quick reference. 
help  -> Python's own help system. 
object? -> Details about 'object', use 'object??' for extra details. 
WARNING: Readline services not available or not loaded.WARNING: The auto-indent feature requires the readline library 

見此我試圖安裝的readline

(envpy331)[email protected]:pip install readline 

這下載並試圖安裝readlin Ë但未能

/usr/bin/ld: cannot find -lncurses 

collect2: ld returned 1 exit status 

error: command 'gcc' failed with exit status 1 

當我試圖找到的libncurses,我發現第5版系統中安裝的

:locate libncurses 

>>/lib/libncurses.so.5 
/lib/libncurses.so.5.7 
/lib/libncursesw.so.5 
/lib/libncursesw.so.5.7 
/usr/lib/vlc/plugins/gui/libncurses_plugin.so 
/usr/share/doc/libncurses5 
/usr/share/doc/libncursesw5 
/usr/share/doc/libncurses5/FAQ 
/usr/share/doc/libncurses5/README.Debian 
/usr/share/doc/libncurses5/TODO.Debian 
/usr/share/doc/libncurses5/changelog.Debian.gz 
/usr/share/doc/libncurses5/copyright 
/usr/share/doc/libncursesw5/changelog.Debian.gz 
/usr/share/doc/libncursesw5/copyright 
/var/lib/dpkg/info/libncurses5.list 
/var/lib/dpkg/info/libncurses5.md5sums 
/var/lib/dpkg/info/libncurses5.postinst 
/var/lib/dpkg/info/libncurses5.postrm 
/var/lib/dpkg/info/libncurses5.shlibs 
/var/lib/dpkg/info/libncursesw5.list 
/var/lib/dpkg/info/libncursesw5.md5sums 
/var/lib/dpkg/info/libncursesw5.postinst 
/var/lib/dpkg/info/libncursesw5.postrm 
/var/lib/dpkg/info/libncursesw5.shlibs 

任何想法如何糾正呢?

回答

2

您已經安裝了ncurses庫,但需要不研究與開發頭編譯readline

嘗試安裝libncurses5-dev,那麼它應該工作。