Centos
CentOS 無法安裝 libyaml-devel libffi-devel
我正在嘗試通過 RVM 安裝最新的 ruby。我無法安裝安裝,因為它需要 libyaml-devel 和 libffi-dev。每當我嘗試安裝它們時,我都會收到找不到包的錯誤
[root@dev workspace]# rvm requirements Checking requirements for redhat. Enabling optional repository Username: ^C User interrupted process. Installing requirements for redhat. Installing required packages: libyaml-devel, libffi-devel.. Error running 'requirements_centos_libs_install libyaml-devel libffi-devel', showing last 15 lines of /usr/local/rvm/log/1467891146/package_install_libyaml-devel_libffi-devel.log + __rvm_try_sudo yum install -y libyaml-devel libffi-devel + typeset -a command_to_run + typeset sudo_path sbin_path missing_paths + command_to_run=("$@") + (( UID == 0 )) + yum install -y libyaml-devel libffi-devel Failed to set locale, defaulting to C Loaded plugins: product-id, rhnplugin, security, subscription-manager This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions. Setting up Install Process No package libyaml-devel available. No package libffi-devel available. Error: Nothing to do + return 1 + return 1
libyaml-devel
並由libffi-devel
CentOS 8 的 PowerTools-repository 提供,預設情況下是禁用的。所以一個簡單的
yum --enablerepo=powertools install libyaml-devel libffi-devel
應該做的伎倆。(也許發布其他答案時並非如此。)
你沒有執行 CentOS。您正在執行沒有訂閱的 RHEL6。聯繫您的系統管理員以添加訂閱,您將能夠添加軟體包。我不建議您從某個由 IP 定址的隨機 FTP 伺服器安裝 CentOS 軟體包。你不知道你得到了什麼,你也沒有檢查 RPM GPG 簽名。
如果您打算安裝 CentOS,也許您應該從CentOS 媒體重新安裝系統。