Ruby integrated into OpenSolaris
As of Nevada build 78, Ruby 1.86 and friends (irb, rdoc, ri,and gem) are first-class citizens of Solaris Nevada, thanks to the PSARC/2007/600 project team. No more needing to go through a lot of this, to get a Solaris Ruby (and Rails) environment up and running. Together with JRuby, NetBeans, and DTrace support for Ruby, the Solaris Ruby infrastructure just got even better.
Although Rails seems to get more than its fair share of the Ruby publicity pie, Ruby itself has all sorts of applications including System Administration, Numerical Analysis, and Desktop programming
The $PATH modification below is a workaround so that your gems can be found after they are installed. Hopefully this step will no longer be needed in a future release.
-bash-3.2$ uname -a
SunOS sopchoppy 5.11 snv_78 sun4u sparc SUNW,Sun-Blade-100
-bash-3.2$ ruby -v
ruby 1.8.6 (2007-09-23 patchlevel 110) [sparc-solaris2.11]
-bash-3.2$ PATH=$PATH:/usr/ruby/1.8/bin
# gem install rake
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rake-0.7.3
Installing ri documentation for rake-0.7.3...
Installing RDoc documentation for rake-0.7.3...
# gem install rails --include-dependencies
Successfully installed rails-1.2.6
Successfully installed activesupport-1.4.4
Successfully installed activerecord-1.15.6
Successfully installed actionpack-1.13.6
Successfully installed actionmailer-1.3.6
Successfully installed actionwebservice-1.2.6
Installing ri documentation for activesupport-1.4.4...
Installing ri documentation for activerecord-1.15.6...
Installing ri documentation for actionpack-1.13.6...
Installing ri documentation for actionmailer-1.3.6...
Installing ri documentation for actionwebservice-1.2.6...
Installing RDoc documentation for activesupport-1.4.4...
Installing RDoc documentation for activerecord-1.15.6...
Installing RDoc documentation for actionpack-1.13.6...
Installing RDoc documentation for actionwebservice-1.2.6...
-bash-3.2$ rails hello-world
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create components
create db
create doc
.
.
.
Posted at 12:16PM Nov 29, 2007 by Peter Schow in Sun | Comments[2]
Awesome, congratulations to the team.
Are you saying you have the DTrace probes enabled in this Ruby package?
Posted by Dick Davies on November 30, 2007 at 03:46 AM MST #
Hi Dick, no this Ruby doesn't have embedded DTrace probes. I'll find out if we do that for our shipped version of Python. This is certainly a great RFE.
Posted by Pete on November 30, 2007 at 01:21 PM MST #