Torch7: Installation failure

Created on 13 Aug 2015  路  18Comments  路  Source: torch/torch7

Hi,
I have been trying to install torch and am getting an error. I used the instructions on http://torch.ch/docs/getting-started.html#_
This is my stack after the third attempt :

~/torch$ ./install.sh
Prefix set to /home/eighteen/torch/install
Installing Lua version: LUAJIT21
Installing common Lua packages
Installed luafilesystem
Installed penlight
Installed lua-cjson
Installing core Torch packages
gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c src/autolink.c -o src/autolink.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c src/buffer.c -o src/buffer.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c src/markdown.c -o src/markdown.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c src/stack.c -o src/stack.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c html/houdini_href_e.c -o html/houdini_href_e.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c html/houdini_html_e.c -o html/houdini_html_e.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c html/html.c -o html/html.o -Isrc/ -Ihtml/
gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c html/html_smartypants.c -o html/html_smartypants.o -Isrc/ -Ihtml/
gcc -shared -o libsundown.so -L/home/eighteen/torch/install/lib src/autolink.o src/buffer.o src/markdown.o src/stack.o html/houdini_href_e.o html/houdini_html_e.o html/html.o html/html_smartypants.o
Updating manifest for /home/eighteen/torch/install/lib/luarocks/rocks
sundown scm-1 is now built and installed in /home/eighteen/torch/install/ (license: BSD)

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

Warning: unmatched variable LUALIB
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB= -DLUA_INCDIR="/home/eighteen/torch/install/include" -DLUA_LIBDIR="/home/eighteen/torch/install/lib" -DLUADIR="/home/eighteen/torch/install/lib/luarocks/rocks/paths/scm-1/lua" -DLIBDIR="/home/eighteen/torch/install/lib/luarocks/rocks/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/home/eighteen/torch/install/lib/luarocks/rocks/paths/scm-1" && make

-- Configuring done
-- Generating done
-- Build files have been written to: /home/eighteen/torch/pkg/paths/build
[100%] Built target paths
cd build && make install
[100%] Built target paths
Install the project...
-- Install configuration: "Release"
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/paths/scm-1/lua/paths/init.lua
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/paths/scm-1/lib/libpaths.so
Updating manifest for /home/eighteen/torch/install/lib/luarocks/rocks
paths scm-1 is now built and installed in /home/eighteen/torch/install/ (license: BSD)

Warning: unmatched variable LUALIB
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUA=/home/eighteen/torch/install/bin/luajit -DLUALIB= -DLUA_BINDIR="/home/eighteen/torch/install/bin" -DLUA_INCDIR="/home/eighteen/torch/install/include" -DLUA_LIBDIR="/home/eighteen/torch/install/lib" -DLUADIR="/home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua" -DLIBDIR="/home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1" && make

