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

More robust curl downloads #2

Closed
ViralBShah opened this issue Feb 11, 2013 · 2 comments
Closed

More robust curl downloads #2

ViralBShah opened this issue Feb 11, 2013 · 2 comments

Comments

@ViralBShah
Copy link
Member

Can we pass some extra parameters to curl so that it can retry downloads after disconnects?

MESSAGE: Changing Directory to /Users/viral/.julia/Cairo/deps/builds/fontconfig-2.10.2
MESSAGE: Changing Directory to /Users/viral/.julia/Cairo/deps/builds/fontconfig-2.10.2
MESSAGE: Changing Directory to /Users/viral/.julia/Cairo/deps/builds/fontconfig-2.10.2
MESSAGE: Attempting to Create directory /Users/viral/.julia/Cairo/deps/downloads
MESSAGE: Directory /Users/viral/.julia/Cairo/deps/downloads already created
MESSAGE: Downloading file http://www.cairographics.org/releases/cairo-1.12.8.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Bus error: 10
 87 40.1M   87 35.2M    0     0  61392      0  0:11:25  0:10:02  0:01:23 71599
curl: (18) transfer closed with 5118218 bytes remaining to read

In case of incomplete downloads, BinDeps should remove the partial download. Running the buildscript gives the following error:

julia> Pkg.runbuildscript("Cairo")
MESSAGE: Running build script for package Cairo
/Users/viral/.julia/Cairo/deps
MESSAGE: There are multiple options available for installing this dependency:
- skip: Skip Installation - Binaries must be installed manually
- brew: Install depdendency using brew
- source: Install depdendency from source
Plese select desired method: source
MESSAGE: Changing Directory to /Users/viral/.julia/Cairo/deps
<cut>

MESSAGE: Attempting to Create directory /Users/viral/.julia/Cairo/deps/downloads
MESSAGE: Directory /Users/viral/.julia/Cairo/deps/downloads already created
MESSAGE: Attempting to Create directory /Users/viral/.julia/Cairo/deps/downloads
MESSAGE: Directory /Users/viral/.julia/Cairo/deps/downloads already created
MESSAGE: Downloading file http://www.cairographics.org/releases/cairo-1.12.8.tar.xz
MESSAGE: Done downloading file http://www.cairographics.org/releases/cairo-1.12.8.tar.xz
MESSAGE: Attempting to Create directory /Users/viral/.julia/Cairo/deps/src
MESSAGE: Directory /Users/viral/.julia/Cairo/deps/src already created
MESSAGE: Attempting to Create directory /Users/viral/.julia/Cairo/deps/src/cairo-1.12.8
ERROR: in spawn: new not defined
 in spawn at process.jl:240
 in run at process.jl:377
 in run at /Users/viral/.julia/BinDeps/src/BinDeps.jl:359
 in run at /Users/viral/.julia/BinDeps/src/BinDeps.jl:376
 in run at /Users/viral/.julia/BinDeps/src/BinDeps.jl:376
 in run at /Users/viral/.julia/BinDeps/src/BinDeps.jl:376
 in run at /Users/viral/.julia/BinDeps/src/BinDeps.jl:147
 in run at /Users/viral/.julia/BinDeps/src/BinDeps.jl:376
 in include_from_node1 at loading.jl:76
 in anonymous at no file:206
 in cd at file.jl:26
 in runbuildscript at pkg.jl:203
at /Users/viral/.julia/Cairo/deps/build.jl:79

julia> 
@mlubin
Copy link
Contributor

mlubin commented Aug 12, 2013

This would be addressed by properly implementing #21.

@Keno
Copy link
Contributor

Keno commented Aug 4, 2014

Closing in favor of #21.

@Keno Keno closed this as completed Aug 4, 2014
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

3 participants