Thread: iLiad Ruby 1.8.5 for iLiad
View Single Post
Old 01-13-2009, 05:41 AM   #14
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Some more ticks about not installing in /usr/local...

Quote:
Originally Posted by -Thomas- View Post
  • [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.

PS: http://www.zenspider.com/Languages/Ruby/QuickRef.html is a nice quick reference for Ruby
hansel is offline   Reply With Quote