Can't seem to install Rails

Hi

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.

Thanks.

What is your operating system?

Try this:

gem sources -r http://gems.rubyforge.org

then

gem env

http://gems.rubyforge.org should now be a remote source and you should
be able to install rails just fine.

daBigNY wrote:

hi john-

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

any other suggestions?

thanks!

jeff

hi john-

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.

Fred

Hi Fred-

Thanks for the quick response!

...but I'm still getting the same error after clearing the cache.

any other thoughts?

thanks

also:

Home-iMac:bin jeff$ gem sources -a http://gems.rubyforce.org
ERROR: While executing gem ... (Gem::RemoteSourceException)
    HTTP Response 403 fetching http://gems.rubyforce.org/yaml

also:

Home-iMac:bin jeff$ gem sources -a http://gems.rubyforce.org
ERROR: While executing gem ... (Gem::RemoteSourceException)
   HTTP Response 403 fetching http://gems.rubyforce.org/yaml

It probably doesn't help that you've typoed the url (rubyforge)

Fred

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

Michael

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

Gladly. Here's what I tried today (after many failed attempts
yesterday):

sudo gem update rails --source http://gems.rubyforge.org
Password:
Updating installed gems
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    Operation timed out - connect(2) (Errno::ETIMEDOUT)
  fetching size (http://gems.rubyforge.org/yaml)

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 ***

Thanks but you're right.

I had a question for you guys, I can see rails being fast for back end
but what about styling and astetics? UI?

Giovanni
•••••••••••••••••

Gladly. Here's what I tried today (after many failed attempts
yesterday):

sudo gem update rails --source http://gems.rubyforge.org
Password:
Updating installed gems
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    Operation timed out - connect(2) (Errno::ETIMEDOUT)
  fetching size (http://gems.rubyforge.org/yaml)

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 ***

Thanks but you're right.

I had a question for you guys, I can see rails being fast for back end
but what about styling and astetics? UI?

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

Thanks, Craig, I'm trying that now. In the meanwhile I'll tell you
that I did this yesterday:
http_proxy=http://<proxyserver:port>;export http_proxy

This was an attempt to get around the firewall.

Here are the results:
gem list --remote

*** REMOTE GEMS ***

ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    Operation timed out - connect(2) (Errno::ETIMEDOUT)
  fetching size (http://gems.rubyforge.org/yaml)
s889212:~ mtowns$ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.2.0
  - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [universal-
darwin9.0]
  - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/
Versions/1.8/usr/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - universal-darwin-9
  - GEM PATHS:
     - /Library/Ruby/Gems/1.8
     - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://gems.rubyforge.org/

In my untrained eye, the environment looks good. ???

Thanks, Craig, I'm trying that now. In the meanwhile I'll tell you
that I did this yesterday:
http_proxy=http://<proxyserver:port>;export http_proxy

This was an attempt to get around the firewall.

Here's the result of the first part:

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