Oracle Blog

Prashant Srinivasan's Weblog

Wednesday Apr 29, 2009

Here's an SMF manifest for Nginx. You'll need to tweak it for your location of Nginx. You can create an nginx user and group to run the web server as(highly recommended), or tweak my script to run as root(please don't do this).

Monday Apr 27, 2009

I just noticed that git is available in the OpenSolaris dev repository. No more compiling from source. Very cool. All the volunteer work done to spruce up FOSS support in the OSOL community is paying off.

You can either get it by running "pkg image-update" on your OpenSolaris instance, or wait for the Ruby on Rails EC2 image which I'm creating right now, to get a preconfigured set of tools, gems, web servers etc.,

This raised questions about whether an image update was necessary just to update Ruby, which is a well behaved application with no direct ties to operating system internals.

The answer, quite simply, is a YES. This applies to any application that is provided by the main OpenSolaris (or dev) repositories, not just Ruby. One can only update the application to a level of the package that is delivered on the build of the OS that one is running.

gmake 3.81 is installed, and this was built on build 101 of Solaris Nevada (build 101 is the value that corresponds to the "Branch" tag).

Now, what this means is that one will not be able to update gmake to a version higher than the one bundled with build 101 without running "pkg image-update". In this case, that is gmake version 3.81.

Updating individual packages is possible with the IPS framework, and that means that non Sun packages can be updated. The packages that are delivered by Sun, however, cannot be updated thus. These packages are listed as dependencies for the meta-package called "entire". "entire" imposes the restriction on what build number a package could be updated to.

The IPS team is working on loosening this (reboot required) restriction. But until then, please point your pkg command to http://pkg.opensolaris.org/dev (by uttering pkg set-authority -O http://pkg.opensolaris.org/dev opensolaris.org ) and then say " pkg image-update ".

This will bring up Ruby 1.8.7p72 and Rubygems 1.3.1. There is work happening to make Rails available too. stay tuned.