rodjek / librarian-puppet

http://librarian-puppet.com
MIT License
692 stars 209 forks source link

Can't install in ruby 1.8.7 (specifically on CentOS 6.5) #228

Closed dkowis closed 10 years ago

dkowis commented 10 years ago

I know 1.8.7 is dead and gone, but that's what ships with Centos6.5 still, and it's the ruby version that puppet is pulling in.

# gem install librarian-puppet
ERROR:  Error installing librarian-puppet:
    activesupport requires Ruby version >= 1.9.3.

So I can't actually install librarian-puppet if I wish to use it with a centos 6.5 puppetmaster, at least not without installing a different version of ruby than is generally packaged.

dkowis commented 10 years ago

I installed puppet from the puppetlabs repo:

# yum info puppet
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name        : puppet
Arch        : noarch
Version     : 3.6.2
Release     : 1.el6
Size        : 4.2 M
Repo        : installed
From repo   : puppetlabs-products
Summary     : A network tool for managing many disparate systems
URL         : http://puppetlabs.com
License     : ASL 2.0
gabrielbull commented 10 years ago

For those looking to upgrade puppet and ruby:

yum remove -y ruby facter puppet
curl -L get.rvm.io | bash -s stable
/usr/local/rvm/bin/rvm install ruby-1.9.3
/usr/local/rvm/bin/rvm pkg install zlib
/usr/local/rvm/bin/rvm reinstall all --force

Logout log in again

yum install augeas-libs augeas-devel compat-readline5 libselinux-ruby
rvm use 1.9.3 --default
gem install ruby-augeas
gem install facter
gem install puppet
gem install bundler
gem install librarian-puppet
carlossg commented 10 years ago

or stick to version 1.0.x, it's in the changelog

dkowis commented 10 years ago

Derp, sorry.

blalor commented 10 years ago

@carlossg I must be incredibly dense; I can't find that changelog entry. Can you call it out, please?

carlossg commented 10 years ago

@blalor ruby 1.9 is required in librarian 1.1 https://github.com/rodjek/librarian-puppet/blob/master/Changelog.md#110

Accesing the v3 API requires Ruby 1.9 due to the puppet_forge library used
Aethylred commented 10 years ago

When you have Ruby 1.8.7 install librarian-puppet with:

gem install librarian-puppet -v 1.0.3
blalor commented 10 years ago

Ok, I understand. I don't think it's clear that 1.x is still usable/viable/supported, and that changelog comment doesn't say that I can't use librarian-puppet on 1.8.7, only that the v3 API requires it.

kevin1024 commented 10 years ago

Ran into this today, the docs could use some clarification on this.