http://rvm.beginrescueend.com/integration/netbeans/


http://rvm.beginrescueend.com/integration/passenger/



On Fri, Nov 5, 2010 at 1:24 PM, John Lynch <[email protected]> wrote:

> Glenn, RVM doesnt hide anything from you, in fact it sets up your
> environment to "just work" with the selected ruby. Below is my output
> from "rvm info".  You can see it sets the PATH properly, etc. If you
> start your IDE from the same shell, it should find ruby and your
> gemset (if it uses the proper ENV vars to do it).
>
> The RVM site also has loads of info on getting Passenger to work with
> RVM. There are some rough edges, but it works.
>
>
> Regards,
>
> John Lynch
> Rigel Group, LLC
> [email protected]
>
>
>
>
> j...@ubuntu:~/exchange$ rvm info
>
> ruby-1.8.7-p...@exchange:
>
>  system:
>    uname:       "Linux ubuntu 2.6.31-19-generic #56-Ubuntu SMP Thu
> Jan 28 01:26:53 UTC 2010 i686 GNU/Linux"
>    bash:        "/bin/bash => GNU bash, version 4.0.33(1)-release
> (i486-pc-linux-gnu)"
>    zsh:         "/usr/bin/zsh => zsh 4.3.10 (i686-pc-linux-gnu)"
>
>  rvm:
>    version:      "rvm 1.0.5 by Wayne E. Seguin
> ([email protected]) [http://rvm.beginrescueend.com/]";
>
>  ruby:
>    interpreter:  "ruby"
>    version:      "1.8.7"
>    date:         "2010-08-16"
>    platform:     "i686-linux"
>    patchlevel:   "2010-08-16 patchlevel 302"
>    full_version: "ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]"
>
>  homes:
>    gem:          "/home/john/.rvm/gems/ruby-1.8.7-p...@exchange"
>    ruby:         "/home/john/.rvm/rubies/ruby-1.8.7-p302"
>
>  binaries:
>    ruby:         "/home/john/.rvm/rubies/ruby-1.8.7-p302/bin/ruby"
>    irb:          "/home/john/.rvm/rubies/ruby-1.8.7-p302/bin/irb"
>    gem:          "/home/john/.rvm/rubies/ruby-1.8.7-p302/bin/gem"
>    rake:         "/home/john/.rvm/gems/ruby-1.8.7-p...@exchange/bin/rake"
>
>  environment:
>    PATH:
> "/home/john/.rvm/gems/ruby-1.8.7-p...@exchange
> /bin:/home/john/.rvm/gems/ruby-1.8.7-p...@global
> /bin:/home/john/.rvm/rubies/ruby-1.8.7-p302/bin:/home/john/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
>    GEM_HOME:     "/home/john/.rvm/gems/ruby-1.8.7-p...@exchange"
>    GEM_PATH:
> "/home/john/.rvm/gems/ruby-1.8.7-p...@exchange
> :/home/john/.rvm/gems/ruby-1.8.7-p...@global"
>    BUNDLE_PATH:  "/home/john/.rvm/gems/ruby-1.8.7-p...@exchange"
>    MY_RUBY_HOME: "/home/john/.rvm/rubies/ruby-1.8.7-p302"
>    IRBRC:        "/home/john/.rvm/rubies/ruby-1.8.7-p302/.irbrc"
>    RUBYOPT:      ""
>    gemset:       "exchange"
>
>
> On Fri, Nov 5, 2010 at 1:02 PM, Glenn Little <[email protected]> wrote:
> > Okay... I looked at rvm a little.  It looks like you use that to do
> > your ruby installs, and then you have relative ease of switching which
> > ruby is used.  Presumably once you've done an "rvm use 1.9.2" then
> > your following gem commands will pertain to that ruby and so on,
> > correct?
> >
> > What I haven't seen yet is a "best practice" on how to tell
> > apache/passenger which ruby/gem set to use?
> >
> > And has anyone used it with an IDE?  We use, for instance, netbeans
> > here and one of the configs for netbeans is the path to the ruby
> > executable.  It seems like that information is something rvm is
> > explicitly trying to hide from you (so you don't have to think about
> > it).  How does it work with netbeans?  Do you just have to do an
> > end-run around rvm and find whereever it installed the particular ruby
> > you want?
> >
> > Thanks...
> >
> > -glenn
> >
> > On Fri, Nov 5, 2010 at 11:41 AM, Adam Patten <[email protected]>
> wrote:
> >> +1 for RVM
> >>
> >> On Fri, Nov 5, 2010 at 11:27 AM, Dan Simpson <[email protected]>
> wrote:
> >>>
> >>> I second RVM, and I would also recommend using bundler on any ruby
> project
> >>> that has gem dependencies.  Bundler can manage the gem path for a given
> >>> project, which makes deployment easy and eliminates version issues.
> >>> --Dan
> >>>
> >>> On Fri, Nov 5, 2010 at 11:22 AM, Kevin Ball <[email protected]>
> wrote:
> >>>>
> >>>> Honestly, use RVM.  Without it, managing multiple versions of ruby is
> a
> >>>> pain, error-prone, and detail filled.  With it, it is a breeze.
> >>>> -Kevin
> >>>>
> >>>> On Fri, Nov 5, 2010 at 11:19 AM, Glenn Little <[email protected]>
> wrote:
> >>>>>
> >>>>> By using one version of ruby and one version of rails at any given
> >>>>> time, I've been able to remain blissfully ignorant regarding how the
> >>>>> various version of ruby/rubygems/rails do and do not work together.
> >>>>> But I'd like to better understand this.  I've been doing some
> reading,
> >>>>> but remain confused about a couple of things.
> >>>>>
> >>>>> Barring any package/version management meta-tools, here's what I
> think
> >>>>> I've got:
> >>>>>
> >>>>> + multiple versions of rails can co-exist, and you control which one
> >>>>> you use with RAILS_GEM_VERSION in one of the environment files
> >>>>>
> >>>>> + rails is "installed" into a particular version of ruby, since each
> >>>>> ruby install has its own set of gems
> >>>>>
> >>>>> + which ruby you use is determined by your environment or the install
> >>>>> path as usual for unix programs
> >>>>>
> >>>>> Assuming the above is correct, my confusion I think is mostly about
> >>>>> rubygems, and what happens if you have multiple ruby versions
> >>>>> installed.  I think it gets associated with a particular ruby install
> >>>>> when you run "ruby setup.rb", is that correct?  So when you run gem
> >>>>> commands, they default to acting on and with the ruby used by the
> >>>>> above command?
> >>>>>
> >>>>> If you have multiple ruby installs, how does one "point" the gem
> >>>>> command at a different ruby?  It seems like it might involve
> >>>>> customizing one's environment before running the gem command:
> >>>>>
> >>>>> + point GEM_HOME at the appropriate gems directory
> >>>>> ("..../lib/ruby/gems/X.Y")
> >>>>>
> >>>>> + point RUBYLIB at both .../lib/ruby *and* .../lib/site_ruby/X.Y
> >>>>>
> >>>>> Is that sufficient?  Also, is that necessary, or is there something
> >>>>> more straightforward I'm missing?
> >>>>>
> >>>>> Thanks...
> >>>>>
> >>>>> -glenn
> >>>>>
> >>>>> --
> >>>>> SD Ruby mailing list
> >>>>> [email protected]
> >>>>> http://groups.google.com/group/sdruby
> >>>>
> >>>> --
> >>>> SD Ruby mailing list
> >>>> [email protected]
> >>>> http://groups.google.com/group/sdruby
> >>>
> >>> --
> >>> SD Ruby mailing list
> >>> [email protected]
> >>> http://groups.google.com/group/sdruby
> >>
> >> --
> >> SD Ruby mailing list
> >> [email protected]
> >> http://groups.google.com/group/sdruby
> >
> > --
> > SD Ruby mailing list
> > [email protected]
> > http://groups.google.com/group/sdruby
>
> --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby
>



-- 
Peter Gumeson
[email protected]

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to