S3Sync.net

General Category => Questions => Topic started by: s3sync-newbie on January 13, 2008, 04:25:19 AM



Title: Help needed: "no such file to load -- iconv (LoadError)"
Post by: s3sync-newbie on January 13, 2008, 04:25:19 AM
Hello,

I'm a newbie to s3sync, and I need your help.

When I try to run s3sync.rb on my FreeBSD machine - I get the following error message. Do you have any advice on how I can address this? Thanks in advance!
------------------------
./S3encoder.rb:17:in `require': no such file to load -- iconv (LoadError)
        from ./S3encoder.rb:17
        from ./s3try.rb:24:in `require'
        from ./s3try.rb:24
        from ./s3sync.rb:22:in `require'
        from ./s3sync.rb:22


Title: Re: Help needed: "no such file to load -- iconv (LoadError)"
Post by: ferrix on January 13, 2008, 01:47:37 PM
Get newer ruby?


Title: Re: Help needed: "no such file to load -- iconv (LoadError)"
Post by: tangent35205 on January 14, 2010, 04:14:00 PM
I am having a similar problem:

S3encoder.rb:17:in `require': no such file to load -- iconv (LoadError)
   from /usr/home/boatrv/backup/s3sync/S3encoder.rb:17:in `<top (required)>'
   from /usr/home/boatrv/backup/s3sync/s3try.rb:29:in `require'
   from /usr/home/boatrv/backup/s3sync/s3try.rb:29:in `<module:S3sync>'
   from /usr/home/boatrv/backup/s3sync/s3try.rb:10:in `<top (required)>'
   from s3sync.rb:25:in `require'
   from s3sync.rb:25:in `<module:S3sync>'
   from s3sync.rb:11:in `<main>'

I am using the current version of Ruby (1.9.1).  Can anyone offer any insight?


Title: Re: Help needed: "no such file to load -- iconv (LoadError)"
Post by: falk0069 on January 15, 2010, 09:34:57 PM
Found this on a different forum:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

hope it works for you.


Title: Re: Help needed: "no such file to load -- iconv (LoadError)"
Post by: tangent35205 on January 17, 2010, 08:14:45 PM
All is well now.  I had to contact our hosting provider (I didn't have the grants to make any changes) and we eventually got it straightened out.  Here is what they told me:
One of our administrators looked into this further. They noticed that this is a problem with iconv.so, which is a FreeBSD port that Ruby was looking for. We already have that port installed at /usr/local/lib/ruby/1.8/i386-freebsd7/, but Ruby was looking for it in /usr/local/lib/ruby/1.8/i386-freebsd7.2/.

He copied that port over to the location that Ruby was looking for, and was able to run "./s3sync.rb --help" within your account. You may want to try running this again now.