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.14.2

Download postgresql 17.0 from https://ftp.postgresql.org/pub/source/v17.0/postgresql-17.0.tar.gz and store in /tmp/$USER
cd /tmp/$USER
rm -rf /tmp/$USER/postgresql && mkdir /tmp/$USER/postgresql
rm -rf postgresql-17.0 && tar xf postgresql-17.0.tar.gz && cd postgresql-17.0
env CFLAGS="-O2" ./configure --without-icu --prefix=/tmp/$USER/postgresql --without-readline && make && make install-strip
rm -rf /tmp/$USER/postgreslin64 && mkdir /tmp/$USER/postgreslin64 && mkdir /tmp/$USER/postgreslin64/bin && mkdir /tmp/$USER/postgreslin64/lib
cd /tmp/$USER/postgresql/bin
cp postgres psql initdb pg_restore pg_ctl /tmp/$USER/postgreslin64/bin
cp /tmp/$USER/postgresql/lib/libpq.so.5 ~/moshell/commonjars/lib/lin64
rm /tmp/$USER/postgresql/lib/lib*
cp /tmp/$USER/postgresql/lib/*.so /tmp/$USER/postgreslin64/lib
rm -rf /tmp/$USER/postgresql/share/tsearch_data
cp -R /tmp/$USER/postgresql/share /tmp/$USER/postgreslin64/
cd /tmp/$USER
zip -r postgreslin64.zip postgreslin64
Then store the file postgreslin64.zip in moshell/commonjars

