dl-docker icon indicating copy to clipboard operation
dl-docker copied to clipboard

Torch fails to install on Ubuntu 16.04 LTS

Open the-laughing-monkey opened this issue 8 years ago • 4 comments

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.

the-laughing-monkey avatar Jan 24 '17 00:01 the-laughing-monkey

I am having this issue also. I will need to use torch.

chrismpalmer avatar Feb 18 '17 19:02 chrismpalmer

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.

saiprashanths avatar Feb 23 '17 01:02 saiprashanths

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 \

Tassfighter avatar Feb 26 '17 15:02 Tassfighter

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 

Tassfighter avatar Feb 26 '17 18:02 Tassfighter