Thread: Suse 82 package
Dear all, I am trying to build pgAdmin3 packages on a Suse 82 box at a friend. This is quite interesting because we are starting from a minimal Suse installation, hence I could find all dependent packages for wxWindows. Now, I try to configure pgAdmin3. The configuration script does find pgsql. configure:4598: checking libpq-fe.h usability configure:4611: gcc -c -g -O2 -I/usr/include conftest.c >&5 configure:4669:22: libpq-fe.h: No such file or directory configure:4614: $? = 1 configure: failed program was: | #line 4600 "configure" | /* confdefs.h. */ The list of packages can be found here: http://fr2.rpmfind.net/linux/RPM/suse/suse/i386/8.2/suse/i586/index.html All PostgreSQL packages and lipq++ package are installed. Do you understand how to fix this problem? Andreas, how did you do it? Adam, do you see a solution? We are pretty close from a Suse package. Cheers, Jean-Michel
You need to find the directory that houses libpq-fe.h, and then pass the parent directory to configure with the --with-pgsql switch. So if libpq-fe.h is in /usr/local/pgsql/include, then you would pass --with-pgsql=/usr/local/pgsql to configure (/usr/local/pgsql is one of the directories that configure searches, so this is a redundant example). ahp
On Thursday 12 June 2003 16:00, Adam H. Pendleton wrote: > You need to find the directory that houses libpq-fe.h, and then pass the > parent directory to configure with the --with-pgsql switch. So if > libpq-fe.h is in /usr/local/pgsql/include, then you would pass > --with-pgsql=/usr/local/pgsql to configure (/usr/local/pgsql is one of > the directories that configure searches, so this is a redundant example). Max patched the ./configure script to look for pgsql and lipq headers seperately, as far as I can understand. It adds --with-pgsql-libraries. Now, pgAdmin3 configures under SuSE 8.2, but we have other problems with gcc3.3. Could you review this patch and apply it if needed? Cheers, Jean-Michel ************************************ Index: acinclude.m4 =================================================================== RCS file: /disk1/cvsroot/pgadmin3/acinclude.m4,v retrieving revision 1.8 diff -u -r1.8 acinclude.m4 --- acinclude.m4 4 Jun 2003 08:19:25 -0000 1.8 +++ acinclude.m4 12 Jun 2003 14:20:42 -0000 @@ -38,27 +38,27 @@ [wx_version=2.4]) ]) -######################################## -# Check for PostgreSQL library (libpq) # -######################################## +###################################### +# Check for PostgreSQL include files # +###################################### AC_DEFUN([CHECK_LIBPQ], [AC_MSG_CHECKING(for pgsql) -AC_ARG_WITH(pgsql, -[ --with-pgsql=DIR directory to search for pgsql libraries and headers], +AC_ARG_WITH(pgsql-include, +[ --with-pgsql-include=DIR directory to search for pgsql libraries and headers], [if test "$withval" != no; then AC_MSG_RESULT(yes) - LIBPQ_HOME="$withval" + LIBPQ_INCLUDE="$withval" else AC_MSG_RESULT(no) fi], [ AC_MSG_RESULT(yes) - LIBPQ_HOME=/usr/local/pgsql - if test ! -f "${LIBPQ_HOME}/include/libpq-fe.h" + LIBPQ_INCLUDE=/usr/local/pgsql/include + if test ! -f "${LIBPQ_INCLUDE}/libpq-fe.h" then - LIBPQ_HOME=/usr/local - if test ! -f "${LIBPQ_HOME}/include/libpq-fe.h" + LIBPQ_INCLUDE=/usr/local/include + if test ! -f "${LIBPQ_INCLUDE}/libpq-fe.h" then - LIBPQ_HOME=/usr + LIBPQ_INCLUDE=/usr/inclde/pgsql fi fi ]) @@ -66,12 +66,11 @@ # # Locate pgsql # -if test -n "${LIBPQ_HOME}" +if test -n "${LIBPQ_INCLUDE}" then LIBPQ_OLD_LDFLAGS=$LDFLAGS LIBPQ_OLD_CPPFLAGS=$CPPFLAGS - LDFLAGS="$LDFLAGS -L${LIBPQ_HOME}/lib" - CPPFLAGS="$CPPFLAGS -I${LIBPQ_HOME}/include" + CPPFLAGS="$CPPFLAGS -I${LIBPQ_INCLUDE}" LIBS="$LIBS -lssl -lcrypto" AC_LANG_SAVE AC_LANG_C @@ -80,15 +79,15 @@ AC_LANG_RESTORE if test "$pgsql_cv_libpq" = "yes" -a "$pgsql_cv_libpqfe_h" = "yes" then - AC_MSG_CHECKING(pgsql in ${LIBPQ_HOME}) + AC_MSG_CHECKING(pgsql) AC_MSG_RESULT(ok) LIBS="$LIBS -lpq" else - AC_MSG_CHECKING(pgsql in ${LIBPQ_HOME}) + AC_MSG_CHECKING(pgsql) LDFLAGS="$LIBPQ_OLD_LDFLAGS" CPPFLAGS="$LIBPQ_OLD_CPPFLAGS" AC_MSG_RESULT(failed) - AC_MSG_ERROR(you must specify a valid pgsql installation with --with-pgsql=DIR) + AC_MSG_ERROR(you must specify the directory of your pgsql headers with --with-pgsql-headers=DIR) fi fi ])
You should read --with-pgsql-include
Dave, please *do not* apply this patch as I think it breaks the default pgsql checks. Give me a chance to test it first. ahp
On Thursday 12 June 2003 16:27, Adam H. Pendleton wrote: > Dave, please *do not* apply this patch as I think it breaks the default > pgsql checks. Give me a chance to test it first. This patch is for review, Adam. We are waiting for your expertise. Cheers, Jean-Michel
Jean-Michel POURE wrote:
ahp
If that's the case, then we you may be waiting for a while. :-)This patch is for review, Adam. We are waiting for your expertise. Cheers, Jean-Michel
ahp