torch / torch7

http://torch.ch
Other
8.97k stars 2.38k forks source link

Installation Problem: Missing dependency #1045

Closed omair-kg closed 7 years ago

omair-kg commented 7 years ago

I'm getting the following message while trying to install torch

Scanning dependencies of target sys
[100%] Building C object CMakeFiles/sys.dir/sys.c.o
Linking C shared module libsys.so
[100%] Built target sys
cd build && make install
[100%] Built target sys
Install the project...
-- Install configuration: "Release"
-- Installing: /home/torch/install/lib/luarocks/rocks/sys/1.1-0/lib/libsys.so
-- Set runtime path of "/home/torch/install/lib/luarocks/rocks/sys/1.1-0/lib/libsys.so" to "$ORIGIN/../lib:/home/torch/install/lib"
-- Installing: /home/torch/install/lib/luarocks/rocks/sys/1.1-0/lua/sys/init.lua
-- Installing: /home/torch/install/lib/luarocks/rocks/sys/1.1-0/lua/sys/colors.lua
-- Installing: /home/torch/install/lib/luarocks/rocks/sys/1.1-0/lua/sys/fpath.lua
Updating manifest for /home/torch/install/lib/luarocks/rocks
sys 1.1-0 is now built and installed in /home/torch/install/ (license: BSD)

Updating manifest for /home/torch/install/lib/luarocks/rocks
xlua 1.0-0 is now built and installed in /home/torch/install/ (license: BSD)

Missing dependencies for nn:
moses >= 1.0

Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/torch/rocks/master - Failed downloading https://raw.githubusercontent.com/torch/rocks/master/manifest - /home/goh4hi/.cache/luarocks/https___raw.githubusercontent.com_torch_rocks_master/manifest
Warning: Failed searching manifest: Failed fetching manifest for https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master - Failed downloading https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/manifest - /home/.cache/luarocks/https___raw.githubusercontent.com_rocks-moonscript-org_moonrocks-mirror_master/manifest

Error: Could not satisfy dependency: moses >= 1.0

I tried following the advice given here but still get the same message (missing dependency for nn).

Any idea what i should try next? Thanks in anticipation.

hemanthkatari97 commented 7 years ago

I am facing the same issue. I am behind a proxy and figured out the problem is due to proxy. I tried above commands and installed it. On completion gives same problem again. can anyone help in configuring proxy settings of github so it fetches raw.githubusercontent ?

Naruto-Sasuke commented 7 years ago

@hemanthkatari97 Have u tried the specific way of install moses? luarocks install --tree /home/xxx/torch/install rockspec/moses-1.6.1-1.rockspec

hemanthkatari97 commented 7 years ago

Getting the following error: luarocks install --tree=/home/edx/torch/install rockspec/moses-1.6.1-1.rockspec Using rockspec/moses-1.6.1-1.rockspec... switching to 'build' mode

Error: Error fetching file: Failed downloading https://github.com/Yonaba/Moses/archive/Moses-1.6.1-1.tar.gz

Thanks for reply.

Naruto-Sasuke commented 7 years ago

@hemanthkatari97 I don't know why you just download it from a browser? And extract it, get into the folder, and install it luarocks make --tree /home/xxx/torch/install rockspec/moses-1.6.1-1.rockspec, I just made a typo, it should be make instead of install

karsgov commented 7 years ago

Since I was installing torch on my machine for first time, I had no chance to download and install moses via luarocks make rockspec/*. The following method worked for me.

  1. Comment out lines having nn, nngraph and cunn in install.sh. Doing so does not install the aforementioned packages.
  2. Running ./install.sh should install torch without any errors
  3. Now luarocks will be available. Download moses and install it via luarocks make rockspec/*.
  4. Go back to install.sh, uncomment the lines and run ./install.sh. All nn packages should be installed now without any errors.
Marauderer97 commented 7 years ago

I have tried all the solutions mentioned above, each time I get a message saying moses 1.6.1-1 is now built and installed in /home/torch (license: MIT <http://www.opensource.org/licenses/mit-license.php>) But on running ./install.sh in /home/torch I get the exact same error. What is going wrong?

hemanthkatari97 commented 7 years ago

@Marauderer97 It is due to proxy. Are you working behind a proxy?

kamranthomas commented 6 years ago

sudo luarocks make *.rockspec try that

hhwxxx commented 6 years ago

@hemanthkatari97 hello, I am facing the same issue. How did you configure the proxy settings to slove this problem? Thanks!

hemanthkatari97 commented 6 years ago

Ya you can check the detailed configuration proxy settings required in installation steps in the link provided

https://github.com/hemanthkatari97/EproctorX/blob/master/README.md

On 28-Oct-2017 6:30 PM, "hhw" notifications@github.com wrote:

@hemanthkatari97 https://github.com/hemanthkatari97 hello, I am facing the same issue. How did you configure the proxy settings to slove this problem? Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/torch/torch7/issues/1045#issuecomment-340189259, or mute the thread https://github.com/notifications/unsubscribe-auth/AQXLLfdgVj_EbL1FE23s4a4WEYaRTdC9ks5swyWJgaJpZM4N0IBi .

HarshGrandeur commented 6 years ago

I was facing the same issue. I followed the steps mentioned by shriyashchougule. But was still getting the dependency issue with moses. Then I ran the ./install.sh with sudo and could complete the installation.

yonihei commented 6 years ago

by using karthik-govindappa's suggestions i managed to install ./install.sh after removing grahp, cunn, nn.

then by using: luarocks make --tree /home/xxx/torch/install moses-package

finally ./install.sh without comments ran well.

do NOT use sudo anywhere here. it only caused me troubles.