So, as I introduced myself to ActiveRecord, I asked our IT department to install activerecord and this hierarchy popped up on the system: /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/ then I was able to do this irb(main):003:0> require ''rubygems'' => true irb(main):004:0> require ''activerecord'' => true Now I realize FasterCSV, and perhaps migrations would be handy. I''m not building a web application at the moment, rather I''m building a command line api to our DB using ActiveRecord for ORM. However perhaps one day in the future I''ll be allowed a rails developed web site.... So, do I ask the IT department to install Ruby on Rails or continue asking for particular packages? I''d rather just get the whole thing. If so, will an install of "rails" override or interfere with already installed rails libraries? They will only install RedHat 5 managed packages without a huge fight. Other packages, I have to compile and install in my own user space (/home). This is on a RedHat RHEL 5 system (uname = 2.6.18-128.1.1.el5). Cheers and thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rob Redmon wrote:> So, do I ask the IT department to install Ruby on Rails or continue > asking for particular packages? I''d rather just get the whole thing. > If so, will an install of "rails" override or interfere with already > installed rails libraries? They will only install RedHat 5 managed > packages without a huge fight. Other packages, I have to compile and > install in my own user space (/home).RHEL doesn''t carry a lot of gems, and certainly not recent versions. Installing them yourself is the way to go. -- Roderick van Domburg http://www.railscluster.nl -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Good point. Ok, a dumb question. I found I can run "gem install -i install_dir -d bin_dir" Where do people usually install such things in their user spaces? /home/user/var/lib/gems What about the "-d bin_dir"? What kind of things go in there? .so libraries like mysql.so? What default location do those usually end up in? Where is a usual place to put them in my home space? What environment variables do I need to work with to make my installed gems are used instead of older system installed gems? Regards, Rob On Apr 6, 2:07 am, Roderick van Domburg <rails-mailing-l...@andreas- s.net> wrote:> Rob Redmon wrote: > > So, do I ask the IT department to install Ruby on Rails or continue > > asking for particular packages? I''d rather just get the whole thing. > > If so, will an install of "rails" override or interfere with already > > installed rails libraries? They will only install RedHat 5 managed > > packages without a huge fight. Other packages, I have to compile and > > install in my own user space (/home). > > RHEL doesn''t carry a lot of gems, and certainly not recent versions. > Installing them yourself is the way to go. > > -- > Roderick van Domburghttp://www.railscluster.nl > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
If you install the gems as a non root user it will be installed in ~/.gems gem install rails will install it in ~/.gems On Apr 7, 3:44 pm, RobR <rob.webina...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Good point. Ok, a dumb question. > > I found I can run "gem install -i install_dir -d bin_dir" > > Where do people usually install such things in their user spaces? > /home/user/var/lib/gems > > What about the "-d bin_dir"? What kind of things go in there? .so > libraries like mysql.so? What default location do those usually end > up in? Where is a usual place to put them in my home space? > > What environment variables do I need to work with to make my installed > gems are used instead of older system installed gems? > > Regards, > > Rob > > On Apr 6, 2:07 am, Roderick van Domburg <rails-mailing-l...@andreas- > > > > s.net> wrote: > > Rob Redmon wrote: > > > So, do I ask the IT department to install Ruby on Rails or continue > > > asking for particular packages? I''d rather just get the whole thing. > > > If so, will an install of "rails" override or interfere with already > > > installed rails libraries? They will only install RedHat 5 managed > > > packages without a huge fight. Other packages, I have to compile and > > > install in my own user space (/home). > > > RHEL doesn''t carry a lot of gems, and certainly not recent versions. > > Installing them yourself is the way to go. > > > -- > > Roderick van Domburghttp://www.railscluster.nl > > -- > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I tried that and this is what happened. The system Ruby is 1.8.7. [~/] gem install rails ERROR: While executing gem ... (Errno::EACCES) Permission denied - /var/lib/gems/1.8/cache/rake-0.8.4.gem On Apr 7, 5:40 pm, Freddy Andersen <fre...-RCI/mp9mI1I6GGFevw1D/A@public.gmane.org> wrote:> If you install the gems as a non root user it will be installed in > ~/.gems > > gem install rails > > will install it in ~/.gems > > On Apr 7, 3:44 pm,RobR<rob.webina...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Good point. Ok, a dumb question. > > > I found I can run "gem install -i install_dir -d bin_dir" > > > Where do people usually install such things in their user spaces? > > /home/user/var/lib/gems > > > What about the "-d bin_dir"? What kind of things go in there? .so > > libraries like mysql.so? What default location do those usually end > > up in? Where is a usual place to put them in my home space? > > > What environment variables do I need to work with to make my installed > > gems are used instead of older system installed gems? > > > Regards, > > > Rob > > > On Apr 6, 2:07 am, Roderick van Domburg <rails-mailing-l...@andreas- > > > s.net> wrote: > > > Rob Redmon wrote: > > > > So, do I ask the IT department to install Ruby on Rails or continue > > > > asking for particular packages? I''d rather just get the whole thing. > > > > If so, will an install of "rails" override or interfere with already > > > > installed rails libraries? They will only install RedHat 5 managed > > > > packages without a huge fight. Other packages, I have to compile and > > > > install in my own user space (/home). > > > > RHEL doesn''t carry a lot of gems, and certainly not recent versions. > > > Installing them yourself is the way to go. > > > > -- > > > Roderick van Domburghttp://www.railscluster.nl > > > -- > > > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Solved. I just built up my own Ruby and RubyGems environment and all is well. Thanks for the tips. R -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---