By me:
/usr/local/bin/ruby
/usr/bin/puppet

By puppet:
/usr/bin/ruby
/usr/bin/puppet

Huh that's weird :/ How do I make it so that ruby installs under /usr/bin
then?

Here's what I currently do:

> exec { "unload-ruby":
> command => "wget
> ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p370.tar.gz >>
> /tmp/ruby.log && tar -zxf ruby-1.8.7-p370.tar.gz >> /tmp/ruby.log",
> cwd => "/tmp",
> path => "/bin:/usr/bin",
> #require => Package["ruby"],
> onlyif => "ruby -v | grep 1.8.6",
> }
>
> exec { "config-ruby":
> command => "/tmp/ruby-1.8.7-p370/configure --enable-pthread >>
> /tmp/ruby.log",
> cwd => "/tmp/ruby-1.8.7-p370",
> path => "/bin:/usr/bin",
> require => Exec["unload-ruby"],
> onlyif => "ruby -v | grep 1.8.6",
> }
>
> exec { "make-ruby":
> command => "make >> /tmp/ruby.log && make install >> /tmp/ruby.log",
> cwd => "/tmp/ruby-1.8.7-p370",
> path => "/bin:/usr/bin",
> require => Exec["config-ruby"],
> onlyif => "ruby -v | grep 1.8.6",
> }


I'm guessing I need some option in one of these?

On Fri, Jul 6, 2012 at 9:27 AM, Peter Bukowinski <pmb...@gmail.com> wrote:

> On Jul 6, 2012, at 11:01 AM, Benjamin Lei wrote:
>
> I have upgraded my default Ruby (1.8.6) to a newer one (1.8.7). But
> whenever I run Puppet, it seems to somehow constantly run under Ruby 1.8.6.
> How do I fix this?
>
>
> What is the output of 'which ruby' and 'which puppet'?
>
> --
> Peter Bukowinski
>
>  --
> 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.
>

-- 
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