Re:Compiling Ruby, RubyGems, and Rails on Snow Leopard
by nudded on Monday August 31, 2009 @09:58AM
(#795899)
i don't see a difference between /opt and /usr/local , I just think it's a matter of preference
[ Parent
| on HN ]
Re:Compiling Ruby, RubyGems, and Rails on Snow Leopard
by sant0sk1 on Monday August 31, 2009 @10:04AM
(#795914)
The difference is stuff installed in /opt is encapsulated inside its own folder, whereas everything in /usr/local is shared (one bin dir, one lib dir, etc).
So if I want to uninstall Ruby from /opt I do something like this:
rm -rf /opt/ruby-1.8.7
To uninstall Ruby from /usr/local is a lot more work.
Re:Compiling Ruby, RubyGems, and Rails on Snow Leopard
by nudded on Monday August 31, 2009 @10:14AM
(#795930)
you could actually do the same in /usr/local. all you need to do is install all packages to their own folder (eg /usr/local/custom/ruby-1.8.7) and then symlink the binary to /usr/local/bin.
http://github.com/mxcl/homebrew/tree/ is a package manager that tries to do just that
Re:Compiling Ruby, RubyGems, and Rails on Snow Leopard
by tsally on Monday August 31, 2009 @10:48AM
(#796001)
Seems like you might as well do it in opt then, since it is far less common to encapsulate things in folders in local.