This guide worked for me on OpenSolaris JeOS snv_134
(it's in Spanish, but when you focus, you should do it)
http://sparcki.blogspot.com/2010/09/instalacion-de-postgresql-en.html
I'm attaching my cmd steps in txt file needed for building postgres 9.
On 2011-04-04 10:38, Bruno Damour wrote:
Just noticed that in the method some messages still refer to postgresql_84,
should be postgresql_90
Bruno
----- Mail Original -----
De: "Gabriel de la Cruz"<[email protected]>
À: "Discussion list for OpenIndiana"<[email protected]>
Envoyé: Samedi 2 Avril 2011 02h31:55 GMT +01:00 Amsterdam / Berlin / Berne /
Rome / Stockholm / Vienne
Objet: Re: [OpenIndiana-discuss] PostgreSQL 9
Thankyou :D
I will make a good use of it.
BR
Gab
On Fri, Apr 1, 2011 at 11:22 PM, Bruno Damour<[email protected]> wrote:
There is a compiled version for opensolaris, can be downloaded.
I have smf manifest / function working (tweaked from old sun versions) I
can share
Bruno
PS : running postgresql-9.0.3 on solaris 11 express
_______________________________________________
Hello, here I am
* download link :
http://www.postgresql.org/ftp/binary/v9.0.3/solaris/solaris11/i386/
* manifest (.xml) (to import with svccfg) and method (lives in
/lib/svc/method) are attached.
I installed (ie untarred) pg in /opt, comes up under
/opt/postgres/9.0-pgdg/, you can customize the manifest before import if you
want to install elsewhere.
I have install the two versions (32 and 64), and my datadirs are
/data/postgres90_32 and /data/postgres90_64, you'll have to tweak that as
you want (and of course, you have to untar the 2 tarball if you want both.
you can tweak afterwords with svccfg.
Good luck
Bruno
My data dir is
_______________________________________________
OpenIndiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss
_______________________________________________
OpenIndiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss
_______________________________________________
OpenIndiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss
#PostgreSQL 9.0.1 Source Tarball BZ2
http://www.postgresql.org/ftp/source/v9.0.1/
postgresql-9.0.1.tar.bz2:
http://wwwmaster.postgresql.org/download/mirrors-ftp/source/v9.0.1/postgresql-9.0.1.tar.bz2
#directlink
http://ftp6.pl.postgresql.org/pub/postgresql/source/v9.0.1/postgresql-9.0.1.tar.bz2
#cd /mnt/sources
pfexec wget
http://ftp6.pl.postgresql.org/pub/postgresql/source/v9.0.1/postgresql-9.0.1.tar.bz2
pfexec bash -c 'bunzip2 -k postgresql-9.0.1.tar.bz2 | tar xvf -'
#instalacja wymaganych PKG-sow
---
#tip sun studio mozna podmontowac z thecus7700sol:/volumes/tank/dev na /mnt/dev
(najlepiej autofs-em):
#file: /etc/auto_master:
#development home share
/- auto-directmap_dev -nosuid
#file: /etc/auto-directmap_dev
#this suffice for nfs4 - it will auto mount any child nfs shared fs found in it
/mnt/dev thecus7700sol:/volumes/tank/dev
oraz zrobic symlinka w /opt:
pfexec ln -s /mnt/dev/sun/sunstudio12/SUNWspro /opt/SUNWspro
oraz ustawic env eg.:
PATHDEV=/usr/perl5/bin
PATHDEV_NFS=/opt/SUNWspro/bin
export
PATH="$SHARED_PATH:$MY_PATH:$UTIL_PATH:$STANDARD_PATH:$PATHDEV:$PATHDEV_NFS"
---
#instlacja pakietow
<pkg install _nazwa_pkg_>
* sunstudio
* SUNWgmake
* SUNWbison
* SUNWgm4
* SUNWflexlex
czyli
pfexec pkg install SUNWgmake SUNWbison SUNWgm4 SUNWflexlex
dodatkowo na JeOS b134
pfexec pkg install SUNWhea SUNWlibm
Sprawdzanie instalacji packagesow z <pkginfo>:
# pkginfo |grep flex
system SUNWflexlex Flex Lexer
system SUNWrsync rsync - faster, flexible replacement
for rcp
# pkginfo |grep bison
system SUNWbison bison - A YACC Replacement
# pkginfo |grep gm4
system SUNWgm4 GNU m4
# pkginfo |grep gmake
system SUNWgmake gmake - GNU make
# pkginfo |grep sunstudio
application sunstudio12u1 Sun Studio 12 update 1
#COMPILE & INSTALL
#suggested install dir:
/opt/postgres/9.0.1-pgdg #hiszpan: /opt/postgres/9.0.1-pgdg
#suggested var dir:
/var/postgres/9.0.1-pgdg.1-pgdg #hiszpan: /var/postgres/9.0.1-pgdg
export CC=cc
export CFLAGS="-xO3 -xspace -Xa -xildoff -m64 -xc99=none -xCC -fast -native"
export LDFLAGS="-R/usr/sfw/lib/64 -R/usr/lib/64"
cd /mnt/sources/postgresql-9.0.1
./configure \
--prefix=/opt/postgres/9.0.1-pgdg/db \
--exec-prefix=/opt/postgres/9.0.1-pgdg/db \
--bindir=/opt/postgres/9.0.1-pgdg/db/bin/64\
--libexecdir=/opt/postgres/9.0.1-pgdg/db/bin/64 \
--sbindir=/opt/postgres/9.0.1-pgdg/db/bin/64 \
--datadir=/opt/postgres/9.0.1-pgdg/db/share \
--sysconfdir=/opt/postgres/9.0.1-pgdg/db/etc \
--mandir=/opt/postgres/9.0.1-pgdg/db/man \
--libdir=/opt/postgres/9.0.1-pgdg/db/lib/64 \
--includedir=/opt/postgres/9.0.1-pgdg/db/include \
--sharedstatedir=/var/postgres/9.0.1-pgdg \
--localstatedir=/var/postgres/9.0.1-pgdg \
--enable-nls \
--docdir=/opt/postgres/9.0.1-pgdg/db/doc \
--with-system-tzdata=/usr/share/lib/zoneinfo \
--with-python \
--with-pam \
--with-openssl \
--with-libedit-preferred \
--with-libxml \
--with-libxslt \
--with-gssapi \
--enable-thread-safety \
--enable-dtrace \
--disable-integer-datetimes \
--with-includes=/usr/include:/usr/sfw/include \
--with-libs=/lib/64:/usr/lib/64:/usr/sfw/lib/64
#compile
make
#install to configured dirs
make install
#create distrib
cd /opt
tar cjf postgresql-9.0.1-OSol.i386-64.tar.bz2 postgres
#extract distrib at target host
pfexec tar xjf bzcat postgresql-9.0.1-OSol.i386-64.tar.bz2
_______________________________________________
OpenIndiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss