From: Eric Hodel Date: 2003-12-02T13:58:44-08:00 Subject: Re: ruby 1.8 in the freebsd ports tree --TmwHKJoIRFM7Mu/A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable culley harrelson (culley@fastmail.fm) wrote: > Does anyone have ruby 1.8 + libraries working from the freebsd ports=20 > tree? I have ruby 1.6 and ruby 1.8 installed from ports but any attempt= =20 > to install other ruby ports puts them in the 1.6 library. Upon=20 > installation the 1.8 port says: >=20 > =3D=3D > To build a ruby related port for Ruby 1.8, define RUBY_VER=3D1.8 on the > make command line or in /etc/make.conf. If you want to use Ruby 1.8 > as the default instead of 1.6, define RUBY_DEFAULT_VER=3D1.8 also. > =3D=3D >=20 > But this seems to have no effect when, for instance, trying to=20 > re-install ruby-rmail into the 1.8 library. I have updated=20 > /etc/make.conf, tried passing in the parameter to make via portupgrade,= =20 > tried making the port without portupgrade and tried setting RUBY_VER and= =20 > RUBY_DEFAULT_VER as environment variables. What is /usr/local/bin/ruby linked to? ruby16 or ruby18? If it is linked to ruby16, you'll need to switch it to ruby18 (and irb, maybe something else too, or reinstall, if you're paranoid) since it seems that not every ruby port has been updated to use RUBY_VER. Once you do this, all new ports should install themselves as 1.8 ports. You need to do this because the port setup scripts (port script, setup.rb, install.rb) sometimes use /usr/local/lib/ruby (rather than 16 or 18 specifically) so will get installed into whichever tree your /usr/local/bin/ruby belongs to. --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --TmwHKJoIRFM7Mu/A Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/zQsUMypVHHlsnwQRAht7AJ0bByTdBf1nCzETGwBsYYQdAMyT3QCdHcoE K+OWHNwaz6EsvWBEBRz/qJg= =E8zD -----END PGP SIGNATURE----- --TmwHKJoIRFM7Mu/A--