-
Notifications
You must be signed in to change notification settings - Fork 894
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
rustup update fails and erroneously mention no https support in curl #1051
Comments
Running this script indicates that rustup-init is broken for more archs:
|
Is there a workaround for this? |
@wagenet I'm afraid I'm mobile at the moment so cant check this easily, but if you can spare a couple of minutes, would you mind trying with the hyper backend? To activate Hyper, set the I'll try to look into this issue tomorrow if i can get myself up and running on one of the affected platforms. I wonder whether this could have anything to do with the way the build now caches the artefacts for OpenSSL. OpenSSL gets statically linked - at least on Linux platform - so if i understand correctly, the capabilities of local libcurl don't make a difference. |
@jelford Great! Please, consider adding a regression test (take a look at my PR).
This is good question. |
I believe this problem is due to a The original errors /home/tatsuya% rustup update
info: syncing channel updates for 'stable-x86_64-unknown-freebsd'
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to '/home/tatsuya/.rustup/tmp/7xy_k91h29lurf1x_file'
...
info: caused by: error during download
info: caused by: [1] Unsupported protocol (Protocol "https" not supported or disabled in libcurl) Built rustup-init by myself /home/tatsuya/% git clone git@github.com:rust-lang-nursery/rustup.rs.git
/home/tatsuya/% cd rustup.rs
/home/tatsuya/rustup.rs% cargo build --release and I got a working /home/tatsuya/rustup.rs% ./target/release/rustup-init
Welcome to Rust!
...
Current installation options:
default host triple: x86_64-unknown-freebsd
default toolchain: stable
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
info: updating existing rustup installation
Rust is installed now. Great!
...
/home/tatsuya/rustup.rs% cd
/home/tatsuya% rustup update
info: syncing channel updates for 'stable-x86_64-unknown-freebsd'
info: syncing channel updates for 'beta-x86_64-unknown-freebsd'
info: syncing channel updates for 'nightly-x86_64-unknown-freebsd'
info: downloading component 'rustc'
... |
This causes linking failures on most platforms because the pkg-configs are still pointing to the location specified in prefix (as they should). This should address rust-lang#1051 but I'll add a regression test in the next commit
hey @korhadris How'd ya do it? Rust newb here :P |
@Lorenzoi you should be able to just set RUSTUP_USE_HYPER as an environment variable:
...but I haven't been able to verify, so @korhadris might have gone through an extra step. @tatsuya6502's workaround of downloading the sources and building yourself should work too if you already have a working rust setup, just note that if you want to run it as an "update" rather than init, it will help to give the executable a different name:
The difference in paths to rustup-init between here and @tatsuya6502's answer is because of the --release flag he passed to |
ah, thanks! |
Fix OpenSSL linkage by using the final install-directory in the build This PR addresses #1051 by avoiding moving OpenSSL's install-target directory after it's been configured. It also encorporates the regression test suggested by @malbarbo on #1054. It still makes sense to move directories about to avoid getting a partially-built copy of openssl, and I think it makes sense to cache the finished product rather than the src/build directory. I haven't been able to test the output on one of the affected platforms (although the check on symbols passes) as I don't know a good way to get artefacts out of the travis build.
@tatsuya6502 , thank you. |
Hi, I tried again today and the whole install fails:
|
so far I did:
and it seems to be working. Currently compiling but I will try your option later @pgerber |
Also broken on big-endian 64-bit PowerPC on Linux. (Not checked by the script.) |
This causes linking failures on most platforms because the pkg-configs are still pointing to the location specified in prefix (as they should). This should address rust-lang#1051 but I'll add a regression test in the next commit
@pgerber Yeah-- piping to I added
Checking for symbols per @malbarbo commeng/gist above:
|
@dpruessner You also need to |
After setting
I imagine I need to point hyper somehow at my system certificates? I have a |
@Diggsey This can be closed now. |
@malbarbo thanks! |
I know this is an old issue, but running the script from macOS Catalina, I get:
Same if I |
@JonasVautherin If you have an issue like that, please open a fresh report, include the content of that script and any debugging you have, because I do not have access to macos systems. |
The text was updated successfully, but these errors were encountered: