Skip to content

Issue installing pytorch #29

Description

@sagarwaghmare69

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions