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…
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)
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,
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:inrequire’
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
On Mon, Sep 12, 2011 at 2:41 PM, Annapoorna R [email protected]
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!
how to install rubygems after installing ruby1.8.7
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?
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…
???
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.