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.3 from https://ftp.postgresql.org/pub/source/v16.3/postgresql-16.3.tar.gz and store in /tmp
cd /tmp
tar xf postgresql-16.3.tar.gz
cd postgresql-16.3
rm -rf /tmp/postgresql && mkdir /tmp/postgresql
env CFLAGS="-O2" ./configure --without-icu --prefix=/tmp/postgresql --without-readline && make && make install-strip
rm -rf /tmp/postgreslin64 && mkdir /tmp/postgreslin64 && mkdir /tmp/postgreslin64/bin && mkdir /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

