luarocks install $NAME failed

254 views
Skip to first unread message

mltfc...@gmail.com

unread,
Jun 27, 2018, 5:33:56 AM6/27/18
to CMU-OpenFace
Hi, team

ubuntu 16.04  OS type 64-bit(VMware Workstation) without GPU

installing openface with conda

'for NAME in dpnn nn optim optnet csvigo cutorch cunn fblualib torchx tds; do luarocks install $NAME; done' failed
cutorch and cunn (only with CUDA) and fblualib (only for training a DNN) failed, but others is ok.
 Is GPU necessary? what should I do, thank you.


sj@ubuntu:~/torch$ luarocks install fblualib
Error: No results matching query were found.
sj@ubuntu:~/torch$ luarocks install cutorch
Cloning into 'cutorch'...
remote: Counting objects: 229, done.
remote: Compressing objects: 100% (184/184), done.
remote: Total 229 (delta 62), reused 90 (delta 43), pack-reused 0
Receiving objects: 100% (229/229), 241.83 KiB | 1024 bytes/s, done.
Resolving deltas: 100% (62/62), done.
Checking connectivity... done.
Warning: unmatched variable LUALIB

jopts=$(getconf _NPROCESSORS_CONF)

echo "Building on $jopts cores"
cmake -E make_directory build && cd build && cmake .. -DLUALIB= -DLUA_INCDIR=/home/sunjing/torch/install/include -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/sunjing/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/sunjing/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make -j$jopts install

Building on 12 cores
-- 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/sunjing/torch/install
CMake Error at /usr/share/cmake-3.5/Modules/FindCUDA.cmake:617 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  CMakeLists.txt:7 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_cutorch-scm-1-1206/cutorch/build/CMakeFiles/CMakeOutput.log".

Error: Build error: Failed building.

Galip Pala

unread,
Jul 19, 2018, 6:30:58 PM7/19/18
to CMU-OpenFace
Hello,

I have faced with the similar problem when i was installing the dpnn with luarocks. I have solved my problem. There is link for this issue : https://github.com/luarocks/luarocks/issues/651

You can try these commands.
sudo chown -R $USER ~/.cache/luarocks
sudo chown -R $USER ~/.luarocks

$USER --> your user name

Hope this works for you too.

27 Haziran 2018 Çarşamba 12:33:56 UTC+3 tarihinde mltfc...@gmail.com yazdı:
Reply all
Reply to author
Forward
0 new messages