Installation error in CentOS7

I execute the installation script
$ curl -sf -L https://static.rust-lang.org/rustup.sh | sh

The log:

rustup: gpg available. signatures will be verified
rustup: downloading manifest for 'stable'
rustup: downloading toolchain for 'stable'
######################################################################## 100.0%
gpg: Signature made Sat 20 Jun 2015 03:36:00 PM CST using RSA key ID 7B3B09DC
gpg: Good signature from "Rust Language (Tag and Release Signing Key) <rust-key@rust-lang.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 108F 6620 5EAE B0AA A8DD  5E1C 85AB 96E6 FA1B E5FE
     Subkey fingerprint: C134 66B7 E169 A085 1886  3216 5CB4 A934 7B3B 09DC
rustup: extracting installer
rustup: installing toolchain for 'stable'
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'cargo'
install: installing component 'rust-docs'

    Rust is ready to roll.

I thought the installation is success, but when I execute rustc, I got this error:

rustc: error while loading shared libraries: librustc_driver-7d23ff90.so: cannot open shared object file: No such file or directory

Why?

Does the librustc_driver-7d23ff90.so exist in /usr/local/lib? If not, the install was not successful.

Is /usr/local/lib in the automatically searched library paths? If not, you can add a file containing this path to /etc/ld.so.conf.d and run ldconfig.

1 Like

https://github.com/rust-lang/rust-installer/issues/30

Yeah, that would do it.

Yeah, that is it. I think rust-installer needs some hacks to deal with this somehow.

1 Like

Same problem with rhel-7.1 using the "curl | sudo sh" install method.