Recently, trying to run some of my crutches (the Ruby thingies I use to help me sysadmining) under RVM, I've found that require 'iconv' doesn't work. Since I knew it's working in standard lang/ruby18 and lang/ruby19 ports I started to search where is the trap and have found that. Here's how.
- rvm installed
- system ruby installed
- libiconv port installed
$ rvm use system$ rvm install 1.9.2 -C --with-iconv-dir=/usr/local
$ rvm use 1.9.2
$ irb
ruby-1.9.2-p290 :001 > require 'iconv'
=> true
The same way you can build iconv'ed 1.8.7. DO NOT do this with Rubinius (rbx) because it builds with correct iconv'ification out of the box.
This gist just saved one sunday afternoon. Thanks!