[chef] Re: Re: where did ruby go after using the rbenv cookbook?


Chronological Thread 
  • From: David Montgomery < >
  • To:
  • Subject: [chef] Re: Re: where did ruby go after using the rbenv cookbook?
  • Date: Tue, 23 Dec 2014 13:14:41 +0700

wow..that did it.  Yay..it works.  Thanks

On Tue, Dec 23, 2014 at 1:06 PM, AJ Christensen < " target="_blank"> > wrote:
$ which ruby
$ source /etc/profile.d/rbenv.sh
$ which ruby

rbenv installs system-wide. It might not be being sourced by your user
shell, or profile. the cookbook may actually manage particular users
specifically, so maybe that is something to check.

what are the contents of /etc/profile.d/rbenv.sh? in your interactive
shell, do you source the contents of profile.d?

gist me the output of find /opt/rbenv. I have a feeling "that is where
ruby went"

cheers,

--aj

On Tue, Dec 23, 2014 at 6:53 PM, David Montgomery
< "> > wrote:
> Hi,
>
> I am kinda new to ruby and def new to hte rbenv cookbook from the
> supermarket and wow...just wondering how it works...I mean..where did ruby
> go??  I am on ubuntu 14.04.
>
> Below is my recipe and I added depends 'rbenv' in my cookbook for installing
> ruby.
>
> include_recipe "rbenv::default"
> include_recipe "rbenv::ruby_build"
> include_recipe "rbenv::rbenv_vars"
> rbenv_ruby "2.1.5"
>
> rbenv_gem "rails" do
>   ruby_version "2.1.5"
> end
>
> One would think I would have ruby my server but I dont so I think
>
> I type rbenv into the shell I get the below.
>
> rbenv
> The program 'rbenv' is currently not installed. You can install it by
> typing:
> apt-get install rbenv
>
> If this cookbook does not work is there another one that does work?  Is
> there missing documentation for the cookbook?
>
> https://supermarket.chef.io/cookbooks/rbenv/versions/1.4.1
>
> Below is lastest chef run
>
>
>
> * group[rbenv] action create (up to date)
>   * user[rbenv] action create (up to date)
>   * directory[/opt/rbenv] action create (up to date)
>   * ruby_block[set HOME for rbenv at 1419313042] action run
>     - execute the ruby block set HOME for rbenv at 1419313042
>   * git[/opt/rbenv] action sync (up to date)
>   * ruby_block[unset HOME for rbenv 1419313042] action run
>     - execute the ruby block unset HOME for rbenv 1419313042
>   * template[/etc/profile.d/rbenv.sh] action create (up to date)
>   * ruby_block[initialize_rbenv] action nothing (skipped due to action
> :nothing)
>   * directory[/opt/rbenv/shims] action create (up to date)
>   * directory[/opt/rbenv/versions] action create (up to date)
>   * directory[/opt/rbenv/plugins] action create (up to date)
> Recipe: rbenv::ruby_build
>   * ruby_block[set HOME for rbenv at 1419313042] action run
>     - execute the ruby block set HOME for rbenv at 1419313042
>   * git[/opt/rbenv/plugins/ruby_build] action sync (up to date)
>   * ruby_block[unset HOME for rbenv 1419313042] action run
>     - execute the ruby block unset HOME for rbenv 1419313042
> Recipe: rbenv::rbenv_vars
>   * ruby_block[set HOME for rbenv at 1419313042] action run
>     - execute the ruby block set HOME for rbenv at 1419313042
>   * git[/opt/rbenv/plugins/rbenv-vars] action sync (up to date)
>   * ruby_block[unset HOME for rbenv 1419313042] action run
>     - execute the ruby block unset HOME for rbenv 1419313042
> Recipe: ruby::default
>   * rbenv_ruby[2.1.5] action install (up to date)
> Recipe: ruby::rails
>   * rbenv_gem[rails] action install
>     - install version 4.2.0 of package rails
>
>




Archive powered by MHonArc 2.6.16.

§