-
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: error while loading shared libraries: librustc_driver--4e7c5e5c.so #24677
Comments
I have the same problem running latest version of arch linux, running |
Add This doesn't happen just on Arch. Most non-Debian systems don't trust anything outside |
Ah, I see. You're correct @zaeleus. For anyone else who faces this problem: |
/cc @brson , in theory, we made rustup.sh run |
Thanks @skeuomorf, what you suggested worked. It's worth nothing that when you say to add @steveklabnik, should I mark this issue as closed now? Or is this going to be used to track the issue in the |
just run: |
Same problem if you install rust into specifi dir (./configure --prefix=$INSTALL_DIR && make && make install) |
Reporting that the latest version of the installer fails to add the path properly on CentOS 7. |
Ha ha ha! I just had this problem again on a different distro (fedora instead of ubuntu, or was it arch?) and when I searched for the issue again, my own bug report came up! I just wanted to point out that this issue exists for Fedora too. |
If editing anything in /etc/ is not really an option (or someone prefers not to), using a script to launch cargo (and I assume this works for other executables in bin/) works pretty well:
Maybe rustup could emit minimal shims/wrappers like these, kind of how other version managers do it. (rvm, pyenv, nvm) |
Seems that this is the same issue as: #26860 |
@cyplo Sorry, I can't check to see if it works in Arch. As much fun - and by that I mean a headache - as it was setting up Arch, I'm now running Ubuntu. Rust seems to be working fine on 15.10 though! |
No worries, thanks a lot for checking :) Running ok on my ubuntu machine as well, fedora one having problems though. thanks again ! |
Fedora still having problem with it. |
hi All - thanks for the posting. while i building the latest firefox, i am getting the same error. i did everything as suggested. [root@USTNCOL-BHU01-RHELDMZHUB01 bin]# /root/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --version --verbose |
It looks like Rust build system is immature.
Yes, we can fix this problem using LD_LIBRARY_PATH-related workaround. UPD. It is possible to resolve mentioned problem if to set (in
|
When I run a cargo build command, I get the following errors:
Process didn't exit successfully:
rustc -vV
(exit code: 127)--- stderr
rustc: error while loading shared libraries: librustc_driver-4e7c5e5c.so: cannot open shared object file: No such file or directory
My computer is running the latest version of arch linux, and I installed rust using the curl command: curl -sf -L https://static.rust-lang.org/rustup.sh | sudo sh
I don't think the issue is with my code, but you can look in my repositories for my simple hello_world program here: https://github.com/a-jamesregan/LearnRust
The text was updated successfully, but these errors were encountered: