Can't seem to install Rails

8 views
Skip to first unread message

daBigNY

unread,
Jun 12, 2008, 5:23:15 PM6/12/08
to Ruby on Rails: Talk
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.

Ruby Freak

unread,
Jun 12, 2008, 6:44:36 PM6/12/08
to Ruby on Rails: Talk
What is your operating system?

John Yerhot

unread,
Jun 12, 2008, 8:20:20 PM6/12/08
to rubyonra...@googlegroups.com
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.

--
Posted via http://www.ruby-forum.com/.

Jeff

unread,
Jun 14, 2008, 3:18:42 PM6/14/08
to Ruby on Rails: Talk
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 Yerhot <rails-mailing-l...@andreas-s.net>
wrote:
> Try this:
>
> gem sources -r  http://gems.rubyforge.org
>
> then
>
> gem env
>
> http://gems.rubyforge.orgshould now be a remote source and you should

Frederick Cheung

unread,
Jun 14, 2008, 3:23:40 PM6/14/08
to Ruby on Rails: Talk


On Jun 14, 8:18 pm, Jeff <JetsonDa...@gmail.com> 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

> any other suggestions?
>
> thanks!
>
> jeff
>
> On Jun 12, 5:20 pm, John Yerhot <rails-mailing-l...@andreas-s.net>
> wrote:
>
> > Try this:
>
> > gem sources -r  http://gems.rubyforge.org
>
> > then
>
> > gem env
>
> >http://gems.rubyforge.orgshouldnow be a remote source and you should

Jeff

unread,
Jun 14, 2008, 3:27:51 PM6/14/08
to Ruby on Rails: Talk
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 Cheung <frederick.che...@gmail.com>
wrote:
> On Jun 14, 8:18 pm, Jeff <JetsonDa...@gmail.com> 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. ifhttp://gems.rubyforge.org
> isn't there, you can add it with
> gem sources -ahttp://gems.rubyforge.org
>
> You might find that gem sources -c (which clears out the sources
> cache) followed by re-addinghttp://gems.rubyforge.org
>  might help.
>
> Fred
>
> > any other suggestions?
>
> > thanks!
>
> > jeff
>
> > On Jun 12, 5:20 pm, John Yerhot <rails-mailing-l...@andreas-s.net>
> > wrote:
>
> > > Try this:
>
> > > gem sources -r  http://gems.rubyforge.org
>
> > > then
>
> > > gem env
>
> > >http://gems.rubyforge.orgshouldnowbe a remote source and you should

Jeff

unread,
Jun 14, 2008, 3:29:40 PM6/14/08
to Ruby on Rails: Talk
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
> > > >http://gems.rubyforge.orgshouldnowbea remote source and you should

Frederick Cheung

unread,
Jun 14, 2008, 3:53:16 PM6/14/08
to rubyonra...@googlegroups.com

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

MichaelT

unread,
Jul 16, 2008, 12:59:36 PM7/16/08
to Ruby on Rails: Talk
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

Craig White

unread,
Jul 16, 2008, 1:35:43 PM7/16/08
to rubyonra...@googlegroups.com
----
why don't you show us the commands you're using that are failing.

Craig

MichaelT

unread,
Jul 16, 2008, 2:07:53 PM7/16/08
to Ruby on Rails: Talk
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 ***

Giovanni

unread,
Jul 16, 2008, 3:12:35 PM7/16/08
to rubyonra...@googlegroups.com
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 White <craig...@azapple.com>
wrote:

Craig White

unread,
Jul 16, 2008, 4:11:39 PM7/16/08
to rubyonra...@googlegroups.com
----
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

Craig White

unread,
Jul 16, 2008, 4:18:24 PM7/16/08
to rubyonra...@googlegroups.com
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

MichaelT

unread,
Jul 16, 2008, 4:29:38 PM7/16/08
to Ruby on Rails: Talk
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

Craig White

unread,
Jul 16, 2008, 4:48:43 PM7/16/08
to rubyonra...@googlegroups.com
----
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:
- http://gems.rubyforge.org

let's see what happens when you run those commands

Craig

MichaelT

unread,
Jul 16, 2008, 5:02:20 PM7/16/08
to Ruby on Rails: Talk
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.

MichaelT

unread,
Jul 16, 2008, 5:06:04 PM7/16/08
to Ruby on Rails: Talk
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. ????

Craig White

unread,
Jul 16, 2008, 5:13:52 PM7/16/08
to rubyonra...@googlegroups.com
----
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

MichaelT

unread,
Jul 16, 2008, 5:38:12 PM7/16/08
to Ruby on Rails: Talk
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:

MichaelT

unread,
Jul 16, 2008, 5:41:35 PM7/16/08
to Ruby on Rails: Talk
*Sigh*

Craig White

unread,
Jul 16, 2008, 5:45:14 PM7/16/08
to rubyonra...@googlegroups.com
On Wed, 2008-07-16 at 14:38 -0700, MichaelT wrote:
> 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...
----
good to know that it works with -p
----

> 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
----
I'm assuming that you dropped the brackets < > above but

export HTTP_PROXY=http://proxyserver:port

should just work. I don't know if case matters in the environmental
variable or not.

what happens when you 'echo $HTTP_PROXY'

does it give you the right value?

Craig

MichaelT

unread,
Jul 16, 2008, 5:46:21 PM7/16/08
to Ruby on Rails: Talk
So I guess it was successful anyway. But I wonder why the last install
didn't work?

MichaelT

unread,
Jul 16, 2008, 5:54:19 PM7/16/08
to Ruby on Rails: Talk
Yes, that works fine.

MichaelT

unread,
Jul 16, 2008, 6:03:45 PM7/16/08
to Ruby on Rails: Talk
Craig,

Well, I have to leave now, but let's consider this somewhat
successful. Thank you so much for all your help. I truly appreciate
it.

Michael

Giovanni

unread,
Jul 16, 2008, 6:52:32 PM7/16/08
to rubyonra...@googlegroups.com
I turned to ror for the simple reason that it seems like the best
overall solution.

I'll try reinstalling it.

Can you use wysiwyg tools for styling?

Giovanni
•••••••••••••••••
Reply all
Reply to author
Forward
0 new messages