Compile on seliiuts03047.seli.gic.ericsson.se
export CC=gcc
module add gcc/10.2.0
module add make/4.3
module add perl/5.10.1

Download postgresql 16.2 from https://ftp.postgresql.org/pub/source/v16.2/postgresql-16.2.tar.bz2 and store in /tmp
cd /tmp
bzip2 -d postgresql-16.2.tar.bz2
tar xf postgresql-16.2.tar
cd postgresql-16.2
mkdir /tmp/postgresql
env CFLAGS="-O2" ./configure --without-icu --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

