-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustc cannot find librustc when installed with rustup.sh #15684
Comments
Do you remember how recently? AIUI, I think this should've been fixed by #15597. |
Yesterday, but I tried reinstalling it just now and it's still a problem. |
Hm, interesting. Are you redownloading |
I'm using the one-liner from the guide: |
I solved the issue. Rustup.sh requires the The installer currently says |
Yeah. edit /etc/profile add new line |
If you're using fish shell: execute:
and add that line to |
I had the same issue on Fedora. Although it was easy to fix, it would be great for this to be solved properly. |
|
Same issue here on Fedora 21, any reason why the script shouldn't export the path by default? |
Had this issue in Fedora 21, even if I compiled rust from sources, the above fixed it. |
Had the same issue on Fedora 21, both with Nightly and 1.0.0-alpha.2. Adding that line to .zshrc solved it though (I'm using zsh instead of bash). |
Same happens on Fedora 22 alpha. /etc/profile was updated but gave bellow errors when compile a file |
Same happens on Ubuntu 14.04.2 LTS with rust 1.0.0-beta. Adding |
Same issue on Redhat 6.4 after installing as root user. Should we reopen this? It gives a bad impression if rust installation doesn't 'just' work. |
Also got this error after an upgrade. |
cc @brson |
Got the same problem on Fedora 21. I believe installing a script into The script could be something like this: _RUST_LIB_PATH=/usr/local/lib
if ! echo "$LD_LIBRARY_PATH" | grep -q -E '(^|:)'"$_RUST_LIB_PATH"'(:|$)'; then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$_RUST_LIB_PATH"
fi
unset _RUST_LIB_PATH |
I had the same problem in Fedora 21. I suppose a cleaner way to solve this is adding a file in |
Just got it on Archlinux x64 as well, adding |
I had this issue on Fedora 21, too. This comment helped me solve the issue. |
I met this on Fedora 22, and follow steps help me resolve it.
|
@Noctune This should be reopened. |
@dumindu Alright, I'll reopen it. |
Hello ! Let me know if I can help debugging this.
|
Seems that this is the same issue as: #26860 |
Fixed by rust-lang/rust-installer@c37d374 |
👍 |
Fixed on Fedora 22, Thanks @mcpherrinm |
With a number of people saying this is fixed, i'm giving a close. |
I recently installed rustc with rustup.sh on an Arch Linux x64 machine, but executing rustc after installation (no matter the parameters) results in this error:
This is even though
librustc-4e7c5e5c.so
can be found in both./usr/local/lib/librustc-4e7c5e5c.so
and./usr/local/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc-4e7c5e5c.so
.The text was updated successfully, but these errors were encountered: