Rails and RubyGems

J

Jim Menard

I have two issues with installing Rails via RubyGems. I'm on Mac OS X.

First, when asking to install dependencies, the prompts end with "[Yn]
". I hit return, expecting it to default to 'Y'. Instead, I saw

ERROR: While executing gem ... (Gem::DependencyError)
Required dependency activerecord not installed

It turns out that I must type 'y'.

Second, here's what happens when I try to install everything:

~> sudo gem install rails
Attempting local installation of 'rails'
Local gem file not found: rails.gem
Attempting remote installation of 'rails'
ERROR: While executing gem ... (NameError)
(eval):1:in `class_eval': uninitialized class variable
@@inheritable_attributes_for_base in
CGI::Session::ActiveRecordStore::Session

Has anybody else seen this problem? Any suggestions?

Jim
--
Jim Menard, (e-mail address removed), http://www.io.com/~jimm
"Scissors cuts Paper covers Rock crushes Lizard poisons Spock smashes
Scissors
decapitates Lizard eats Paper disproves Spock vaporizes Rock crushes
Scissors"
-- Rock Paper Scissors Spock Lizard,
http://www.samkass.com/theories/RPSSL.html
 
Z

Zach Dennis

I'm trying to download FormValidator so I can start playing with
Arrow...there is one small problem with the download link on the project
page:

http://raa.ruby-lang.org/project/formvalidator

It doesn't work. Does anyone have a copy of this that they could send
me, or does anyone know of a good mirror to dl it. Thanks,

Zach
 
D

daz

Zach said:
I'm trying to download FormValidator so I can start playing with
Arrow...there is one small problem with the download link on the project
page:

http://raa.ruby-lang.org/project/formvalidator

It doesn't work. Does anyone have a copy of this that they could send
me, or does anyone know of a good mirror to dl it. Thanks,

Zach

There's a comment on this page:
http://dev.rubycrafters.com/arrow-manual/whatis.html ...

"Fortunately, Travis Whitton already wrote an excellent Ruby data-validation
library called FormValidator, which is built into Arrow."


- so maybe you already have it ?


:daz
 
C

Chad Fowler

I have two issues with installing Rails via RubyGems. I'm on Mac OS X.

First, when asking to install dependencies, the prompts end with "[Yn]
". I hit return, expecting it to default to 'Y'. Instead, I saw

ERROR: While executing gem ... (Gem::DependencyError)
Required dependency activerecord not installed

It turns out that I must type 'y'.

This one is a (stupid) bug in 0.7.0 of RubyGems. It's fixed in CVS
and 0.8.0, which will be released tomorrow--I swear :)
Second, here's what happens when I try to install everything:

~> sudo gem install rails
Attempting local installation of 'rails'
Local gem file not found: rails.gem
Attempting remote installation of 'rails'
ERROR: While executing gem ... (NameError)
(eval):1:in `class_eval': uninitialized class variable
@@inheritable_attributes_for_base in
CGI::Session::ActiveRecordStore::Session

Has anybody else seen this problem? Any suggestions?

I haven't encountered this one. I've installed rails on several
machines several times via RubyGems without a problem. Anyone else?

Chad
 
Z

Zach Dennis

daz said:
"Known good versions of each one are in the distribution
in the redist/ directory, ... "

Ruby-Cache (0.3)
FormValidator (0.1.3)
HashSlice (1.03)
PluginFactory (0.01)
Thanks daz

Zach
 
K

Kevin Radloff

I haven't encountered this one. I've installed rails on several
machines several times via RubyGems without a problem. Anyone else?

Chad

I believe that's due to the incompability of rails and Ruby 1.9, but
that's just a guess based on a vague recollection of a web/irc/mailing
list/something conversation I can't seem to locate at the moment. ;P
 
J

Jim Menard

I believe that's due to the incompability of rails and Ruby 1.9, but
that's just a guess based on a vague recollection of a web/irc/mailing
list/something conversation I can't seem to locate at the moment. ;P

Could be. I'm running 1.9.

David, if you're listening: is there a know problem with Rails and Ruby
1.9?

Jim
 
K

Kevin Radloff

Could be. I'm running 1.9.

David, if you're listening: is there a know problem with Rails and Ruby
1.9?

Jim

There is a known problem with Rails and Ruby 1.9; the reason I was
guessing was because you didn't specify that you were running it. ;)
 
C

Chad Fowler

Could be. I'm running 1.9.

David, if you're listening: is there a know problem with Rails and Ruby
1.9?

FYI, I think David is traveling internationally right now, so he may
not chime in any time soon.

Chad
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,883
Members
47,414
Latest member
djangoframe

Latest Threads

Top