-- Compiling with OpenMP support
-- Compiling with OpenMP support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this on this machine.
-- No OMAP4 processor on this on this machine.
-- Atomics: using GCC intrinsics
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_sequential - mkl_core - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_sequential - mkl_core - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_sequential - mkl_core - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_sequential - mkl_core - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core - m]
--   Library mkl_intel: not found
-- Checking for [mkl_gf_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf_lp64: not found
-- Checking for [mkl_gf - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_gf - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_gf: not found
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_gnu_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread - m]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
-- LAPACK requires BLAS
-- Cannot find a library with LAPACK API. Not using LAPACK.
-- C inline is supported (inline)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/eighteen/torch/pkg/torch/build
[  2%] Built target luaT
[ 26%] Built target TH
[ 50%] Built target torch
[ 73%] Built target torch_static
[ 97%] Built target TH_static
[100%] Built target luaT_static
cd build && make install
[  2%] Built target luaT
[ 26%] Built target TH
[ 50%] Built target torch
[ 73%] Built target torch_static
[ 97%] Built target TH_static
[100%] Built target luaT_static
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /home/eighteen/torch/install/share/cmake/torch/TorchExports.cmake
-- Installing: /home/eighteen/torch/install/share/cmake/torch/TorchExports-release.cmake
-- Up-to-date: /home/eighteen/torch/install/share/cmake/torch/TorchConfig.cmake
-- Up-to-date: /home/eighteen/torch/install/share/cmake/torch/TorchWrap.cmake
-- Up-to-date: /home/eighteen/torch/install/share/cmake/torch/TorchPathsInit.cmake
-- Up-to-date: /home/eighteen/torch/install/share/cmake/torch/TorchPackage.cmake
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lib/libtorch.so
-- Set runtime path of "/home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lib/libtorch.so" to "$ORIGIN/../lib:/home/eighteen/torch/install/lib"
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/init.lua
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/File.lua
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/Tensor.lua
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/CmdLine.lua
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/FFI.lua
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/Tester.lua
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/test.lua
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/README.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/random.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/maths.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/diskfile.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/memoryfile.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/tensor.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/serialization.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/timer.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/tester.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/pipefile.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/utility.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/cmdline.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/storage.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/file.md
-- Installing: /home/eighteen/torch/install/lib/luarocks/rocks/torch/scm-1/lua/torch/doc/gather.png
-- Up-to-date: /home/eighteen/torch/install/lib/libTH.so
-- Up-to-date: /home/eighteen/torch/install/include/TH/TH.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THAllocator.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THBlas.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THDiskFile.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THFile.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THFilePrivate.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THGeneral.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THGenerateAllTypes.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THGenerateFloatTypes.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THGenerateIntTypes.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THLapack.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THLogAdd.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THMemoryFile.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THRandom.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THStorage.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THTensor.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THTensorApply.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THTensorDimApply.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THTensorMacros.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THVector.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/THAtomic.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THBlas.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THBlas.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THLapack.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THLapack.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THStorage.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THStorage.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THStorageCopy.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THStorageCopy.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensor.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensor.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorConv.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorConv.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorCopy.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorCopy.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorLapack.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorLapack.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorMath.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorMath.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorRandom.c
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THTensorRandom.h
-- Up-to-date: /home/eighteen/torch/install/include/TH/generic/THVector.c
-- Up-to-date: /home/eighteen/torch/install/share/cmake/torch/THConfig.cmake
-- Up-to-date: /home/eighteen/torch/install/lib/libluaT.so
-- Up-to-date: /home/eighteen/torch/install/include/luaT.h
-- Up-to-date: /home/eighteen/torch/install/share/cmake/torch/luaTConfig.cmake
Updating manifest for /home/eighteen/torch/install/lib/luarocks/rocks
torch scm-1 is now built and installed in /home/eighteen/torch/install/ (license: BSD)

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

gcc -O2 -fPIC -I/home/eighteen/torch/install/include -c readline.c -o readline.o
readline.c:7: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

Most helpful comment

Fixed with apt-get install libreadline-dev

All 18 comments

what OS (ubuntu, osx etc., which version)? 32-bit or 64-bit? did you run the install-deps script to install all dependencies?

If its redhat, try yum install readline-devel

I am on Ubuntu 14.04.3 LTS 64 bit.
I ran the commands in the same order as they appear on the official page. Was there any background installation I had to do prior to that ?

@darshanime I got the same problem!

Looks like you're missing libreadline-dev, but I can see this in the install script https://raw.githubusercontent.com/torch/ezinstall/master/install-deps Maybe post the output of running install-deps

When I re-run the installation after removing the torch/ and eanything in tmp/, I got the following error:

END OF TESTS
make[1]: Leaving directory /tmp/OpenBLAS/ctest' make[1]: Entering directory/tmp/OpenBLAS/exports'
perl ./gensymbol linktest x86_64 _ 0 0 0 0 0 0 "" "" > linktest.c
gcc -O2 -fopenmp -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DUSE_OPENMP -DNO_WARMUP -DMAX_CPU_NUMBER=4 -DASMNAME= -DASMFNAME=_ -DNAME=_ -DCNAME= -DCHAR_NAME=\"_\" -DCHAR_CNAME=\"\" -DNO_AFFINITY -I.. -shared -o ../libopenblas_nehalemp-r0.2.14.so \
-Wl,--whole-archive ../libopenblas_nehalemp-r0.2.14.a -Wl,--no-whole-archive \
-Wl,-soname,libopenblas.so.0 -lm -lpthread -lgfortran -lm -lpthread -lgfortran
/usr/bin/ld: cannot find -lgfortran
collect2: ld returned 1 exit status
make[1]: ** [../libopenblas_nehalemp-r0.2.14.so] Error 1
make[1]: Leaving directory `/tmp/OpenBLAS/exports'
make: *
* [shared] Error 2
Error. OpenBLAS could not be compiled

I figure out the problem because I am using a different gcc version which does not have gfortran, so I switch the gcc version to the one that has it and the above error disappear.

http://askubuntu.com/questions/26498/choose-gcc-and-g-version

Hi,johnny,I met exactly the same problem .I want to know the gcc version you are using

So, it gets tricky when you install torch7. I recalled at some point I encounter a problem in compiling a module, which needs GCC 4.4. Then, at some point again, I encounter an error, and then switched to GCC 4.9.

(Either gcc4.4 then gcc4.9; or gcc4.9 then gcc4.4. Don't exactly remember the pattern)

I have tried gcc4.6, it worked for me. It seems that gcc4.8 will also work. And you do not need to change between different gcc versions https://groups.google.com/forum/#!msg/torch7/kpS8d_OGcbE/UaYIhBi1JJMJ

Sounds good :) It just happened to me I have these two GCC versions, so I did it in the ways I described.

I had the same problem but got rid of it after installing libreadline-dev:
https://gitter.im/torch/torch7/archives/2015/08/10

@liumangtu FYI:
GCC == 4.8.2-1ubuntu6 did not work

Issued solved by: (apt-get intsall) libreadline-dev

I'm using gcc 4.6.3 on Ubuntu 12.04 LTS
Same Issued solved by: (apt-get intsall) libreadline-dev
I think while installing-deps, since '-E' flag isn't passed to bash, some dependencies don't get installed properly.

I solved by: apt-get intsall libreadline-dev

Fixed with apt-get install libreadline-dev

Yes I had the same problem and it get solved with :- apt-get install libreadline-dev.
This is a solution for terminal with new gcc version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wyvern92 picture wyvern92  路  6Comments

kaleem0002 picture kaleem0002  路  10Comments

zosob picture zosob  路  4Comments

n3011 picture n3011  路  9Comments

spiralswimmer picture spiralswimmer  路  6Comments