From owner-freebsd-questions@FreeBSD.ORG Fri Nov 28 12:41:56 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 935ED106564A for ; Fri, 28 Nov 2008 12:41:56 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from mtaout03-winn.ispmail.ntl.com (mtaout03-winn.ispmail.ntl.com [81.103.221.49]) by mx1.freebsd.org (Postfix) with ESMTP id EC7678FC0A for ; Fri, 28 Nov 2008 12:41:55 +0000 (UTC) (envelope-from danielby@slightlystrange.org) Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20081128124151.YLMD1691.mtaout03-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com> for ; Fri, 28 Nov 2008 12:41:51 +0000 Received: from catflap.slightlystrange.org ([82.21.101.171]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20081128124151.DGAE19264.aamtaout01-winn.ispmail.ntl.com@catflap.slightlystrange.org> for ; Fri, 28 Nov 2008 12:41:51 +0000 Received: by catflap.slightlystrange.org (Postfix, from userid 106) id 70F08613A; Fri, 28 Nov 2008 12:41:48 +0000 (GMT) Received: from torus.slightlystrange.org (torus.slightlystrange.org [10.1.3.50]) by catflap.slightlystrange.org (Postfix) with SMTP id BE9C56133 for ; Fri, 28 Nov 2008 12:41:47 +0000 (GMT) Received: by torus.slightlystrange.org (sSMTP sendmail emulation); Fri, 28 Nov 2008 12:41:47 +0000 From: "Daniel Bye" Date: Fri, 28 Nov 2008 12:41:47 +0000 To: freebsd-questions@freebsd.org Message-ID: <20081128124147.GA24467@torus.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <1227864620.18902.20.camel@robby-desktop> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <1227864620.18902.20.camel@robby-desktop> User-Agent: Mutt/1.4.2.3i X-PGP-Fingerprint: D349 B109 0EB8 2554 4D75 B79A 8B17 F97C 1622 166A X-Operating-System: FreeBSD 7.1-PRERELEASE i386 X-Cloudmark-Analysis: v=1.0 c=1 a=ehNlctqhnw0A:10 a=_imi8ufYYMUJspV2tb0A:9 a=5-j1f2GTA7CacFEDBPY7WJ5IaoUA:4 a=LY0hPdMaydYA:10 a=Io4cV8JTgEhpUEY-tlAA:9 a=S7EYKt265-TrbXBdwdZwjWrNoX0A:4 a=rPt6xJ-oxjAA:10 Subject: Re: Ruby on rails on freebsd 7 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2008 12:41:56 -0000 --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--