blt04 / puppet-rvm

A puppet module for installing and using RVM (Ruby Version Manager)
Other
242 stars 280 forks source link

libyaml dependency not in CentOS repo #96

Open murphyke opened 11 years ago

murphyke commented 11 years ago

CentOS 6.3 user here. centos.pp tries to install the libyaml-devel package, but this doesn't exist. Should there be an EPEL prerequisite added for this?

jvogt commented 11 years ago

I have had success using stahnma/epel. I am a big fan of using many smaller packages to do common things and stop collisions.

Also in my specific case there was a caveat where I needed to include libyaml-devel before libyaml due to a multilib problem with yum. I also forked blt04/puppet-rvm and changed all the deps to use ensure_packages() from stdlib, then in my node definition I included the following:

ensure_resource('package','libyaml-devel', { ensure => 'present', before => Class['rvm'] })

MrReasonable commented 10 years ago

This also effects Centos5. I had to add a prerequisite to use repoforge (http://repoforge.org/) in order to install libyaml. Annoyingly this doesn't help anyway because it seems that even with libyaml installed on CentOS5, the gem command still complains about an issue with psych. Repoforge installs libyaml into /usr/lib64, which RVM doesn't seem to link correctly when it configures the ruby build, so I needed to pass some build option flags when installing ruby.