On Mar 19, 2012, at 1:36 PM, thinkwell wrote:

> Hello everyone,
> 
> I'm trying to setup a Puppetmaster on a Centos 5.4 box, following
> James Turnbull's "Pro Puppet" book. Everything's working fine, until I
> get to the part about running Passenger, which I'll need to do.
> 
> However, to install rake, I had to upgrade ruby from the default
> 1.8.5. I tried uninstalling 1.8.5 & puppet altogether, installed 1.8.7
> successfully. So, now I'm using RVM running ruby 1.8.7. When I went to
> re-install puppet, yum insisted ruby 1.8.1> was a dependency and
> refused to installed without also installing the old system ruby.
> 
> I thought I had things configured correctly, but when I connect via a
> client, I get the following error:
> 
> ####################################################################
> Ruby (Rack) application could not be started
> 
> A source file that the application requires, is missing.
> It is possible that you didn't upload your application files
> correctly. Please check whether all your application files are
> uploaded.
> A required library may not installed. Please install all libraries
> that this application requires.
> Further information about the error may have been written to the
> application's log file. Please check it in order to analyse the
> problem.
> Error message:
> no such file to load -- puppet/application/master
> Exception class:
> LoadError
> Application root:
> /etc/puppet/rack/puppetmaster
> Backtrace:
> #     File    Line    Location
> 0     /usr/local/rvm/rubies/ruby-1.8  36      in `gem_original_require'
> 1     /usr/local/rvm/rubies/ruby-1.8  36      in `require'
> 2     config.ru       13
> 3     /usr/local/rvm/gems/ruby-1.8.7  51      in `instance_eval'
> 4     /usr/local/rvm/gems/ruby-1.8.7  51      in `initialize'
> 5     config.ru       1       in `new'
> 6     config.ru       1
> ####################################################################
> 
> 
> This is not terribly surprising, since yum installed puppet to
> /usr/lib/ruby/site_ruby/1.8/puppet/
> 
> I tried moving that directory & /usr/lib/ruby/site_ruby/1.8/puppet.rb
> to /opt/puppet/lib/ with the same error message resulting.
> 
> It's infuriating. Is it possible to run puppet with multiple versions
> of ruby installed?
----
at the point you install rvm and with it various ruby versions then all of the 
ruby gems that you install cannot be from centOS packaging but rather would 
have to be using the specific ruby version and gem version.

Thus you should do things like...

gem install puppet
gem install passenger
etc.

Craig

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to