Date: Wed, 16 Mar 2011 13:50:07 -0700 From: Stanislav Sedov <stas@FreeBSD.org> To: Glenn <hgic@geekazoid.com> Cc: freebsd-ruby@freebsd.org Subject: Re: Ruby Newbie... Message-ID: <20110316135007.c7254a72.stas@FreeBSD.org> In-Reply-To: <4D810DB9.9050702@geekazoid.com> References: <4D810DB9.9050702@geekazoid.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 16 Mar 2011 12:21:29 -0700 Glenn <hgic@geekazoid.com> mentioned: > 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 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 #2 from > http://exceptionz.wordpress.com/2010/02/03/how-to-fix-the-iconv-requi... > <http://www.google.com/url?sa=D&q=http://exceptionz.wordpress.com/2010/02/03/how-to-fix-the-iconv-require-error-in-ruby-1-9/> > > . > > I have attempted > http://blog.dev001.net/post/2436585997/installing-iconv-using-bundler... > <http://www.google.com/url?sa=D&q=http://blog.dev001.net/post/2436585997/installing-iconv-using-bundler-on-freebsd> > > Neither has worked. I fear I am missing something simple. Alas, I > have zero Ruby experience prior to this project. Any assistance would > be greatly appreciated!!! :-) > It seems it missed the iconv library. Try installing it from converters/ruby-iconv. Also, if you're using ruby 1.9 set RUBY_VER to 1.9 when installing anything from ports. (e.g. via make variable, or put RUBY_VER=1.9 to the /etc/make.conf). -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110316135007.c7254a72.stas>