JuliaIO / CodecZlib.jl

zlib codecs for TranscodingStreams.jl.
Other
51 stars 24 forks source link

Error while building #22

Closed andres-ladino-ifsttar closed 6 years ago

andres-ladino-ifsttar commented 6 years ago

Hi, I'm trying to build the package Pkg.build("CodecZlib") but, I get the following error.

julia> Pkg.build("CodecZlib")
INFO: Building CodecZlib
Info: Downloading https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.0/Zlib.x86_64-apple-darwin14.tar.gz to /Users/ladino/.julia/v0.6/CodecZlib/deps/usr/downloads/Zlib.x86_64-apple-darwin14.tar.gz...
[14:50:57] curl: (48) An unknown option was passed in to libcurl
=====================================================================[ ERROR: CodecZlib ]======================================================================

LoadError: Could not download https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.0/Zlib.x86_64-apple-darwin14.tar.gz to /Users/ladino/.julia/v0.6/CodecZlib/deps/usr/downloads/Zlib.x86_64-apple-darwin14.tar.gz
while loading /Users/ladino/.julia/v0.6/CodecZlib/deps/build.jl, in expression starting on line 92

===============================================================================================================================================================

=======================================================================[ BUILD ERRORS ]========================================================================

WARNING: CodecZlib had build errors.

 - packages with build errors remain installed in /Users/ladino/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("CodecZlib")`
 - build a single package by running its `deps/build.jl` script

===============================================================================================================================================================

julia>

Any suggestions on how to proceed?

Thanks in advance,

bicycle1885 commented 6 years ago

I'm not sure, but your curl command seems to be broken. Did you modify your curl?

andres-ladino-ifsttar commented 6 years ago

Actually I am using the anaconda version

curl -V `curl 7.60.0 (x86_64-apple-darwin13.4.0) libcurl/7.60.0 OpenSSL/1.0.2o zlib/1.2.11 Release-Date: 2018-05-16 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP UnixSockets HTTPS-proxy

which curl /Users/ladino/anaconda3/bin/curl

I tried the following trace to check if curl was working...

curl -I https://github.com/bicycle1885/ZlibBuilder/releases/download/v1.0.0/Zlib.x86_64-apple-darwin14.tar.gz HTTP/1.1 302 Found Server: GitHub.com Date: Fri, 06 Jul 2018 08:36:51 GMT Content-Type: text/html; charset=utf-8 Status: 302 Found Cache-Control: no-cache Vary: X-PJAX Location: https://github-production-release-asset-2e65be.s3.amazonaws.com/126450947/e2aebe7a-2edb-11e8-98b7-244b8b8a3f3f?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20180706%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20180706T083651Z&X-Amz-Expires=300&X-Amz-Signature=bb3375821d8560a894f40d0b2e210cde960d3d66215ef54da9c2b3fb62505f8b&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3DZlib.x86_64-apple-darwin14.tar.gz&response-content-type=application%2Foctet-stream Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Tue, 06 Jul 2038 08:36:51 -0000; secure; HttpOnly Set-Cookie: _gh_sess=MXhLSXppajVzWGo2SENrbDBOQ3RTSW5qcE1pMU1tUWhaUUlVODdWR283RW9MazUvbHh6S3hoeXlNdE5nTWcwek51ZFcrdTNPUnZQbU5aQzBYWGt2T2oxUEZBYlRIdFVFMXc5dzlOc0VDSDdBck40c0pQMG4vcjA5QXdDTTYyeHVQZTNRKzNwQUVRbXVjMk03RE1pOVpBRTFhMHkzUGRkUUtIczBMYVY1WEpDTEUyaHhJU2hhbUdVL2FQemkwZG1QLS1NTVZBdm1RTU04eXlvSEFWNnE4S21BPT0%3D--707ead1b6e4ece4ab2ee37b0f05419b40459116f; path=/; secure; HttpOnly X-Request-Id: 38f00496-b0d4-41d6-857d-b56c670491df X-Runtime: 0.076818 Strict-Transport-Security: max-age=31536000; includeSubdomains; preload X-Frame-Options: deny X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block Expect-CT: max-age=2592000, report-uri="https://api.github.com/_private/browser/errors" Content-Security-Policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com X-Runtime-rack: 0.087082 X-GitHub-Request-Id: 134B:1A3E:5F8B281:AD7272C:5B3F2A22

Here I'm not really an expert, so I don't know if I should modify the curl to a specific version.

andres-ladino-ifsttar commented 6 years ago

I found this curl error when installing a package apparently related, except that in this case the version is up to date.

bicycle1885 commented 6 years ago

Maybe Julia invokes a different curl. Running run(`which curl`) or run(`curl --version`) may be helpful to diagnose the version you use.

trecakov commented 6 years ago

Any solution to this problem for linux? The fixes that I found are for Windows.

bicycle1885 commented 6 years ago

See https://github.com/JuliaPackaging/BinaryProvider.jl/issues/65. I think this issue has nothing to do with this package, so there is nothing I can do here.