Rails and RubyGems

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, jimm@io.com, 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

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

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

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

···

On Sat, 11 Sep 2004 09:26:42 +0900, Jim Menard <jimm@io.com> wrote:

Zach Dennis wrote:

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

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. :stuck_out_tongue_winking_eye:

···

On Sat, 11 Sep 2004 11:32:48 +0900, Chad Fowler <chadfowler@gmail.com> wrote:

On Sat, 11 Sep 2004 09:26:42 +0900, Jim Menard <jimm@io.com> wrote:
> 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

--
Kevin 'radsaq' Radloff
http://saqataq.us/

- so maybe you already have it ?

From http://dev.rubycrafters.com/arrow-manual/install.html ...

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

:daz

Could be. I'm running 1.9.

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

Jim

···

On Sep 10, 2004, at 11:54 PM, Kevin Radloff wrote:

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. :stuck_out_tongue_winking_eye:

--
Jim Menard, jimm@io.com, http://www.io.com/~jimm/
"How do you keep an Englishman entertained in his dotage? Tell him
a joke when he's young." -- Charles-A. Rovira

You can also get it using rpa-base, which may have a newer version.
http://rpa-base.rubyforge.org/wiki/wiki.cgi

···

On Sat, 11 Sep 2004 11:30:00 +0900, daz <dooby@d10.karoo.co.uk> wrote:

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

--
Bill Guindon (aka aGorilla)

daz wrote:

- so maybe you already have it ?

From http://dev.rubycrafters.com/arrow-manual/install.html ...

"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

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. :wink:

···

On Sun, 12 Sep 2004 06:29:44 +0900, Jim Menard <jimm@io.com> wrote:

On Sep 10, 2004, at 11:54 PM, Kevin Radloff wrote:
> 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. :stuck_out_tongue_winking_eye:

Could be. I'm running 1.9.

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

Jim

--
Kevin 'radsaq' Radloff
http://saqataq.us/

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

Chad

···

On Sun, 12 Sep 2004 06:29:44 +0900, Jim Menard <jimm@io.com> wrote:

On Sep 10, 2004, at 11:54 PM, Kevin Radloff wrote:

> 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. :stuck_out_tongue_winking_eye:

Could be. I'm running 1.9.

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

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. :stuck_out_tongue_winking_eye:

Could be. I'm running 1.9.

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

it is a known problem:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/110216