我正在尝试安装gifski
的依赖项gganimate
。
我收到此错误。
------------------ RUST COMPILER NOT FOUND --------------------
Cargo was not found on the PATH. Please install cargo / rustc:
- yum install cargo (Fedora/CentOS)
- apt-get install cargo (Debian/Ubuntu)
- brew install rustc (MacOS)
Alternatively install Rust from: <https://www.rust-lang.org>
---------------------------------------------------------------
yum install cargo
命令不起作用,所以我用
curl https://sh.rustup.rs -sSf | sh
安装提示说我需要将$HOME/.cargo/bin
添加到我的路径环境变量中,所以我尝试了这一点。
$ source $HOME/.cargo/env
$ export PATH=$PATH:$HOME/.cargo/bin
$ export PATH=$PATH:/.cargo/bin
$ export PATH=$HOME/.cargo/bin
我重置了我的机器,然后继续收到相同的错误。
> sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Amazon Linux AMI 2018.03