You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to install Torch7 on ubuntu14.04 according to the official guide but when I typed command cd ~/torch; ./install.sh, I always received the following error:
Thanks in advance
root@andrew:~/torch# cd ~/torch; ./install.sh
Prefix set to /root/torch/install
Installing Lua version: LUAJIT21
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /root/torch/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3255080616/fast"
According to the line:
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It seems that your /usr/bin/cc is not pointing to a valid C/C++ compiler. So test your C compiler before installing Torch.
I tried to install Torch7 on ubuntu14.04 according to the official guide but when I typed command cd ~/torch; ./install.sh, I always received the following error:
Thanks in advance
root@andrew:~/torch# cd ~/torch; ./install.sh
Prefix set to /root/torch/install
Installing Lua version: LUAJIT21
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /root/torch/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3255080616/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3255080616.dir/build.make
CMakeFiles/cmTryCompileExec3255080616.dir/build
make[1]: Entering directory `/root/torch/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/root/torch/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object
CMakeFiles/cmTryCompileExec3255080616.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec3255080616.dir/testCCompiler.c.o
-c /root/torch/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTryCompileExec3255080616
/usr/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec3255080616.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec3255080616.dir/testCCompiler.c.o -o
cmTryCompileExec3255080616 -rdynamic
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make[1]: *** [cmTryCompileExec3255080616] Error 1
make[1]: Leaving directory `/root/torch/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3255080616/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
The text was updated successfully, but these errors were encountered: