LoginSignup
6
3

More than 5 years have passed since last update.

Rustをインストールしたらlibrustc_driverが無いと言われた時

Last updated at Posted at 2015-05-22

Rustをインストールしようとしてうまく行かなかったので共有です。
Vagrant上で動いてるCentOS6.4です。

$ cat /etc/redhat-release
CentOS release 6.4 (Final)

↓こんな感じでインストールできるよ〜って書いてありますが

$ curl -sSf https://static.rust-lang.org/rustup.sh | sudo sh

終わって確認すると

$ rustc --version
rustc: error while loading shared libraries: librustc_driver-4e7c5e5c.so: cannot open shared object file: No such file or directory

こう言われたので.bashrcに

~/.bashrc
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib

を一行追加してやったら

$ rustc --version
rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)

できました!

6
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
3