Build ruby-1.8.6 on solaris nevada with SunStudio 11

My colleague, and the co-translator of "Programming Ruby 2nd" Chinese version, Yandong Yao, posted a blog entry about building ruby-1.8.6 on solaris express. It's really nice, and I'd like to add two more hints basing on his post:

1. build and install GNU readline-5.2

$ ./configure --prefix=/usr; make
# make install

2. apply the following patch to ruby-1.8.6/configure.in


diff -urp ruby-1.8.6.orig/configure.in ruby-1.8.6/configure.in

--- ruby-1.8.6.orig/configure.in        2007-02-28 21:23:42.000000000 +0800
+++ ruby-1.8.6/configure.in     2007-05-28 10:19:59.825226000 +0800
@@ -455,7 +455,7 @@ bow)                ac_cv_func_setitimer=no
                ;;
 superux*)     ac_cv_func_setitimer=no
               ;;
-solaris*2.10)  if test -z "$GCC"; then
+solaris*2.1*)  if test -z "$GCC"; then
                       ac_cv_func_isinf=yes
               fi
                LIBS="-lm $LIBS"

Then build and install:

$ autoconf
$ ./configure --prefix=/usr --enable-pthread --enable-install-doc \
              --enable-shared; make
# make install

2 thoughts on “Build ruby-1.8.6 on solaris nevada with SunStudio 11

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha