I have searched the OpenSolaris forums for the past several hours, and visited 
a few dozen Google sites on installing Rails on OpenSolaris, without resolving 
this problem.

Perhaps I am not up on my game of IPS hacking yet, but if anyone is able to get 
a clean OpenSolaris 2008-05 system up running as a Ruby on Rails development 
platform, please give me a little nudge in the right direction.

% pfexec gem update
% pfexec gem install rails --include-dependencies

This works without error and installs rails 2.0.2 with all dependencies.

However, both [/usr/ruby/1.8/bin/rails] and [/usr/ruby/1.8/bin/rake] are 
installed with the wrong permissions:

% pfexec chmod a+rx /usr/ruby/1.8/bin/rails /usr/ruby/1.8/bin/rake

...and their links are not created in [/usr/bin]:

% cd /usr/bin && pfexec ln -s ../ruby/1.8/bin/rails rails && pfexec ln -s 
../ruby/1.8/bin/rake rake

However, even after this is done, most of the files in [/var/ruby/1.8/gem_home] 
seem to have incorrect permissions.  Please correct me if I'm wrong.

% pfexec chmod -R a+r /var/ruby/1.8/gem_home/*

Dispite all the above changes, when I execute the following, I get an error:

% cd ~ && rails test
/usr/bin/rails:16:in `load': no such file to load -- rails (LoadError)
        from /usr/bin/rails:16

Indeed, line 16 of the [/usr/bin/rails --> /usr/ruby/1.8/bin/rails] ends with a 
command to [load 'rails'].

By the way, I have installed the following IPS packages to get started, but 
there may be one that I'm missing.  (This list is not all inclusive.)

gcc-dev
ss-dev
java-dev
netbeans
ruby-dev
sunstudioexpress
webstackui


Thanks in advance,
Karrick
opensolaris (at) karrick (dot) net
This message posted from opensolaris.org


Reply via email to