ruby 1.8 in the freebsd ports tree

  • Thread starter culley harrelson
  • Start date
C

culley harrelson

Does anyone have ruby 1.8 + libraries working from the freebsd ports
tree? I have ruby 1.6 and ruby 1.8 installed from ports but any attempt
to install other ruby ports puts them in the 1.6 library. Upon
installation the 1.8 port says:

==
To build a ruby related port for Ruby 1.8, define RUBY_VER=1.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=1.8 also.
==

But this seems to have no effect when, for instance, trying to
re-install ruby-rmail into the 1.8 library. I have updated
/etc/make.conf, tried passing in the parameter to make via portupgrade,
tried making the port without portupgrade and tried setting RUBY_VER and
RUBY_DEFAULT_VER as environment variables.

I wanted to see if anyone had any suggestions before I break away from
the ports tree and install these manually. I have also asked on the
freebsd-questions mailing list.

culley
 
M

Manfred Lotz

Does anyone have ruby 1.8 + libraries working from the freebsd ports
tree? I have ruby 1.6 and ruby 1.8 installed from ports but any attempt
to install other ruby ports puts them in the 1.6 library. Upon
installation the 1.8 port says:

==
To build a ruby related port for Ruby 1.8, define RUBY_VER=1.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=1.8 also.
==

I have Ruby 1.8 running on FreeBSD 5.2 BETA. In
/etc/make I have

RUBY_VER=1.8
RUBY_DEFAULT_VER=1.8

It works fine. I'm surely not a Ruby expert but I love it and it works
fine for what I'm using it.


Perhaps you should do a pkg_deinstall for the ruby 1.6 and then
install the ruby 1.8 with the settings in /etc/make.conf as mentioned
above.


Manfred
 
E

Eric Hodel

--TmwHKJoIRFM7Mu/A
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
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 - (e-mail address removed) - 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--
 
E

Eric Hodel

--1EKig6ypoSyM7jaD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I spent the last hour figuring out how to hide the cmd.exe (dos) window/r= uby
interpreter when running my ruby script. I didn't see any direct answers = to
this question so here is how I got it to work.

Why not use rubyw.exe as the interpreter?

--=20
Eric Hodel - (e-mail address removed) - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04


--1EKig6ypoSyM7jaD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/zRGZMypVHHlsnwQRAjRgAKDJR3sjytAcwi/k6t485/mE++/gjwCgnGo5
+VaJoNjJE+dQa3lSyllMkrU=
=W9wo
-----END PGP SIGNATURE-----

--1EKig6ypoSyM7jaD--
 
C

culley harrelson

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.

I am currently linked to ruby16. I was under the impression that some
of the freebsd plumbing was dependent on ruby16 and switching these
could possibly cause some trouble. Only one way to find out eh?

culley
 
E

Eric Hodel

--/8E7gjuj425jZz9t
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
I am currently linked to ruby16. I was under the impression that some=20
of the freebsd plumbing was dependent on ruby16 and switching these=20
could possibly cause some trouble. Only one way to find out eh?

Nothing in the base system is wired up to and ruby interpreter.
Unfortunately, portupgrade was a tragedy of my switch, but that was
a quick and easy fix (either reinstall, or hard-code to use ruby16).

--=20
Eric Hodel - (e-mail address removed) - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04


--/8E7gjuj425jZz9t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/zR09MypVHHlsnwQRAtREAJ0f1aTOPpY+A27mYtpKSxRTJfgeoACbBeTX
Six0SZ/Lp8w29vheWQCGzNU=
=SHkV
-----END PGP SIGNATURE-----

--/8E7gjuj425jZz9t--
 
C

culley harrelson

I finally got it by deinstalling *everything* that uses ruby, installing
1.8 and then reinstalling everything. Including portupgrade. Kind of a
pain but it is done-- thanks for your help!

culley
 

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
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top