Compile on esekilxxen1250 (linux 64bit)
Download postgresql 9.4.21 from https://ftp.postgresql.org/pub/source/v9.4.21/postgresql-9.4.21.tar.bz2 and store in /tmp
cd /tmp
bzip2 -d postgresql-9.4.21.tar.bz2
tar xf postgresql-9.4.21.tar
cd postgresql-9.4.21
mkdir /tmp/postgresql
env CFLAGS="-O2" ./configure --prefix=/tmp/postgresql --without-readline && make && make install-strip
mkdir -p /tmp/postgreslin64/bin
mkdir -p /tmp/postgreslin64/lib
cd /tmp/postgresql/bin
cp postgres psql initdb pg_restore pg_ctl /tmp/postgreslin64/bin
cp /tmp/postgresql/lib/libpq.so.5 moshell/commonjars/lib/lin64
rm /tmp/postgresql/lib/lib*
cp /tmp/postgresql/lib/*.so /tmp/postgreslin64/lib
rm -rf /tmp/postgresql/share/tsearch_data
cp -R /tmp/postgresql/share /tmp/postgreslin64/
cd /tmp
zip -r postgreslin64.zip postgreslin64
Then store the file postgreslin64.zip in moshell/commonjars

