Compiling PostgreSql 9.0 on Sparc Solaris (64 bit)

From: Gerrit Seré <yerrysherry(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org, hs(at)cybertec(dot)at
Subject: Compiling PostgreSql 9.0 on Sparc Solaris (64 bit)
Date: 2010-11-03 11:00:35
Message-ID: AANLkTin8kEBFgwJf_a-rtTYiwoVDh7vc+0Uh0N-13biE@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

Hallo

A few weeks ago, we saw questions on the mailing list about compiling
PostgreSql on Solaris Sparc. Compiling on Solaris is always an adventure. It
took us nearly a 2 weeks for compiling and making a package for PostgreSql
and Postgis.

We heavily use spare zones. That's one of the reasons why we deploy our
binaries in the folder "/opt" and not in "/usr", which is the most of the
time the standard.

Before you begin:

- make a full zone

- install the 2 compilers sunstudio and gcc. gcc is only needed when you
want to compile postgis.

/opt/sunstudio12.1/READMEs# cat c

Sun Studio 12 Update 1: C Compiler Readme

….

/export/packages/postgres/postgresql-9.0.1-01/01_scripts# gcc --version

gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

Copyright (C) 2004 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

--> package: SUNWgcc

For Postgres (version 9.0.1)

------------------

- mkdir /export/packages/postgres

- download http://nme.milieuinfo.be/postgresql-9.0.1-01.tar.gz in this
folder, unzip and untar

- cd /export/packages/postgres/postgresql-9.0.1-01/01_scripts

- ./01_compile.sh (for making the directory structure)

- ./02_mkpostgres.sh (for compiling and making the package)

Following software bundles are compiled for PostgreSql:

readline

libxml2

libxlst

openldap

openssl

postgres

pgtop

For postgis (postgis 1.5.0 PostreSql version 8.4.2)

---------------

- mkdir /export/packages/postgis

- download http://nme.milieuinfo.be/postgis-1.5.0-02.tar.gz in this folder,
unzip and untar

- same as above

For postgresql, we converted the scripts to an English friendly script, this
is not the case for postgis but you can handle it. For postgresql, we made
an installation pdf. You find it in postgresql-9.0.1-01.tar.gz

I hope that somebody would put this information on an central site webpage.
Reaction are welcome.

Greetings,

Gerrit-Guy

Browse pgsql-admin by date

  From Date Subject
Next Message Kieren Scott 2010-11-03 14:44:59 Re: Using LDAP with postgresql 8.2
Previous Message Gerhard Hintermayer 2010-11-02 15:26:54 Re: reinstall postgreSQL same version while server up and running possible under linux ?

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2010-11-03 11:15:20 Re: Running postgres with a different user/group
Previous Message Gabriele Bulfon 2010-11-03 10:29:25 Running postgres with a different user/group