-
Notifications
You must be signed in to change notification settings - Fork 2.6k
"error: [48] An unknown option was passed in to libcurl" on nightly only #6155
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
Comments
@nickolay What version of curl is on your system? ( @alexcrichton it looks like curl-sys just gained the ability to statically link a few days ago 🎉 . I'm curious if that is a feasible option. |
Ah I believe the bug here is that we blindly link cargo dynamically on osx hoping it has all the features. We should probably just link cargo statically like other platforms already do. Definitely a bug for us to fix! |
Thanks for the quick reply! My version of curl is:
^^ that's from macports, the system version is:
|
This should get fixed as part of rust-lang/rust#54919 where we should force Cargo to always compile the |
Indeed, this now works fine for me in nightly. Thanks a lot! |
Hey, I'm reopening this because I'm helping out @synapticarbors at a meetup, and they're seeing this error even though they're on a newer nightly than Nov 4 ( They're on macos 10.9.5, and I'm not sure what to check to see if something broke the linked PR that changes to have cargo always compile the Or are we missing something? This is NOT more urgent than the release or the all-hands <3 |
@carols10cents We ended up needing to link libcurl dynamically on MacOS. Since 10.9 has a relatively old version of libcurl, it was breaking on an newer option that was added. I have posted a PR with a proposed fix. |
Ahh, awesome. Thank you @ehuss! ❤️ |
[BETA] Fix fetching crates on old versions of libcurl. CURLOPT_PIPEWAIT was added in 7.43 but MacOS 10.9 has 7.30. Fixes #6155 (I think this is worthy for beta since it makes cargo unusable on older versions of MacOS.)
Fix fetching crates on old versions of libcurl. CURLOPT_PIPEWAIT was added in 7.43 but MacOS 10.9 has 7.30. Fixes #6155
I'm on OS X 10.9.5 (I know) and attempting to install any package using the nightly version (cargo 1.31.0-nightly (ad6e5c0 2018-09-28)) results in:
Adding
-v
doesn't reveal the source of error.curl crates.io
with or without https works.Stable cargo 1.29.0 (524a578 2018-08-05) and cargo 1.30.0-beta (05e9b01 2018-09-21) work fine.
I first suspected network censorship was the reason and tried to configure a proxy in ~/.cargo/config, but that didn't have any effect.
I'm not an active rust user, so I'm not sure if/how I can troubleshoot this further without delving in too deep.
The text was updated successfully, but these errors were encountered: