fred, wget -chttp://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz i am not getting with the above path i removed -c n downloaded.. but wen i run ruby setup.rb inside rubygem i get the following error ./lib/rubygems.rb:10:in `require': no such file to load -- thread (LoadError) from ./lib/rubygems.rb:10 from ./setup.rb:22:in `require' from ./setup.rb:22 when i run gem -v bash: /usr/local/bin/gem: /usr/local/bin/ruby: bad interpreter: No such file or directory when i run sudo gem install rails -v 2.3.9 sudo: unable to execute /usr/local/bin/gem: No such file or directory
not getting whats happening.????? On Mon, Sep 12, 2011 at 11:56 AM, Frederick Cheung < frederick.che...@gmail.com> wrote: > > > On Sep 11, 1:18 pm, Annapoorna R <prapoorn...@gmail.com> wrote: > > hi > > how to install rubygems after installing ruby1.8.7 > > installed rubygems also with following commands > > > > wget -chttp://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz > > tar -xvzf rubygems-1.3.1.tgz > > cd rubygems-1.3.1 > > sudo /opt/ruby-1.8.7-p72/bin/ruby setup.rb > > after this once i gave sudo gem update > > sudo: unable to execute /usr/local/bin/gem: No such file or directory > > ... > > even same for gem -v.. > > Sounds to me to like PATH problems to me - I'd check that your new > ruby install is ahead of the existing one in your path (and don't > forget that sudo cleans up environment variables like PATH before it > runs) > > Fred > > -- > 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@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.