After the installation of Erlang, the next dependency is ICU.

ICU is a set of libraries providing Unicode and Globalization support for software applications. It’s source-code is available from http://download.icu-project.org/files/icu4c/

Basics

root@test:~# cd /tmp/
root@test:/tmp#  wget http://download.icu-project.org/files/icu4c/4.8.1/icu4c-4_8_1-src.tgz
--2011-07-31 16:16:16--  http://download.icu-project.org/files/icu4c/4.8.1/icu4c-4_8_1-src.tgz
Connecting to download.icu-project.org|208.109.248.225|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18677882 (18M) [application/x-gzip]
Saving to: `icu4c-4_8_1-src.tgz'

100%[=======================================================>] 18,677,882   662K/s   in 29s

2011-07-31 16:16:45 (628 KB/s) - `icu4c-4_8_1-src.tgz' saved [18677882/18677882]

root@test:/tmp# tar xvf icu4c-4_8_1-src.tgz
Decompressing 'icu4c-4_8_1-src.tgz' with '/usr/bin/gzcat'...
x icu, 0 bytes, 0 tape blocks
x icu/license.html, 1981 bytes, 4 tape blocks
x icu/as_is, 0 bytes, 0 tape blocks
...
root@test:/tmp# cd icu/source/
root@test:/tmp/icu/source#

Preparations

The downloaded tar is a little bit faulty, therefore we need to fix the permissions of some files before we can configure and build ICU.

root@test:/tmp/icu/source# chmod +x runConfigureICU configure install-sh
root@test:/tmp/icu/source# PATH=/usr/bin:/usr/gcc/4.3/bin:$PATH
root@test:/tmp/icu/source# ./runConfigureICU Solaris/GCC --prefix=/opt/local
export CPP= CC=gcc CXX=g++ CPPFLAGS= CFLAGS= -O1 CXXFLAGS= -O3 LDFLAGS= MAKE=
Running ./configure  --prefix=/opt/local for SOLARIS using the GNU C++ compiler

checking for ICU version numbers... release 4.8.1, library 48.1, unicode version 6.0
...

root@test:/tmp/icu/source# ./configure --prefix=/opt/local
checking for ICU version numbers... release 4.8.1, library 48.1, unicode version 6.0
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
...

Building

If the config went flawless, we can proceed with the build-process.

root@test:/tmp/icu/source# gmake
rebuilding config/icucross.mk
cd ./config; \
                gmake -f pkgdataMakefile
gmake[1]: Entering directory `/tmp/icu/source/config'
rm -rf pkgdata.inc
...
root@test:/tmp/icu/source# gmake install
gmake[0]: Making `install' in `stubdata'
gmake[1]: Entering directory `/tmp/icu/source/stubdata'
/bin/sh ../mkinstalldirs /opt/local/lib
.././install-sh -c libicudata.so.48.1 /opt/local/lib

Next steps

After installing ICU, Part 3 of this guide will be about SpiderMonkey:
CouchDB on OpenSolaris: Part 3 – SpiderMonkey


Related Posts



3 Kommentare bis “CouchDB on OpenSolaris: Part 2 – ICU”

  1. [...] comes the tricky part of the installation. After the installation of ICU, the next dependency is the Mozilla JS [...]

  2. [...] the installation of the required software (Erlang, ICU and Spidermonkey) we can finally install CouchDB which is the easiest part of the whole [...]

  3. [...] on OpenSolaris: Part 1 – Erlang CouchDB on OpenSolaris: Part 2 – ICU CouchDB on OpenSolaris: Part 3 – Spidermonkey CouchDB on OpenSolaris: Part 4 – CouchDB [...]

Eine Antwort schreiben