Search code examples
shellcurlpermissionstorch

Torch install without curl


I need to install Torch on server,

but its installation guide requires the following line as the first step:

curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash

curl is not installed on my server, and I'm not the root, so I don't have permission to install it.

I downloaded the script file in the URL, and chmod-ed it,

but can't execute it, again due to permission.

Is there a way to install torch without usage of curl?

bash install-deps 

resulted in

xxxx is not in the sudoers file. This incident will be reported.

Solution

  • Torch dependencies needs to be installed - if you install it via this script, that'll require root privileges.

    If you saved the script, you can start it (without chmod) with

    bash install-deps