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

评论:

I just used the packages from http://dlc.sun.com/osol/companion/downloads/current/pkgs/i386/SFWrline.pkg.bz2 for readline and http://dlc.sun.com/osol/companion/downloads/current/pkgs/i386/SFWruby.pkg.bz2 for ruby itself.

发表于 Ben 在 2007年05月30日, 05:18 上午 CST #

Ben, yes you can, however, the version in dlc.sun.com is 1.8.5 :(.

发表于 Yong Sun 在 2007年05月30日, 10:44 上午 CST #

发表一条评论:
该日志评论功能被禁用了。

This blog copyright 2009 by yongsun