[yt-users] readline installation failing

Nathan Goldbaum goldbaum at ucolick.org
Sat Jul 7 16:12:04 PDT 2012


Hi Pengfei,

Do you have libreadline installed?  If not, you can install it using apt-get:

$ sudo apt-get install libreadline-dev

Let us know if that doesn't resolve the issue.

Cheers,

Nathan



On Jul 7, 2012, at 3:52 PM, Pengfei Chen <madcpf at gmail.com> wrote:

> Hi guys,
> 
> I have installed yt (development version) on my Ubuntu 12.04 LTS. Then
> I tried to install readline so that I can see the previous commands in
> iyt. I did "pip install readline" under /yt/bin, but it showed error:
> ============ Building the readline extension module ============
> 
> running install
> 
> running build
> 
> running build_ext
> 
> building 'readline' extension
> 
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
> -Wstrict-prototypes -fPIC -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/home/madcpf/Documents/dev_yt/include/python2.7 -c
> Modules/2.x/readline.c -o
> build/temp.linux-i686-2.7/Modules/2.x/readline.o
> -Wno-strict-prototypes
> 
> as: /home/madcpf/Documents/dev_yt/lib/libz.so.1: no version
> information available (required by /usr/lib/libbfd-2.22-system.so)
> 
> gcc -pthread -shared -L/home/madcpf/Documents/dev_yt/lib/
> -L/home/madcpf/Documents/dev_yt/lib64/
> -L/home/madcpf/Documents/dev_yt/lib/
> -L/home/madcpf/Documents/dev_yt/lib64/
> -L/home/madcpf/Documents/dev_yt/lib/
> -L/home/madcpf/Documents/dev_yt/lib64/
> -L/home/madcpf/Documents/dev_yt/lib/
> -L/home/madcpf/Documents/dev_yt/lib64/
> build/temp.linux-i686-2.7/Modules/2.x/readline.o
> readline/libreadline.a readline/libhistory.a -lncurses -o
> build/lib.linux-i686-2.7/readline.so
> 
> gcc: error: readline/libreadline.a: No such file or directory
> 
> gcc: error: readline/libhistory.a: No such file or directory
> 
> error: command 'gcc' failed with exit status 1
> 
> ----------------------------------------
> Command /home/madcpf/Documents/dev_yt/bin/python2.7 -c "import
> setuptools;__file__='/home/madcpf/Documents/dev_yt/bin/build/readline/setup.py';exec(compile(open(__file__).read().replace('\r\n',
> '\n'), __file__, 'exec'))" install --single-version-externally-managed
> --record /tmp/pip-EMEAm1-record/install-record.txt failed with error
> code 1 in /home/madcpf/Documents/dev_yt/bin/build/readline
> Storing complete log in /home/madcpf/.pip/pip.log
> 
> Then I googled the error "gcc: error: readline/libreadline.a: No such
> file or directory", but I still can't find a way that works. Any ideas
> what I should do?
> 
> Thank you!
> 
> Pengfei
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> 
> !DSPAM:10175,4ff8bdbd3359460817825!
> 



More information about the yt-users mailing list