错误:“ gifski”软件包的配置失败

时间:2019-04-27 23:07:30

标签: r amazon-ec2 rust centos

我想使用gganimate软件包,但是它需要gifski才能失败。

* installing *source* package ‘gifski’ ...
** package ‘gifski’ successfully unpacked and MD5 sums checked
------------------ 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>

---------------------------------------------------------------

ERROR: configuration failed for package ‘gifski’
* removing ‘/home/User/R/x86_64-pc-linux-gnu-library/3.5/gifski’
Warning in install.packages :
  installation of package ‘gifski’ had non-zero exit status

它说我需要安装Rust,但是我已经完成了。我运行了这些命令,然后重新启动。

curl https://sh.rustup.rs -sSf | sh
export PATH="$HOME/.cargo/bin:$PATH"

我在EC2上托管的CentOS Linux计算机上。

1 个答案:

答案 0 :(得分:0)

如果您使用的是Linux Ubuntu,请先安装rust编译器:

终端> sudo apt-get install cargo

然后,从github安装gifski: devtool :: install_github(“ r-rust / gifski”)

或使用remotes软件包: remotes :: install_github(“ r-rust / gifski”)

希望我能帮到你。