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"; thenac_cv_func_isinf=yesfiLIBS="-lm $LIBS"
Then build and install:
$ autoconf
$ ./configure --prefix=/usr --enable-pthread --enable-install-doc \
--enable-shared; make
# make install


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