Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2180

Re: Ruby Newbie...

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!talisker.lacave.net!lacave.net!not-for-mail
From Stu <stu@rubyprogrammer.net>
Newsgroups comp.lang.ruby
Subject Re: Ruby Newbie...
Date Sun, 3 Apr 2011 01:38:01 -0500
Organization Service de news de lacave.net
Lines 128
Message-ID <BANLkTimcT5C84KjGLbYod70oG5EY6AVbwg@mail.gmail.com> (permalink)
References <4D810DB9.9050702@geekazoid.com> <4D977616.4070705@geekazoid.com>
NNTP-Posting-Host bristol.highgroove.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding Quoted-printable
X-Trace talisker.lacave.net 1301812695 84525 65.111.164.187 (3 Apr 2011 06:38:15 GMT)
X-Complaints-To abuse@lacave.net
NNTP-Posting-Date Sun, 3 Apr 2011 06:38:15 +0000 (UTC)
In-Reply-To <4D977616.4070705@geekazoid.com>
X-Received-From This message has been automatically forwarded from the ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did not originate at comp.lang.ruby. Please report the original sender, and not us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count 380827
X-Ml-Name ruby-talk
X-Rubymirror Yes
X-Ruby-Talk <BANLkTimcT5C84KjGLbYod70oG5EY6AVbwg@mail.gmail.com>
Xref x330-a1.tempe.blueboxinc.net comp.lang.ruby:2180

Show key headers only | View raw


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!  I am attempting to install Jobsworth on FreeBSD 8.1-RELEASE
> (amd64).  It requires Ruby 1.9.x.
>
> I attempted to install Ruby and applicable gems via the FreeBSD ports
> collection.  Suffice to say that this procedure did not work.  :-)  My next
> 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).  The only way I could get Step 5
> (Ruby gems) to complete was to run the command as root although the
> 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)
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json/common.rb:2:in
> `<top (required)>'
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json.rb:1:in
> `require'
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json.rb:1:in `<top
> (required)>'
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:68:in
> `require'
>        from
> /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'
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in
> `each'
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:66:in
> `block in require'
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in
> `each'
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runtime.rb:55:in
> `require'
>        from
> /usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler.rb:120:in
> `require'
>        from /usr/local/www/jobsworth/config/application.rb:7:in `<top
> (required)>'
>        from <internal:lib/rubygems/custom_require>:29:in `require'
>        from <internal:lib/rubygems/custom_require>:29:in `require'
>        from /usr/local/www/jobsworth/config/environment.rb:2:in `<top
> (required)>'
>        from <internal:lib/rubygems/custom_require>:29:in `require'
>        from <internal:lib/rubygems/custom_require>:29:in `require'
>        from setup.rb:181:in `<main>'
>
> 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.  I
> 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.  I fear I am missing something simple.  Alas, I have zero
> Ruby experience prior to this project.  Any assistance would be greatly
> appreciated!!!  :-)
>
> Thank You In Advance!
>
> glenn
>
>

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Ruby Newbie... Glenn <hgic@geekazoid.com> - 2011-04-02 14:26 -0500
  Re: Ruby Newbie... Stu <stu@rubyprogrammer.net> - 2011-04-03 01:38 -0500
    Re: Ruby Newbie... Glenn <hgic@geekazoid.com> - 2011-04-03 05:29 -0500
      Re: Ruby Newbie... Stu <stu@rubyprogrammer.net> - 2011-04-03 14:58 -0500

csiph-web