I just ssh''ed into my 1and1 account (hosting provider) and typed "ruby -version". It has Ruby 1.8.1 installed. What I would like to know is if it possible to install gems and ror if ruby is already installed? would I be able to just download gem and install it locally within my own folder on 1and1 or does it have to be installed within the ruby installation folder? -- - Ramin http://www.getintothis.com/blog _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Ramin wrote:> I just ssh''ed into my 1and1 account (hosting provider) and typed "ruby > -version". It has Ruby 1.8.1 installed. What I would like to know is > if it possible to install gems and ror if ruby is already installed? > would I be able to just download gem and install it locally within my > own folder on 1and1 or does it have to be installed within the ruby > installation folder?You don''t need gems then - just put everything you need into vendor directory of your Rails app and add corresponding paths to ADDITIONAL_PATHS in config/environment.rb. In fact, paths to all Rails components are already there, if you generated your environment.rb recently. -- Best regards, Alexey Verkhovsky Ruby Forum: http://ruby-forum.org (moderator) RForum: http://rforum.andreas-s.net (co-author) Instiki: http://instiki.org (maintainer)
I assume also if I do this on a site that has a shared rails environment, that I would use the version of the files I put in my vendor directory? It seems like this would be preferrable to depending upon a shared rails installation, since I would always know for certain that my dev machine and my site are using the same version of rails. Alexey Verkhovsky wrote:> Ramin wrote: > >> I just ssh''ed into my 1and1 account (hosting provider) and typed >> "ruby -version". It has Ruby 1.8.1 installed. What I would like to >> know is if it possible to install gems and ror if ruby is already >> installed? would I be able to just download gem and install it >> locally within my own folder on 1and1 or does it have to be installed >> within the ruby installation folder? > > > You don''t need gems then - just put everything you need into vendor > directory of your Rails app and add corresponding paths to > ADDITIONAL_PATHS in config/environment.rb. In fact, paths to all Rails > components are already there, if you generated your environment.rb > recently. >
Jeremy Huffman wrote:> I assume also if I do this on a site that has a shared rails > environment, that I would use the version of the files I put in my > vendor directory? It seems like this would be preferrable to depending > upon a shared rails installation, since I would always know for > certain that my dev machine and my site are using the same version of > rails.Makes sense to me. -- Best regards, Alexey Verkhovsky Ruby Forum: http://ruby-forum.org (moderator) RForum: http://rforum.andreas-s.net (co-author) Instiki: http://instiki.org (maintainer)
On Monday, April 4, 2005, 8:58:21 AM, Ramin wrote:> I just ssh''ed into my 1and1 account (hosting provider) and typed "ruby > -version". It has Ruby 1.8.1 installed. What I would like to know is if > it possible to install gems and ror if ruby is already installed? would > I be able to just download gem and install it locally within my own > folder on 1and1 or does it have to be installed within the ruby > installation folder?If I were you, I''d download and build your own Ruby, say in ~/software/ruby Then when you install RubyGems (and any other Ruby package) it will go underneath that directory. You only have to worry about one environment variable export PATH=~/software/ruby/usr/local/bin:$PATH and everything will work. It''s worth the duplication for the simplicity, IMO. A bit of configuration-time magic might tame that beastly path above, too. Gavin