Ruby Enterprise Edition on FreeBSD
ruby | (0)
Tonight I was installing Ruby Enterprise Edition on FreeBSD old.stupid and I ran into a problem. I was including ActiveSupport to get the Hash.from_xml() function (really good if you need just a dirty hash from some xml you got) and every time I would require 'active_support' i would get
...custom_require.rb:31:in `gem_original_require': no such file to load -- iconv (LoadError)
If you ever have to install Ruby Enterprise Edition on FreeBSD, you may run into the same problem. What I had to do was.
[sourcecode language=sh] cd ruby-enterprise-1.8.6-20090421/source/ext/iconv
/opt/ruby-enterprise/bin/ruby extconf.rb --prefix=/opt/ruby-enterprise --with-iconv-dir=/usr/local/
cp iconv.so /opt/ruby-enterprise/lib/ruby/1.8/i386-freebsdx.x/
[/sourcecode]
That should get you running without having to reinstall Ruby Enterprise Edition. Why ...