Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luarocks install dpnn: git Connection refused #97

Open
sam-s opened this issue Jun 26, 2017 · 5 comments
Open

luarocks install dpnn: git Connection refused #97

sam-s opened this issue Jun 26, 2017 · 5 comments

Comments

@sam-s
Copy link

sam-s commented Jun 26, 2017

I get the following error:

$ luarocks install dpnn
Installing https://raw.githubusercontent.com/torch/rocks/master/dpnn-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/dpnn-scm-1.rockspec... switching to 'build' mode
Cloning into 'dpnn'...
fatal: unable to connect to github.com:
github.com[0: 192.30.253.113]: errno=Connection refused
github.com[1: 192.30.253.112]: errno=Connection refused


Error: Failed cloning git repository.

This is because https://raw.githubusercontent.com/torch/rocks/master/dpnn-scm-1.rockspec specifies

source = {
   url = "git://github.com/Element-Research/dpnn",
   tag = "master"
}

instead of

source = {
   url = "https://github.com/Element-Research/dpnn",
   tag = "master"
}

I know the git:// url usually works, but, alas, some networks disallow it.
Could you please use https:// instead of git://?
Thanks!

@arthitag
Copy link

luarocks/luarocks#419

@vasantharajr
Copy link

use proxy or open server , which allow you to access and down load the data from the portal

@raniaoueslati
Copy link

You have to change

rockspec.source.url

to

rockspec.source.url:gsub("^git://", "https://")

in git.lua

it works for me

@raniaoueslati
Copy link

if that does not work u can Force git to use https:// instead of git:// by typing the two following commands (without any change) :

git config --global url."https://github.com/".insteadOf [email protected]:
git config --global url."https://".insteadOf git://

@thoughtgeek
Copy link

I thought I will just leave it here in case someone has a git that misbehaves like mine. I changed the global settings but still luarocks kept trying to use git:// so these are the steps I used to manually install the rock.

  1. git clone the rock repo and cd into it
  2. Run make command specifying the rockspec path
    sudo luarocks make <name>.rockspec

This will help you skip the cloning step and you will be able to manually install the rock!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants