alternative dependency mirrors #1356

Closed
pao opened this Issue Oct 10, 2012 · 10 comments

5 participants

@pao
The Julia Language member

#1354 provides a workaround for Chinese users who don't have access to the GMPLIB mirror we currently use. It would be good to find a solution to these and "the mirror we selected is down" sort of issues which don't require manually editing the Makefile. Should we use Metalink files for cURL so it can failover to a different download URL on error?

@xianyi

I also met the GMPLIB issue in China. I downloaded GMPLIB manually to walk around this error.

I am looking forward to this feature. :)

Zhang Xianyi

@StefanKarpinski
The Julia Language member

I think that maybe we should have copies of all core dependencies on GitHub.

@nolta
The Julia Language member

Hmm, i thought i had solved this. All of the dependencies are mirrored by Amazon's cloudfront.

@xianyi or @wlbksy, could you post the output of:

$ ./deps/jldownload ftp://ftp.gmplib.org/pub/gmp-5.0.5/gmp-5.0.5.tar.bz2
@xianyi

Hi @nolta ,

I cannot access ftp://ftp.gmplib.org .

Xianyi

@nolta
The Julia Language member

Right, but can you post the error message?

@xianyi

curl: (7) couldn't connect to host

@nolta
The Julia Language member

Does curl -fkLO http://d304tytmzqn1fl.cloudfront.net/gmp-5.0.5.tar.bz2 succeed?

@wlbksy
The Julia Language member

This cloudfront url works

@nolta
The Julia Language member

Are you sure $ ./deps/jldownload ftp://ftp.gmplib.org/pub/gmp-5.0.5/gmp-5.0.5.tar.bz2 doesn't work?

For example, here's what happens if i try to download the file from the wrong host:

$ md5sum gmp-5.0.5.tar.bz2
md5sum: gmp-5.0.5.tar.bz2: No such file or directory

$ ./deps/jldownload ftp://example.com/gmp-5.0.5.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:02:30 --:--:--     0
curl: (7) Failed to connect to 2001:500:88:200::10: Network is unreachable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2004k  100 2004k    0     0  2478k      0 --:--:-- --:--:-- --:--:-- 3683k

$ md5sum gmp-5.0.5.tar.bz2
041487d25e9c230b0c42b106361055fe  gmp-5.0.5.tar.bz2
@wlbksy
The Julia Language member

jldownload works.
Sorry for my impatience when it failed the first time, the time I saw it failed to connect, I terminated it immediately.

@nolta nolta closed this Oct 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment