#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 * 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 |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