SaltedHashLoginGenerator no such file to load -- iconv

Yep,

I too have just bumped into this issue.

I see it on a freebsd box:

bash jake oracle /usr/local 12 $ uname -a FreeBSD jake.host.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Tue Nov 1 05:56:17 CST 2005 northtron@jake.host.com:/usr/src/sys/i386/compile/JAKE i386 bash jake oracle /usr/local 13 $

I compared my bsd box to my Mac:

bash jake oracle ~/o 24 $ find . -print|grep iconv

./lib/ruby/1.8/xsd/iconvcharset.rb bash jake oracle ~/o 25 $ which ruby

/home/oracle/o/bin/ruby bash jake oracle ~/o 26 $ ruby -v

ruby 1.8.4 (2005-12-24) [i386-freebsd5.3]

bash jake oracle ~/o 27 $ bash jake oracle ~/o 27 $

bash jake oracle ~/o 27 $ irb

irb(main):001:0> require ‘iconv’ LoadError: no such file to load – iconv

    from (irb):1:in `require'
    from (irb):1

irb(main):002:0>

irb(main):003:0* quit bash jake oracle ~/o 28 $

bash maco-mois-powerbook-g4-17 maco /r 1 $ find . -print|grep iconv

./lib/ruby/1.8/doc/files/xsd/iconvcharset_rb.html

./lib/ruby/1.8/powerpc-darwin8.7.0/iconv.bundle ./lib/ruby/1.8/xsd/iconvcharset.rb

./share/ri/1.8/system/Iconv/iconv-c.yaml

./share/ri/1.8/system/Iconv/iconv-i.yaml bash maco-mois-powerbook-g4-17 maco /r 2 $ which ruby

/r/bin/ruby bash maco-mois-powerbook-g4-17 maco /r 3 $ ruby -v

ruby 1.8.4 (2005-12-24) [powerpc-darwin8.7.0]

bash maco-mois-powerbook-g4-17 maco /r 4 $ bash maco-mois-powerbook-g4-17 maco /r 4 $ bash maco-mois-powerbook-g4-17 maco /r 4 $ irb

irb(main):001:0> require ‘iconv’ require ‘iconv’

=> true

irb(main):002:0> quit bash maco-mois-powerbook-g4-17 maco /r 5 $

It looks like my Mac has some kind of iconv special sauce on it. I assume it was put there when I installed ruby.

I’d like to find the said sauce for my freebsd beastie.

-Dan

ok,

I found the magic sauce.

It’s actually on my beastie box

It’s here: /usr/ports/converters/ruby-iconv

If you are new to FreeBSD [ like me ], /usr/ports/ is loaded up with a bunch of software which you can install.

Usually software I find there installs cleanly with a simple make make install

So, I installed ruby-iconv and now require ‘iconv’ returns true rather than an exception.

-Dan