Ruby problem

Phil Dobbin phildobbin at gmail.com
Fri Mar 9 04:15:31 PST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/03/2012 10:35, Rainer Müller wrote:
> Hello,
> 
> On 03/09/2012 06:53 AM, Phil Dobbin wrote:
>> I've got iTerm2 running with six tabs. In each tab I've issued the
>> command `rvm --default use 1.9.3` to set my ruby version. So in one
>> shell I'll have a Rails project, another node.js, another $HOME/dev
>> running git & so on.
> 
> As far as I understand it on their website [1], rvm modifies your PATH
> variable to switch between different versions of a tool.
> 
> Please check to what typing ruby in your shell refers with the command
> 'which ruby'. I assume it returns something like
> "/Users/foo/.rvm/rubies/ruby-1.9.3/bin/ruby" as explained on the
> website. Also check where this symlink points to.
> 
>> In one shell I clone a repository from git (repl) & switch shells to do
>> a port search for a recommended dependent (rlwrap). I install rlwrp from
>> Mac Ports. Switch shells again (to node) & the ruby version is now 1.8.7
>> from /opt/local.
> 
> Please check again what 'which ruby' returns now and where the symlink
> points to.
> 
> Running 'port' cannot modify the PATH variable of either the current or
> any other terminal. So I don't see how MacPorts could be doing anything
> that would modify the behavior here.
> 
> I assume rvm does not more than modifying PATH and setting up symlinks,
> I did not find more documentation on that matter.


Hi, Rainer.

Readlink returns nothing on both
`/Users/dobbin/.rvm/rubies/ruby-1.9.3-p0/bin/ruby` & `/opt/local/bin/ruby`.

Cheers,

  Phil...

- -- 
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

	Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPWfRgAAoJEKpMeDHWT5ADUBYH/A/mv8Oy/YmbxsQeBKpvJ7tC
zFdSjAdGUYFr8suHoCBqu9a0FT3Pr/dfqQ1dGfNeZBU+QxiLFQqJK6HHTvlBvego
rkWgFYp3JagIb5muYw+5ByXmI2ngpZvGsGTOI/HX5wBkWCNss7EQ45RxH+rsRfYZ
jwqVhikri6BDYjpwlPvsiQRPR+ig17LrY1AfekuazOzD+yaaUS9B+p+AHLnlEyW2
nbNCyokvk7/LgStjnU8wsmz4SpADKQW5L1QuEdIHvH3gvq/ki7Rsv2xHqXlat54m
tX4IUHTSbzEvtGdTRqaDkx92DeD1ffaOBxONCcZAI0KZr7givDX+ukslWcEZors=
=XIy9
-----END PGP SIGNATURE-----


More information about the macports-users mailing list