dl-docker
dl-docker copied to clipboard
Torch fails to install on Ubuntu 16.04 LTS
When building the GPU image, I get the following error:
/bin/sh: 1: sudo: not found The command '/bin/sh -c git clone https://github.com/torch/distro.git /root/torch --recursive && sudo cd /root/torch && bash install-deps && ./install.sh' returned a non-zero code: 127
I've checked this against the Torch documentation ezinstall and it appears that the commands are correct but it does not work: http://torch.ch/docs/getting-started.html#_
I commented out all Torch and Lua commands and the build finishes. Since I don't need Torch, this is no big deal, but if someone needs Torch it will prove troublesome.
I am having this issue also. I will need to use torch.
Sorry guys, I have been super busy with my own startup and haven't had the time to maintain dl-docker. If someone wants to take a stab at this, that'd be awesome!
I'll try to get to this later this week or the next, but, unfortunately, can't make any promises.
Try to install sudo
Edit file Dockerfile.gpu at line 20 and add sudo
'# Install some dependencies RUN apt-get update && apt-get install -y \ sudo \ bc \
I had problems with opencv, too.
Here is my fix:
Goto Install OpenCV line 223+ and update the cmake.
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_CUDA=ON -D WITH_V4L=ON -D BUILD_NEW_PYTHON_SUPPORT=ON \
-D WITH_QT=ON -D WITH_OPENGL=ON -D FORCE_VTK=ON -D WITH_TBB=ON -D