Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torch install failed on Ubuntu 14.04 #62

Open
ghost opened this issue Jan 17, 2016 · 1 comment
Open

Torch install failed on Ubuntu 14.04 #62

ghost opened this issue Jan 17, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 17, 2016

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):

@fernandoc1
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant