Thread: Trying to build pgadmin
I recently decided to look into the possibility of doing some hacking on pgadmin to add some features/fixes that I've wanted. I'm trying to build pgadmin on OS X (10.6 Snow Leopard) using the EnterpriseDB Postgres Plus distribution and the latest svn checkout. I followed the instructions for OS X to the tee, I set the PG_HOME variable to /Library/PostgresPlus/8.3, but I still got configure errors complaining about the postgresql directory not being present. I even tried passing in the --with-pgsql=DIR parameter, but it didn't make any difference. I'm stumped, because far as I know, I have all of the necessary libraries to build pgadmin with the stock install of snow leopard and the enterprise db install. I suppose I could download all the complete source trees for WxMac, Postgresql, libxml, etc, but I'm trying to take the easiest route first. Below is the output of the configure command. Any help would be greatly appreciated. checking build system type... i386-apple-darwin10.2.0 checking host system type... i386-apple-darwin10.2.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... config/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... gnutar checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for ranlib... ranlib checking whether to use precompiled headers... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking for stdlib.h... (cached) yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... yes checking for working strtod... yes checking for gethostbyname... yes checking for inet_ntoa... yes checking for memmove... yes checking for memset... yes checking for strchr... yes checking for pg_config... /Library/PostgresPlus/8.3/bin/pg_config checking for SSL_library_init in -lssl... yes checking for krb5_sendauth in -lkrb5... yes checking for PQexec in -lpq... no checking for SSL_connect in -lpq... present checking for krb5_free_principle in -lpq... not present checking libpq-fe.h usability... yes checking libpq-fe.h presence... yes checking for libpq-fe.h... yes checking PostgreSQL in /Library/PostgresPlus/8.3... failed configure: error: you must specify a valid PostgreSQL installation with --with-pgsql=DIR -- Ilan
On Tue, Mar 9, 2010 at 5:07 PM, Ilan Volow <listboy@clarux.com> wrote: > I recently decided to look into the possibility of doing some hacking on > pgadmin to add some features/fixes that I've wanted. I'm trying to build > pgadmin on OS X (10.6 Snow Leopard) using the EnterpriseDB Postgres Plus > distribution and the latest svn checkout. I followed the instructions for OS > X to the tee, I set the PG_HOME variable to /Library/PostgresPlus/8.3, but I > still got configure errors complaining about the postgresql directory not > being present. I even tried passing in the --with-pgsql=DIR parameter, but > it didn't make any difference. I'm stumped, because far as I know, I have > all of the necessary libraries to build pgadmin with the stock install of > snow leopard and the enterprise db install. I suppose I could download all > the complete source trees for WxMac, Postgresql, libxml, etc, but I'm trying > to take the easiest route first. I have a sneaking recollection that PostgresPlus 8.3 on Mac didn't support being used for building extensions or third party apps due to the way the library paths were configured. What's the output from: otool -L /Library/PostgresPlus/8.3/lib/libpq.5.dylib FYI, the PostgreSQL 8.3, 8.4 and Postgres Plus 8.4 installers we produce should all work fine. It's just the older Postgres Plus that used very different technology. -- Dave Page EnterpriseDB UK: http://www.enterprisedb.com PG East Conference: http://www.enterprisedb.com/community/nav-pg-east-2010.do
On 3/9/10 12:22 PM, Dave Page wrote: > On Tue, Mar 9, 2010 at 5:07 PM, Ilan Volow<listboy@clarux.com> wrote: > >> I recently decided to look into the possibility of doing some hacking on >> pgadmin to add some features/fixes that I've wanted. I'm trying to build >> pgadmin on OS X (10.6 Snow Leopard) using the EnterpriseDB Postgres Plus >> distribution and the latest svn checkout. I followed the instructions for OS >> X to the tee, I set the PG_HOME variable to /Library/PostgresPlus/8.3, but I >> still got configure errors complaining about the postgresql directory not >> being present. I even tried passing in the --with-pgsql=DIR parameter, but >> it didn't make any difference. I'm stumped, because far as I know, I have >> all of the necessary libraries to build pgadmin with the stock install of >> snow leopard and the enterprise db install. I suppose I could download all >> the complete source trees for WxMac, Postgresql, libxml, etc, but I'm trying >> to take the easiest route first. >> > I have a sneaking recollection that PostgresPlus 8.3 on Mac didn't > support being used for building extensions or third party apps due to > the way the library paths were configured. What's the output from: > > otool -L /Library/PostgresPlus/8.3/lib/libpq.5.dylib > > Here's the output: /Library/PostgresPlus/8.3/lib/libpq.5.dylib: /Library/PostgresPlus/8.3/lib/libpq.5.dylib (compatibility version 5.0.0, current version 5.1.0) /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7) /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (compatibility version 5.0.0, current version 5.0.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.11) -- Ilan
On Tue, Mar 9, 2010 at 5:41 PM, Ilan Volow <listboy@clarux.com> wrote: > Here's the output: > > /Library/PostgresPlus/8.3/lib/libpq.5.dylib: > /Library/PostgresPlus/8.3/lib/libpq.5.dylib (compatibility version 5.0.0, > current version 5.1.0) > /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version > 0.9.7) > /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current > version 0.9.7) > /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos > (compatibility version 5.0.0, current version 5.0.0) > /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version > 1.0.0) > /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version > 88.3.11) Hmm, guess we must have fixed that issue, as that looks OK. Can you send a copy of config.log? -- Dave Page EnterpriseDB UK: http://www.enterprisedb.com PG East Conference: http://www.enterprisedb.com/community/nav-pg-east-2010.do