U
Une bévue
on my box running Mac OS X (Tiger the latest) i do have three ruby
versions :
- /usr/bin/ruby # Apple's default installed version :
# => 1.8.2
- /opt/local/bin/ruby # the MacPort version :
# => 1.8.5
- /Users/yvon/bin/jruby/jruby # svn installed
# => 1.8.5 (0) [java]
both MacPort and SVN versions cohabit nicely because using zsh (shell)
aliases all commands of jruby have a "j" prefix and using a ~/.jgemrc
i'm able to switch env vars between them.
then, the prob, reason for posting here, come with the default installed
version.
here, when doing a :
$ /usr/bin/ruby wav2xml.rb bidule.wav # i get :
/usr/bin/ruby: No such file to load -- ubygems (LoadError)
i think this is due to some env vars i setup :
export RUBYOPT=rubygems
export GEM_HOME=/opt/local/lib/gems/1.8
export RUBYLIB=/opt/local/lib/ruby/:/opt/local/lib/ruby/site_ruby/1.8
because i've to design some scripts usable with apple's default version,
i'd like to find a workaround for that error message without installing
anything within Apple's ruby...
do you have a trick for that ?
versions :
- /usr/bin/ruby # Apple's default installed version :
# => 1.8.2
- /opt/local/bin/ruby # the MacPort version :
# => 1.8.5
- /Users/yvon/bin/jruby/jruby # svn installed
# => 1.8.5 (0) [java]
both MacPort and SVN versions cohabit nicely because using zsh (shell)
aliases all commands of jruby have a "j" prefix and using a ~/.jgemrc
i'm able to switch env vars between them.
then, the prob, reason for posting here, come with the default installed
version.
here, when doing a :
$ /usr/bin/ruby wav2xml.rb bidule.wav # i get :
/usr/bin/ruby: No such file to load -- ubygems (LoadError)
i think this is due to some env vars i setup :
export RUBYOPT=rubygems
export GEM_HOME=/opt/local/lib/gems/1.8
export RUBYLIB=/opt/local/lib/ruby/:/opt/local/lib/ruby/site_ruby/1.8
because i've to design some scripts usable with apple's default version,
i'd like to find a workaround for that error message without installing
anything within Apple's ruby...
do you have a trick for that ?