torch / ezinstall

One-line install scripts for Torch.
75 stars 79 forks source link

module 'parallel' not found #75

Closed fabioperez closed 8 years ago

fabioperez commented 8 years ago

I don't know if this is still in use, but th -lparallel gives:

could not load parallel, skipping
/usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:48: module 'parallel' not found:No LuaRocks module found for parallel
        no field package.preload['parallel']
        no file '/root/.luarocks/share/lua/5.1/parallel.lua'
        no file '/root/.luarocks/share/lua/5.1/parallel/init.lua'
        no file '/usr/local/share/lua/5.1/parallel.lua'
        no file '/usr/local/share/lua/5.1/parallel/init.lua'
        no file './parallel.lua'
        no file '/usr/local/share/luajit-2.0.4/parallel.lua'
        no file '/root/.luarocks/lib/lua/5.1/parallel.so'
        no file '/usr/local/lib/lua/5.1/parallel.so'
        no file './parallel.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:48: in function </usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:48>
        [C]: in function 'xpcall'
        /usr/local/lib/luarocks/rocks/trepl/scm-1/bin/th:48: in main chunk
        [C]: at 0x00405850
soumith commented 8 years ago

you likely had install errors on parallel.

luarocks install parallel

will show you the issues.

fabioperez commented 8 years ago

When installing parallel, I got this:

$ luarocks install parallel
Installing https://raw.githubusercontent.com/torch/rocks/master/parallel-1.1-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/parallel-1.1-0.rockspec... switching to 'build' mode
Cloning into 'lua---parallel'...
remote: Counting objects: 18, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 18 (delta 1), reused 7 (delta 0), pack-reused 0
Unpacking objects: 100% (18/18), done.
Checking connectivity... done.
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/usr/local/bin/.." -DCMAKE_INSTALL_PREFIX="/usr/local/lib/luarocks/rocks/parallel/1.1-0";
make

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- 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
-- 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
-- Found Torch7 in /usr/local
-- ** WARNING no ZMQ_ROOT setting to $HOME/local
-- ** you can set the correct ZMQ_ROOT in your environment
-- ** eg. bash: export ZMQ_ROOT=<somewhere>/local
-- Searching for libzmq in : /root/local/lib
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ZMQ_INCLUDE_DIR
   used as include directory in directory /tmp/luarocks_parallel-1.1-0-6067/lua---parallel
   used as include directory in directory /tmp/luarocks_parallel-1.1-0-6067/lua---parallel
ZMQ_LIBRARY
    linked by target "luazmq" in directory /tmp/luarocks_parallel-1.1-0-6067/lua---parallel

-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_parallel-1.1-0-6067/lua---parallel/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.

Error: Build error: Failed building.