Home > AWS, Linux, PostgreSQL, Uncategorized > Compile and install PostgreSQL 9.2 beta 1 at AWS micro instance (EC2)

Compile and install PostgreSQL 9.2 beta 1 at AWS micro instance (EC2)

first things first – take some time and read http://www.postgresql.org/about/news/1395/

Compilation:
get the sources at the install directory and compile it :


cd /opt/installs/
wget http://ftp.postgresql.org/pub/source/v9.2.0beta1/postgresql-9.2beta1.tar.bz2
tar xvf postgresql-9.2beta1.tar.bz2
# prepare the configure script:
vi postgresql-9.2beta1.seikath.conf
cat  /opt/installs/postgresql-9.2beta1.seikath.conf
#!/bin/sh
here=`pwd`

cd /opt/installs/postgresql-9.2beta1
./configure  \
--with-ossp-uuid \
--with-libxml \
--with-openssl \
--with-pam \
--with-krb5 \
--with-python \
--with-perl  \
--with-tcl  \
--with-pgport=6543 \

if you get this error

checking for flags to link embedded Perl... Can't locate ExtUtils/Embed.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
BEGIN failed--compilation aborted.
# you are missing some perl libraries
# install them:
yum install perl-YAML* -y
yum install perl-ExtUtils* -y

if you get this error

checking for library containing readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure.  It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
# you are missing readline libraries
# install them:
yum install readline* -y

if you get this error

checking for pam_start in -lpam... no
configure: error: library 'pam' is required for PAM
# you are missing pam libraries
# install them:
yum install pam-devel -y

if you get this error

checking for uuid_export in -lossp-uuid... no
checking for uuid_export in -luuid... no
configure: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID
# you are missing uuid libraries
# install them:
yum install uuid-devel -y

if you get this error

checking for tclConfig.sh... no
configure: error: file 'tclConfig.sh' is required for Tcl
# you are missing tclConfig.sh
# install it:
yum install tcl-devel -y

if you get this error

configure: error: header file <Python.h> is required for Python
# you are missing Python libraries
# install them:
yum install python-devel -y

use gmake to compile as recommended

echo "gmake -j3 | tee /tmp/postgresql-9.2beta1.install.log" | at now 
tail -F /tmp/postgresql-9.2beta1.install.log
...

All of PostgreSQL successfully made. Ready to install.
echo "gmake -j3 install | tee -a /tmp/postgresql-9.2beta1.install.log" | at now
tail -F /tmp/postgresql-9.2beta1.install.log
...
PostgreSQL installation complete.

# DONE 🙂  
root@domU-12-31-39-07-39-AE-node-1:[Tue May 22 03:38:50]:[/opt/installs/postgresql-9.2beta1]$ /usr/local/pgsql/bin/psql -V
psql (PostgreSQL) 9.2beta1
contains support for command-line editing

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: