Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2008 12:41:47 +0000
From:      "Daniel Bye" <danielby@slightlystrange.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Ruby on rails on freebsd 7
Message-ID:  <20081128124147.GA24467@torus.slightlystrange.org>
In-Reply-To: <1227864620.18902.20.camel@robby-desktop>
References:  <1227864620.18902.20.camel@robby-desktop>

next in thread | previous in thread | raw e-mail | index | archive | help

--qMm9M+Fa2AknHoGS
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 28, 2008 at 11:30:20AM +0200, Robby Balona wrote:
> Has anybody managed to get Ruby on Rails 2 working on Freebsd 7 . I have
> tried for 3 day now . Done portupgrades and portsnaps but still cant
> seem to get it to work

Yes, I'm using it very successfully. The version of Rails in ports=20
seems to have stuck at 1.2.6.

>=20
>=20
> I get the following error when I run rails
>=20
> ../lib/rails_generator/options.rb:32:in default_options: undefined
> method write_inheritable_attribute
>=20
> I googled this error and found very little to help except that it looks
> like its something to do with activesupport-1.4.2 not being install
> correctly...

rails 2.* ships with activsupport 2.*.

Your best bet will be to upgrade your installed gems:

$ sudo gem upgrade --system

(If that doesn't work, try `update_rubygems' instead)

Gems should now report its version as 1.3.1:

$ gem -v
1.3.1

Now you can simply use gems to install Rails and its dependencies:

$ sudo gem install rails --include-dependencies

If you really want version 2.0 or 2.1 instead of the recently released
2.2, include a --version=3D2.1 to the command. However, given the
enhancements, I'd go with the latest.

HTH,

Dan

--=20
Daniel Bye
                                                                     _
                                              ASCII ribbon campaign ( )
                                         - against HTML, vCards and  X
                                - proprietary attachments in e-mail / \

--qMm9M+Fa2AknHoGS
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkkv5wsACgkQixf5fBYiFmqJfACfeqnl3NBMtuOF9+CKjqWeH+xr
/5oAoMQURglkB/dwXywkxplc6CFxXl8M
=3d7f
-----END PGP SIGNATURE-----

--qMm9M+Fa2AknHoGS--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081128124147.GA24467>