I am trying to install latest of ruby through RVM. I could not install install as it requires libyaml-devel and libffi-dev. When ever i try to install them i get error that no package found

[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

You're not running CentOS. You're running RHEL6 with no subscription. Contact your sysadmin to get a subscription added, and you'll be able to add packages. I would NOT suggest that you install CentOS packages from some random FTP server addressed by IP. You have no idea what you're getting, and you aren't checking the RPM GPG signature either.

If you meant to install CentOS, perhaps you should reinstall the system from the CentOS media.


Finally installed both libyaml-devel and libffi-devel by downloading their RPM's manually and installing them.

You can find the rpm's here

I ran the following commands, to download the rpms

curl --output libyaml-devel-0.1.3-4.el6_6.x86_64.rpm
curl --output libffi-devel-3.0.5-3.2.el6.x86_64.rpm

Then installed them using

sudo rpm -Uvh libyaml-devel-0.1.3-11.16.1.x86_64.rpm
sudo rpm -Uvh libffi-devel-3.0.5-3.2.el6.x86_64.rpm

For RHEL6 both are found in the "rhel-6-server-optional-rpms" repository, I don't not advice using unknown RPM sources like "jsbillings" mentioned.

subscription-manager repos --enable rhel-6-server-optional-rpms

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.