Originally Posted by -Thomas-
- [reasons to install in /usr/local]
- (just a minor one) Compiling is much easier. Just do a ./configure --prefix=/usr/local and let preinstall do the rest
If you compile Ruby (or Lua; same issue) for /usr/local, and copy the whole tree to another location, it will have problems to find its libraries. HOWEVER
this can be repaired (very probably, no time to test now for Ruby) at runtime by setting some enviroment variables.
For Ruby these are:
- DLN_LIBRARY_PATH: Search path for dynamically loaded modules.
- RUBYLIB: Additional search paths.
- RUBYPATH: With -S, searches PATH, or this value for ruby programs.
is a nice quick reference for Ruby