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](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..
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,
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
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
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…
???