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

Issue installing pytorch #29

Open
sagarwaghmare69 opened this issue Jan 4, 2017 · 0 comments
Open

Issue installing pytorch #29

sagarwaghmare69 opened this issue Jan 4, 2017 · 0 comments

Comments

@sagarwaghmare69
Copy link

I am following the instructions from README:installation.
I installed torch with lua5.2 instead of luajit.
I added TORCH_INSTALL variable to my .bashrc.
When I run ./build.sh I get following error. Any help is appreciated

./build.sh
Cannot uninstall requirement PyTorch, not installed
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Torch7 in /home/swaghmare/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /home/swaghmare/repositories/pytorch/cbuild
Scanning dependencies of target PyTorchNative
[ 33%] Building CXX object CMakeFiles/PyTorchNative.dir/src/LuaHelper.cpp.o
[ 66%] Building CXX object CMakeFiles/PyTorchNative.dir/src/nnWrapper.cpp.o
In file included from /home/swaghmare/repositories/pytorch/src/LuaHelper.cpp:6:0:
/home/swaghmare/torch/install/include/luaT.h:41:12: warning: ‘int luaL_typerror(lua_State*, int, const char*)’ defined but not used [-Wunused-function]
static int luaL_typerror(lua_State L, int narg, const char tname)
^
In file included from /home/swaghmare/repositories/pytorch/src/nnWrapper.cpp:17:0:
/home/swaghmare/torch/install/include/luaT.h:41:12: warning: ‘int luaL_typerror(lua_State
, int, const char
)’ defined but not used [-Wunused-function]
static int luaL_typerror(lua_State *L, int narg, const char *tname)
^
[100%] Linking CXX shared library libPyTorchNative.so
/usr/bin/ld: cannot find -lluajit
collect2: error: ld returned 1 exit status
CMakeFiles/PyTorchNative.dir/build.make:122: recipe for target 'libPyTorchNative.so' failed
make[2]: *** [libPyTorchNative.so] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/PyTorchNative.dir/all' failed
make[1]: *** [CMakeFiles/PyTorchNative.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

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