Bug #892: Java ant not usable on debian woody

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Bug #892: Java ant not usable on debian woody
Date: 2003-02-05 00:31:51
Message-ID: 20030205003151.C81F4474E44@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Terrell Larson (terr(at)terralogic(dot)net) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
Java ant not usable on debian woody

Long Description
The installer fails with a message that ANT is not available.

Note: I wrote a script to do the install so that I know exactly what options I configured in. See below. If you wish to include this with the package I'll be happy to release it under the GPL or as your people may advise. I'd like a credit for writing it - that is all.

This installation will be a test database probably with debugging info included. I'll probably install more than one configuration.

./configure --with-perl --with-python --with-tcl --with-java --with-openssl --with-odbc --with-x --enable-debug
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether to build with recode support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for default soft limit on number of connections... 32
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
configure: using CFLAGS=-O2 -g
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking whether to build with Tcl... yes
checking whether to build with Tk... yes
checking whether to build Perl modules... yes
checking whether to build Python modules... yes
checking whether to build Java/JDBC tools... yes
checking for jakarta-ant... no
checking for ant... /usr/bin/ant
checking whether /usr/bin/ant works... no
=========== make ============
You need to run the 'configure' program first. See the file
'INSTALL' for installation instructions.
=

Sample Code
#!/bin/bash

version=731d
help=
pguserid=postgre$version
pgSRC=/usr/src/postgres$version
pgBIN=/usr/local/pgsql$version/bin
pgLIB=/usr/local/pgsql$version/lib
databasehome=/dbms/postgre$version_1
LD_LIBRARY_PATH=/usr/local/pgsql$version/lib
options="--with-perl --with-python --with-tcl --with-java --with-openssl --with-odbc --with-x"
# options="$options --with-CXX=c++"
options="$options --enable-debug"
install_log=install_log$version

case `echo $1 | tr a-z A-Z`
in
INSTALL)
if [ -d $pgSRC ]; then
echo "cd $pgSRC"
cd $pgSRC
if [ -f $install_log ]; then
rm $install_log
fi
echo "========= configure ==========" | tee -a ../$install_log
echo "./configure $options" | tee -a ../$install_log
./configure $options | tee -a ../$install_log
echo "=========== make ============" | tee -a ../$install_log
make | tee -a ../$install_log
echo "======= make install ========" | tee -a ../$install_log
make install | tee -a ../$install_log
else
echo "unable to cd to $pgSRC"
echo "create a link to the source directory"
echo "eg. ln -s postgressql-7.3.1 postgres"
fi
echo "==================================" | tee -a ../$install_log
echo "create the pguserid (postgres superuser) = $pguserid" | tee -a ../$install_log
echo "==================================" | tee -a ../$install_log
;;
INIT)
echo "cd $pgSRC"
cd src
echo "cd src" | tee -a ../$install_log
export LD_LIBRARY_PATH
echo "==================================" | tee -a ../$install_log
echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH" | tee -a ../$install_log
echo "==================================" | tee -a ../$install_log
echo "setting up the database in $databasehome" | tee -a ../$install_log
echo "==================================" | tee -a ../$install_log
if [ -d $databasehome ]; then
echo "databasehome=$databasehome - good" | tee -a ../$install_log
else
mkdir $databasehome
echo "databasehome=$databasehome (created)" | tee -a ../$install_log
fi
chown $pguserid:$pguserid $databasehome
echo "$pgBIN/initdb --pgdata=$databasehome --pglib=$pgLIB" | tee -a ../$install_log
su $pguserid -c "$pgBIN/initdb --pgdata=$databasehome --pglib=$pgLIB " | tee -a ../$install_log 2| tee -a ../install.log
;;
START)
su $pguserid -c "nohup $pgBIN/postmaster -D $databasehome </dev/null >>/var/log/postgreSQL.log 2>&1 &"
;;
INSTALLDOCS)
echo "cd $pgSRC"
cd doc
echo "cd doc" | tee -a ../$install_log
echo "========= installdocs ============" | tee -a ../$install_log
gmake install | tee -a ../$install_log
;;
SOURCE)
echo "remember to use . or source before this command"
echo " "
cd $pgSRC
;;
BINARY)
echo "remember to use . or source before this command"
echo " "
cd $pgBIN/..
;;
*)
help=1
;;
esac

No file was uploaded with this report

Browse pgsql-bugs by date

  From Date Subject
Next Message Jason Wehmhoener 2003-02-05 00:39:38 initdb core dump
Previous Message Andrew McMillan 2003-02-04 08:40:50 Re: Bug #891: CAP letters