use rvm over ports for something like this. works well in jails in
freebsd as well.

On Sat, Apr 2, 2011 at 2:26 PM, Glenn <hgic / geekazoid.com> wrote:
> Good Day!       Ӹ> (amd64).    
>
> I attempted to install Ruby and applicable gems via the FreeBSD ports
> collection.      뭩  
> step was RTFM...
>
> In following the instructions at https://github.com/ari/jobsworth#readme
> <http://www.google.com/url?sa=D&q=https://github.com/ari/jobsworth%23readme>
> , I was able to get much further in the installation process!
>
> I was able to get to Step 5 (Ruby gems).           > instructions wanted the commands run as my Apache user.
>
> When I run Step 6 (Setup configuration and database) and initialize the
> database schema, I get:
> Initialize database schema [n]: y
> Initializing database schema
> (in /usr/local/www/jobsworth)
> rake aborted!
> no such file to load -- iconv
> /usr/local/www/jobsworth/Rakefile:4:in `<top (required)>'
> (See full trace by running task with --trace)
> (in /usr/local/www/jobsworth)
> rake aborted!
> no such file to load -- iconv
> /usr/local/www/jobsworth/Rakefile:4:in `<top (required)>'
> (See full trace by running task with --trace)
>
> Loading Rails to create account...
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json/common.rb: 2:in
> `require': no such file to load -- iconv (LoadError)
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json/common.rb:2:in
> `<top (required)>'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json.rb:1:in
> `require'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json.rb:1:in `<top
> (required)>'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in
> `require'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in
> `block (2 levels) in require'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in
> `each'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in
> `block in require'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in
> `each'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in
> `require'
>  > /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler.rb:120:in
> `require'
>  > (required)>'
>  >  >  > (required)>'
>  >  >  ⺱
>
> I have attempted:
>
> http://exceptionz.wordpress.com/2010/02/03/how-to-fix-the-iconv-require-error-in-ruby-1-9/
>
> http://www.v25media.com/blog/read/forcing_ruby_1_9_2_via_rvm_to_use_iconv
>
> http://blog.dev001.net/post/2436585997/installing-iconv-using-bundler-on-freebsd
>
> Each of these refer to installing ruby using the --with-iconv-dir option.A0I
> have tried the following commands after 'rvm package install iconv':
>
> rvm install --trace 1.9.2 -C
> --with-iconv-dir=/usr/local/rvm/src/libiconv-1.13.1
>
> rvm install --trace 1.9.2 -C --with-iconv-dir=$HOME/.rvm/usr
>
> rvm install --trace 1.9.2 --C --with-iconv-dir=/usr/local/lib
>
> None have worked.        
> Ruby experience prior to this project.     > appreciated!!! -)
>
> Thank You In Advance!
>
> glenn
>
>