title: getting ipython3 to use readline in ubuntu linux
body: <p>I have a <code>python3.3.1</code> installation on <code>ubuntu</code> (though the default is python2.6.5).I generally work using the <code>virtualenvwrapper</code>.</p>
  
  <p>I wanted to install <code>ipython</code> which supports <code>python3</code>.So I did this</p>
  
  <pre><code>&gt;&gt;workon envpy331
  (envpy331)damon@ubuntu:~$
  (envpy331)damon@ubuntu:~$pip install ipython
  ....
  </code></pre>
  
  <p>After the installation was done,I tried </p>
  
  <pre><code>(envpy331)damon@ubuntu:ipython3
  (envpy331)damon@ubuntu:
  
  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.
  ?         -&gt; Introduction and overview of IPython's features.
  %quickref -&gt; Quick reference.
  help      -&gt; Python's own help system.
  object?   -&gt; 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
  </code></pre>
  
  <p>Seeing this I tried to install readline</p>
  
  <pre><code>(envpy331)damon@ubuntu:pip install readline
  </code></pre>
  
  <p>This downloaded and tried to install readline but failed</p>
  
  <pre><code>/usr/bin/ld: cannot find -lncurses
  
  collect2: ld returned 1 exit status
  
  error: command 'gcc' failed with exit status 1
  </code></pre>
  
  <p>When I tried to locate libncurses,I found that version 5 is installed in the system</p>
  
  <pre><code>:locate libncurses
  
  &gt;&gt;/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
  </code></pre>
  
  <p>Any idea how to correct this? </p>