gpt4 book ai didi

r - 错误 : configuration failed for package ‘gifski’

转载 作者:行者123 更新时间:2023-12-04 19:32:36 26 4
gpt4 key购买 nike

我想使用 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 机器上。

最佳答案

如果你在 linux Ubuntu 中,首先安装 rust 编译器:

终端 > sudo apt-get install cargo

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

或使用 Remote 包:
Remote ::install_github("r-rust/gifski")

我希望我对你有所帮助。

关于r - 错误 : configuration failed for package ‘gifski’ ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55885616/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com