Jun08
2007

If you are using the Solaris CoolStack edition of Ruby (CSKruby) with Sun Studio 11 (SUNWspro) then you may need to make a small change to one of the Ruby configuration files to tell it where Sun Studio is installed. I would have have expected the installer for the Ruby package to detect this but, alas, it does not.

In my case, this problem will only manifested itself when I attempted to install some platform-specific Ruby Gems packages (hpricot, fastthreads, mongrel).
To remedy this problem:

  1. Edit the file /opt/coolstack/lib/ruby/1.8/sparc-solaris2.10/rbconfig.rb
  2. Search for all instances of SUNWspro and change to the correct location
  3. Save the file and repeat your “gem install” command

2 Responses to “Solaris CoolStack, Sun Studio and Ruby”

  1. Martello » Apache + Mongrel on Solaris Says:

    [...] The above command will attempt to compile and install some native code and requires a C compiler. If you are using Sun Studio, you should also read my other post regarding Ruby and Sun Studio. [...]

  2. Tobias Says:

    hi, just wanted to say ty for pointing me to rbconfig.rb which on my solaris system is completely bogus for building native extensions with studio11. unfortunately there seems to be a lot more wrong than the path to cc. :(

Leave a Reply

Calendar

June 2007
M T W T F S S
« May   Jul »
 123
45678910
11121314151617
18192021222324
252627282930