Ruby Newbie...

G

Glenn

[Note: parts of this message were removed to make it a legal post.]

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#readme>
, 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
 
S

Stu

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

Good Day! =A0I am attempting to install Jobsworth on FreeBSD 8.1-RELEASE
(amd64). =A0It requires Ruby 1.9.x.

I attempted to install Ruby and applicable gems via the FreeBSD ports
collection. =A0Suffice to say that this procedure did not work. =A0:) = =A0My next
step was RTFM...

In following the instructions at https://github.com/ari/jobsworth#readme
<http://www.google.com/url?sa=3DD&q=3Dhttps://github.com/ari/jobsworth#= readme>
, I was able to get much further in the installation process!

I was able to get to Step 5 (Ruby gems). =A0The 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)
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json/common.rb:2:= in
`<top (required)>'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json.rb:1:in
`require'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json.rb:1:in `<to= p
(required)>'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runti= me.rb:68:in
`require'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runti= me.rb:68:in
`block (2 levels) in require'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runti= me.rb:66:in
`each'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runti= me.rb:66:in
`block in require'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runti= me.rb:55:in
`each'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/runti= me.rb:55:in
`require'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler.rb:12= 0:in
`require'
=A0 =A0 =A0 =A0from /usr/local/www/jobsworth/config/application.rb:7:in `= <top
(required)>'
=A0 =A0 =A0 =A0from <internal:lib/rubygems/custom_require>:29:in `require= '
=A0 =A0 =A0 =A0from <internal:lib/rubygems/custom_require>:29:in `require= '
=A0 =A0 =A0 =A0from /usr/local/www/jobsworth/config/environment.rb:2:in `= <top
(required)>'
=A0 =A0 =A0 =A0from <internal:lib/rubygems/custom_require>:29:in `require= '
=A0 =A0 =A0 =A0from <internal:lib/rubygems/custom_require>:29:in `require= '
=A0 =A0 =A0 =A0from setup.rb:181:in `<main>'

I have attempted:

http://exceptionz.wordpress.com/2010/02/03/how-to-fix-the-iconv-require-e= rror-in-ruby-1-9/
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=3D/usr/local/rvm/src/libiconv-1.13.1

rvm install --trace 1.9.2 -C --with-iconv-dir=3D$HOME/.rvm/usr

rvm install --trace 1.9.2 --C --with-iconv-dir=3D/usr/local/lib

None have worked. =A0I fear I am missing something simple. =A0Alas, I hav= e zero
Ruby experience prior to this project. =A0Any assistance would be greatly
appreciated!!! =A0:)

Thank You In Advance!

glenn
 
G

Glenn

Thank You for your time Stu. I am using rvm instead of ports. rvm
seems to be a bit more flexible...

I wound up using the following command to install ruby with iconv:

rvm install --trace 1.9.2 -C --with-iconv-dir=/usr/local/rvm/usr

Thank you again for your assistance.

glenn



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

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#readme>
, 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
 
S

Stu

I use the system iconv from the ports which seems to work better than
rvm. Is rvm's iconv work better with the dir change? I will be
providing wayne notes for freebsd when I have the time. So is your
issue fixed? was the --trace 1.9.2 -C
--with-iconv-dir=3D/usr/local/rvm/usr the fix?

Thank You for your time Stu. =A0I am using rvm instead of ports. =A0rvm s= eems to
be a bit more flexible...

I wound up using the following command to install ruby with iconv:

rvm install --trace 1.9.2 -C --with-iconv-dir=3D/usr/local/rvm/usr

Thank you again for your assistance.

glenn



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

Good Day! =A0I am attempting to install Jobsworth on FreeBSD 8.1-RELEAS= E
(amd64). =A0It requires Ruby 1.9.x.

I attempted to install Ruby and applicable gems via the FreeBSD ports
collection. =A0Suffice to say that this procedure did not work. =A0:) = =A0My
next
step was RTFM...

In following the instructions at https://github.com/ari/jobsworth#readm= e

<http://www.google.com/url?sa=3DD&q=3Dhttps://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). =A0The only way I could get St= ep 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)
=A0 =A0 =A0 =A0from

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json/common.rb:= 2:in
`<top (required)>'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json.rb:1:in
`require'
=A0 =A0 =A0 =A0from
/usr/local/rvm/gems/ruby-1.9.2-p180/gems/json-1.4.6/lib/json.rb:1:in
`<top
(required)>'
=A0 =A0 =A0 =A0from

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/run= time.rb:68:in
`require'
=A0 =A0 =A0 =A0from

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/run= time.rb:68:in
`block (2 levels) in require'
=A0 =A0 =A0 =A0from

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/run= time.rb:66:in
`each'
=A0 =A0 =A0 =A0from

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/run= time.rb:66:in
`block in require'
=A0 =A0 =A0 =A0from

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/run= time.rb:55:in
`each'
=A0 =A0 =A0 =A0from

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/run= time.rb:55:in
`require'
=A0 =A0 =A0 =A0from

/usr/local/rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler.rb:= 120:in
`require'
=A0 =A0 =A0 =A0from /usr/local/www/jobsworth/config/application.rb:7:in= `<top
(required)>'
=A0 =A0 =A0 =A0from<internal:lib/rubygems/custom_require>:29:in `requir= e'
=A0 =A0 =A0 =A0from<internal:lib/rubygems/custom_require>:29:in `requir= e'
=A0 =A0 =A0 =A0from /usr/local/www/jobsworth/config/environment.rb:2:in= `<top
(required)>'
=A0 =A0 =A0 =A0from<internal:lib/rubygems/custom_require>:29:in `requir= e'
=A0 =A0 =A0 =A0from<internal:lib/rubygems/custom_require>:29:in `requir= e'
=A0 =A0 =A0 =A0from 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_ico= nv


http://blog.dev001.net/post/2436585997/installing-iconv-using-bundler-o= n-freebsd

Each of these refer to installing ruby using the --with-iconv-dir optio= n.
=A0I
have tried the following commands after 'rvm package install iconv':

rvm install --trace 1.9.2 -C
--with-iconv-dir=3D/usr/local/rvm/src/libiconv-1.13.1

rvm install --trace 1.9.2 -C --with-iconv-dir=3D$HOME/.rvm/usr

rvm install --trace 1.9.2 --C --with-iconv-dir=3D/usr/local/lib

None have worked. =A0I fear I am missing something simple. =A0Alas, I h= ave
zero
Ruby experience prior to this project. =A0Any assistance would be great= ly
appreciated!!! =A0:)

Thank You In Advance!

glenn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top