From owner-freebsd-questions@FreeBSD.ORG Sun Sep 10 15:57:31 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9BAD16A415 for ; Sun, 10 Sep 2006 15:57:31 +0000 (UTC) (envelope-from dan.bikle@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id C219543D49 for ; Sun, 10 Sep 2006 15:57:30 +0000 (GMT) (envelope-from dan.bikle@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so1306173wxd for ; Sun, 10 Sep 2006 08:57:30 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=mQOcBRWhifymPkNQtuoBPeTNhNzu2b/niNDFITHYCjJLSk71u+/rd5pxfRNIEjy5kegDFPeyeKAb/KtJ9wfb1IWIRLD+tK0n1SJCmRTTUC6iuSeMy0qwZrvDrVISDsugpcckOmh0Uk3tpnWKDPnvkBlNZND3p5O91nnNRXZmk0o= Received: by 10.90.100.2 with SMTP id x2mr1334079agb; Sun, 10 Sep 2006 08:57:29 -0700 (PDT) Received: by 10.90.86.4 with HTTP; Sun, 10 Sep 2006 08:57:29 -0700 (PDT) Message-ID: <74252ed10609100857l312bf1cfqf324d000704e2b62@mail.gmail.com> Date: Sun, 10 Sep 2006 08:57:29 -0700 From: "Dan Bikle" To: "ruby-talk ML" , rubyonrails-talk@googlegroups.com, freebsd-questions@freebsd.org In-Reply-To: <74252ed10609091048q40bdb8ble20c7e65130fef7b@mail.gmail.com> MIME-Version: 1.0 References: <89e058bd07bdb796dde816832ab7f08c@example.com> <74252ed10609091048q40bdb8ble20c7e65130fef7b@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: [Rails] SaltedHashLoginGenerator no such file to load -- iconv X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Sep 2006 15:57:31 -0000 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 On 9/9/06, Dan Bikle wrote: > > 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 > > > On 8/16/06, Elliott Blatt wrote: > > > > Hi, > > > > I'm trying to use the SaltedHashLoginGenerator as documented on > > http://wiki.rubyonrails.com/rails/pages/SaltedHashLoginGenerator > > > > Ruby version: ruby 1.8.4 (2005-12-24) [i386-openbsd3.9] > > > > I've the following commands: > > > > gem install salted_login_generator > > gem install localization_generator > > rails myapp > > cd myapp > > ruby script/generate salted_login User Localization > > > > All ran successfully. > > I then created the databases and schema, without incident. > > In theory, I should be able to hit my server: > > > > http://my.host.com:3000/user ..... > > > > Doing so, throws an error page in my face: > > +----------------------------------- > > + MissingSourceFile > > + > > + no such file to load -- iconv > > +------------------------------------ > > > > There are many posts out there conerning this missing dependency for > > windows, but none for *NIX. > > > > What is iconv and where is it missing from? ruby? rails? > > > > In either case, where do I get said file? > > > > > > > > > > > > > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > >