Jun08
2007
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:
- Edit the file /opt/coolstack/lib/ruby/1.8/sparc-solaris2.10/rbconfig.rb
- Search for all instances of SUNWspro and change to the correct location
- Save the file and repeat your “gem install” command
June 8th, 2007 at 3:37 pm
[...] 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. [...]
February 15th, 2008 at 7:47 pm
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.