I was using Instant Rails but it wasn't working for me so I decided to
install Ruby the old fashion way. Everything was going fine until I
tried to install Rails. I just keep getting this error "ERROR: could
not find rails locally or in a repository."
I saw another thread here discussing this problem and I tried all the
suggested solutions from that thread and got no where. I'm a total
newbie and I need some help.
i am having the same problem, but your fix does not seem to work - I
keep getting:
ERROR: could not find RAILS locally or in a repository
gem sources -r
removes a gem source, so unlikely to help
If you run
gem sources
it should tell you what sources are available. if http://gems.rubyforge.org
isn't there, you can add it with
gem sources -a http://gems.rubyforge.org
You might find that gem sources -c (which clears out the sources
cache) followed by re-adding http://gems.rubyforge.org
might help.
I'm having a similar problem. I can see the gem rails locally, but
when I try to install or update to a newer version (I'm updating from
1.2.6), it gives me the error that it can't find it locally.
Everything I look for (rails, ruby, etc.) returns the right answer,
yet I can't update.
Any ideas?
(I've tried supplying the --source, clearing the cache, as well as
running the Hivelogic installation)
Machine info: Mac OS X v. 10.5.3, Rails v. 1.2.6, Ruby v. 1.8.6, gem
v. 1.2.0
I'm having a similar problem. I can see the gem rails locally, but
when I try to install or update to a newer version (I'm updating from
1.2.6), it gives me the error that it can't find it locally.
Everything I look for (rails, ruby, etc.) returns the right answer,
yet I can't update.
Any ideas?
(I've tried supplying the --source, clearing the cache, as well as
running the Hivelogic installation)
Machine info: Mac OS X v. 10.5.3, Rails v. 1.2.6, Ruby v. 1.8.6, gem
v. 1.2.0
gem install rails
ERROR: could not find gem rails locally or in a repository
sudo gem install rails --source http://gems.rubyforge.org
Password:
Sorry, try again.
Password:
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rails locally or in a repository
earlier I ran this:
gem sources -c
*** Removed specs cache ***
*** Removed user source cache ***
*** Removed latest user source cache ***
*** Removed system source cache ***
*** Removed latest system source cache ***
gem install rails
ERROR: could not find gem rails locally or in a repository
sudo gem install rails --source http://gems.rubyforge.org
Password:
Sorry, try again.
Password:
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rails locally or in a repository
earlier I ran this:
gem sources -c
*** Removed specs cache ***
*** Removed user source cache ***
*** Removed latest user source cache ***
*** Removed system source cache ***
*** Removed latest system source cache ***
I have been including source to try to avoid any issues with our
firewall
But here's the result:
sudo gem install rails --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rails locally or in a repository
I have been including source to try to avoid any issues with our
firewall
But here's the result:
sudo gem install rails --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rails locally or in a repository
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed rake-0.8.1
Successfully installed activesupport-2.1.0
Successfully installed activerecord-2.1.0
Successfully installed actionpack-2.1.0
Successfully installed actionmailer-2.1.0
Successfully installed activeresource-2.1.0
Successfully installed rails-2.1.0
7 gems installed
Installing ri documentation for rake-0.8.1...
Installing ri documentation for activesupport-2.1.0...
Installing ri documentation for activerecord-2.1.0...
Installing ri documentation for actionpack-2.1.0...
Installing ri documentation for actionmailer-2.1.0...
Installing ri documentation for activeresource-2.1.0...
Installing RDoc documentation for rake-0.8.1...
Installing RDoc documentation for activesupport-2.1.0...
Installing RDoc documentation for activerecord-2.1.0...
Installing RDoc documentation for actionpack-2.1.0...
Installing RDoc documentation for actionmailer-2.1.0...
Installing RDoc documentation for activeresource-2.1.0...
And then:
export HTTP_PROXY=http://<proxyserver:port>
And finally:
sudo gem install rails
Password:
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rails locally or in a repository