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

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.

On Jun 14, 8:18 pm, Jeff [email protected] 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

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

On Jun 12, 5:20 pm, John Y. [email protected]

Hi Fred-

Thanks for the quick response!

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

any other thoughts?

thanks

On Jun 14, 12:23 pm, Frederick C. [email protected]

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

On 14 Jun 2008, at 20:29, Jeff wrote:

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

On Wed, 2008-07-16 at 09:59 -0700, MichaelT wrote:

Machine info: Mac OS X v. 10.5.3, Rails v. 1.2.6, Ruby v. 1.8.6, gem
v. 1.2.0


why don’t you show us the commands you’re using that are failing.

Craig

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

On Jul 16, 2008, at 10:35 AM, Craig W. [email protected]

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

On Wed, 2008-07-16 at 12:12 -0700, Giovanni wrote:

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?


actually, I think php is faster in executing code but the rigid rails
structure segregates the code base rather effectively and thus the
‘view’ code is entirely separate from other portions of the code…which
doesn’t actually answer your question.

styling and aesthetics are driven by html/css which is obviously
implemented and not likely to be too different than all other middleware
platforms with the exception that you do get a fair amount of json for
free.

Craig

On Wed, 2008-07-16 at 11:07 -0700, MichaelT wrote:

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’m only familiar with Linux and not installing Rails on OSX but what
happens if you just simply do…

sudo gem install rails --include-dependencies

without sourcing?

Craig

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.

On Wed, 2008-07-16 at 13:29 -0700, MichaelT wrote:

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


seems as though you get the same message either way…perhaps it is the
firewall. Does it proxy everything?

gem list --remote

gem environment

RubyGems Environment:

  • RUBYGEMS VERSION: 1.1.1
  • RUBY VERSION: 1.8.6 (2008-06-20 patchlevel 230) [i386-linux]
  • INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: /usr/bin/ruby
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-linux
  • GEM PATHS:
    • /usr/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

let’s see what happens when you run those commands

Craig

On Wed, 2008-07-16 at 14:02 -0700, MichaelT wrote:

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.


clearly that’s not working

1 - try to make it work from command line first.

sudo gem install rails --include-dependencies -p http://proxyserver:port

2 - once you get it to work from command line, you can probably set the
environmental variable that would work but it probably needs to be upper
case.

http://lists.rubyonrails.org/pipermail/rails/2004-November/000497.html

Craig

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:

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

Yes, that works fine.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs