From: "Shot (Piotr Szotkowski)" Date: 2009-12-13T22:21:16+09:00 Subject: Re: Is it possible to force a Ruby program to run as a proc name different than "ruby"? --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I=C3=B1aki Baz Castillo: > El Domingo, 13 de Diciembre de 2009, Shot (Piotr Szotkowski) escribi=C3= =B3: >> I don=E2=80=99t use program suffixes, but rather use >> ./configure --prefix=3D/home/shot/opt/ruby-1.9.1-p376 >> (and similar, for example ~/opt/ruby-1.8.7-git when building 1.8.7 from >> the repo=E2=80=99s latest 1.8.7 revision) plus ~/opt/ruby-1.8 and ~/opt/= ruby-1.9 >> symlinks poiting to the hand-compiled versions I want to use for my >> development. I then have >> export PATH_ORIG=3D"$PATH" >> at the end of my ~/.bashrc and >> alias r18=3D'export PATH=3D/home/shot/opt/ruby-1.8/bin:$PATH_ORIG' >> alias r19=3D'export PATH=3D/home/shot/opt/ruby-1.9/bin:$PATH_ORIG' >> in my ~/.bash_aliases, and switching between Ruby 1.8 and 1.9 is as >> quick as running =E2=80=98r18=E2=80=99 and =E2=80=98r19=E2=80=99 in the = shell. I leave system-packaged >> Ruby alone, if only so that =E2=80=98gem update --system=E2=80=99 works = sanely (and so >> no sudo is required for any of my Ruby development whatsoever). > This is a very nice solution. However the problem is that I need > ruby1.8 deb package isntalled in my system as many other packages > require ruby1.8, and it is installed under /usr/ as usual. Surely =E2=80=93 and I do, too. This is irrelevant to the above solution of having a hand-rolled Ruby 1.8 and 1.9 (and JRuby and whatnot) for development purposes. I actually prefer to have the =E2=80=98system=E2=80= =99 Ruby and the =E2=80=98development=E2=80=99 Rubies to be different environments (= as I can play with backporting Ruby patches, or different build flags, or very different gem selections, etc.). =E2=80=94 Shot --=20 =E2=80=98I=E2=80=99m sort of showing up after the war, here, but I really f= ail to understand WHAT we=E2=80=99re arguing about if not a design decision.=E2= =80=99 =E2=80=98I=E2=80=99d say =E2=80=9Cdiscussing=E2=80=9D. It=E2=80=99s not =E2= =80=9Carguing=E2=80=9D until people start accusing each other of being Fortran programmers.=E2=80=99 [Aldric Giacomoni, Seebs, ruby-talk] --TB36FDmn/VVEgNH/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAksk6jMACgkQi/mCfdEo8UqBUACgj/KJ2/3HFdYf2Dj8xaToYxkA CScAoM8SSrF8/QSZNMWRNGioLSN1h7xv =uswV -----END PGP SIGNATURE----- --TB36FDmn/VVEgNH/--