Wayne,
> Additionally, I recommend using 1.9.2-head instead of preview1
> as it has far less bugs / pain points.
Yeah, I switched after seeing "[BUG] rb_add_method: unsupported method
type (8)" ;)
To be clear why I prefer to share root installed rubies and gems.
I have a small server which (will) hosts several rails apps dependent
on different version of rubies. (Yeah, I should use one ruby for a
server, but...)
I seldom maintain those apps on the server as a user. It seems natural using
same set of ruby and gems (at least for me).
Anyway,
after a while I posted, I found an improved way as you mentioned of .rvmrc.
My version of .rvmrc is:
rvm_rubies_path=/usr/local/rvm/rubies
rvm_gems_path=/usr/local/rvm/gems
with this settings and an extra process I got root installed rubies as a user.
The extra process is
(cd ~/.rvm/bin && ln -s /usr/local/rvm/bin/ruby-head ruby-head)
just after
rvmsudo rvm install ruby-head
.
I rather content with the result of it, but if you ask me what cause
the last symlink.
At a line of the file rvm/script/symlink;
ln -fs "$rvm_bin_path/$rvm_ruby_string" "$rvm_bin_path/${flag}_ruby"
for binary in gem irb rake ; do
ln -fs "$rvm_ruby_home/bin/${binary}" "$rvm_bin_path/${flag}_${binary}"
done
Why not:
for binary in ruby gem irb rake ; do
ln -fs "$rvm_ruby_home/bin/${binary}" "$rvm_bin_path/${flag}_${binary}"
done
Anyway, thanks for the greatness of RVM!
--
齋藤 宏
Hiroshi Saito
hiros...@gmail.com
http://blog.yakitara.com/
http://github.com/hiroshi
http://www.linkedin.com/pub/hiroshi-saito/8/aab/260