torch / torch.github.io

Torch's web page.
75 stars 78 forks source link

Readline error while installing Torch #67

Open ssabat opened 7 years ago

ssabat commented 7 years ago

I tried to install latest Torch on my vultr cloud instance. I installed cmake. I did GIT clone of Torch. Then, I ran ./install.sh.

I see following error.

.............. ..................... Updating manifest for /home/ssabat/torch/install/lib/luarocks/rocks dok scm-1 is now built and installed in /home/ssabat/torch/install/ (license: BSD)

gcc -O2 -fPIC -I/home/ssabat/torch/install/include -c utils.c -o utils.o gcc -shared -o treplutils.so -L/home/ssabat/torch/install/lib utils.o gcc -O2 -fPIC -I/home/ssabat/torch/install/include -c readline.c -o readline.o readline.c:8:31: fatal error: readline/readline.h: No such file or directory

include <readline/readline.h>

                           ^

compilation terminated.

Error: Build error: Failed compiling object readline.o [ssabat@bkglinux torch]$

Any guidance?

Thanks,

Sunil Sabat

pavanroy commented 7 years ago

installed readline-devel on RHEL and the installation worked.

yum install readline-devel

Andruida commented 5 years ago

You must install the development package for READLINE (in ubuntu: libreadline-dev)

MrBruz commented 4 years ago

Same problem, already installed to newest version, ubuntu lts