hi how to install rubygems after installing ruby1.8.7 installed rubygems also with following commands wget -c http://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.. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
And for some reason you thought it unimportant to list what directory you were at when issuing those commands? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 11, 1:18 pm, Annapoorna R <prapoorn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
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.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Sep 11, 1:18 pm, Annapoorna R <prapoorn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 12, 7:41 am, Annapoorna R <prapoorn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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.?????Like I said, my guess would be a problem with your $PATH environment variable, meaning that your shell then looks for ruby, gem etc. in the wrong place. Having multiple ruby installs (at a guess, one in /usr, one in /usr/local and one in /opt) is probably adding to the confusion Fred Fred> > On Mon, Sep 12, 2011 at 11:56 AM, Frederick Cheung < > > > > frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Sep 11, 1:18 pm, Annapoorna R <prapoorn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to > > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
On Mon, Sep 12, 2011 at 2:41 PM, Annapoorna R <prapoorna.r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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) >whenever i get an error like this, i usually google the exact error message. and most of the time, i get the solution i need. googling "no such file to load -- thread" gave http://www.ruby-forum.com/topic/122700 as the top result. you might want to check that out :) Good luck!> 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.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> >> On Sep 11, 1:18 pm, Annapoorna R <prapoorn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- ------------------------------------------------------------- visit my blog at http://jimlabs.heroku.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
thanks jim, installed rubygem installing rails2.3.9 using sudo gem install rails -v=2.3.9 ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) timed out (http://rubygems.org/gems/rails-2.3.9.gem) i searched with this error..but no result.. ??? On Mon, Sep 12, 2011 at 1:02 PM, Jim Ruther Nill <jvnill-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Mon, Sep 12, 2011 at 2:41 PM, Annapoorna R <prapoorna.r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>wrote: > >> 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) >> > > whenever i get an error like this, i usually google the exact error > message. and most of the time, i get > the solution i need. googling "no such file to load -- thread" gave > http://www.ruby-forum.com/topic/122700 > as the top result. you might want to check that out :) Good luck! > > > >> 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.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>> >>> >>> On Sep 11, 1:18 pm, Annapoorna R <prapoorn...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To unsubscribe from this group, send email to >>> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > > > -- > ------------------------------------------------------------- > visit my blog at http://jimlabs.heroku.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 12 September 2011 11:07, Annapoorna R <prapoorna.r-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> thanks jim, > installed rubygem > installing rails2.3.9 using sudo gem install rails -v=2.3.9 > ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) > timed out (http://rubygems.org/gems/rails-2.3.9.gem) > i searched with this error..but no result.. > ???Possibly a networking problem, or a firewall/proxy permission. Do you use a proxy for internet traffic? Are there firewall rules on it? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.