Re: pgadmin3-1.14.1 source install trouble, trial #2 - Mailing list pgadmin-support

From Guillaume Lelarge
Subject Re: pgadmin3-1.14.1 source install trouble, trial #2
Date
Msg-id 1329463954.2271.3.camel@localhost.localdomain
Whole thread Raw
In response to pgadmin3-1.14.1 source install trouble, trial #2  ("J. Greg Davidson" <jgd@well.com>)
List pgadmin-support
On Thu, 2012-02-16 at 20:45 -0800, J. Greg Davidson wrote:
> OK, second trial using a fresh wxGTK 2.8.12 install:
> 
> (1) My System Info:
> 
> $ cat /etc/SuSE-release
> openSUSE 11.4 (x86_64)
> VERSION = 11.4
> CODENAME = Celadon
> $ uname -a
> Linux shevek.puuhonua.org 2.6.37.6-0.11-desktop #1 SMP PREEMPT 2011-12-19 23:39:38 +0100 x86_64 x86_64 x86_64
GNU/Linux
> 
> (2) The wxGTK install details:
> 
> $   ./configure --with-gtk --enable-gtk2 --enable-unicode
> ... LOTS OF NOISE, AND THEN ...
> Configured wxWidgets 2.8.12 for `x86_64-unknown-linux-gnu'
> 
>   Which GUI toolkit should wxWidgets use?                 GTK+ 2 with support for gnomeprint
>   Should wxWidgets be compiled into single library?       no
>   Should wxWidgets be compiled in debug mode?             no
>   Should wxWidgets be linked as a shared library?         yes
>   Should wxWidgets be compiled in Unicode mode?           yes
>   What level of wxWidgets compatibility should be enabled?
>                                        wxWidgets 2.4      no
>                                        wxWidgets 2.6      yes
>   Which libraries should wxWidgets use?
>                                        jpeg               sys
>                                        png                sys
>                                        regex              builtin
>                                        tiff               sys
>                                        zlib               sys
>                                        odbc               no
>                                        expat              sys
>                                        libmspack          no
>                                        sdl                no
> 
> $ make
> ... NO ERRORS, LOOKS FINE ...
> $ sudo make install
> ... NO ERRORS, LOOKS FINE ...
>  The installation of wxWidgets is finished.  On certain
>  platforms (e.g. Linux) you'll now have to run ldconfig
> ...
> $ sudo ldconfig /usr/local/lib
> 
> $ cd gadmin3-1.14.1/
> 
> $ ./configure
> ... LOTS OF NOISE, THEN FINALLY:
> PostgreSQL directory:                   /usr/local/pgsql
> PostgreSQL pg_config binary:            /usr/local/pgsql/bin/pg_config
> PostgreSQL version:                     PostgreSQL 9.1.1
> 
> PostgreSQL PQconninfoParse support:     Present
> PostgreSQL SSL support:                 Missing
> 
> wxWidgets directory:                    /usr/local
> wxWidgets wx-config binary:             /usr/local/bin/wx-config
> wxWidgets version:                      wxWidgets 2.8.12
> 
> libxml2 directory:                      /usr
> libxml2 xml2-config binary:             /usr/bin/xml2-config
> libxml2 version:                        libxml2 2.7.8
> 
> libxslt directory:                      /usr
> libxslt xslt-config binary:             /usr/bin/xslt-config
> libxslt version:                        libxslt 1.1.26
> 
> Building a debug version of pgAdmin:    No
> Statically linking pgAdmin:             No
> Building a Mac OS X appbundle:          No
> 
> pgAdmin configuration is now complete. You can now compile and
> install pgAdmin using 'make; make install'.
> 
> $ make
> ... LOTS OF NOISE UNTIL FINALLY:
> make[3]: Entering directory `/usr/local/src/pgadmin3-1.14.1/pgadmin'
> g++ -DHAVE_CONFIG_H -I. -I..  -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -I../pgadmin/include
-I/usr/local/pgsql-9.1.1/include-I/usr/local/pgsql-9.1.1/include/server -I/usr/local/pgsql-9.1.1/include
-DHAVE_CONNINFO_PARSE-I/usr/local/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/local/include/wx-2.8
-D_FILE_OFFSET_BITS=64-D_LARGE_FILES -D__WXGTK__ -DEMBED_XRC -I/usr/include/libxml2 -I/usr/include/libxml2  -O2 -MT
pgAdmin3.o-MD -MP -MF .deps/pgAdmin3.Tpo -c -o pgAdmin3.o `test -f './pgAdmin3.cpp' || echo './'`./pgAdmin3.cpp
 
> In file included from ../pgadmin/include/pgAdmin3.h:24:0,
>                  from ./pgAdmin3.cpp:13:
> ../pgadmin/include/ctl/ctlSQLBox.h:17:24: fatal error: wx/stc/stc.h: No such file or directory
> compilation terminated.
> make[3]: *** [pgAdmin3.o] Error 1
> 
> Hmm, it seems to have the right -I for wx-2.8, let's see if it got the path wrong:
> 
> $ find /usr/local/include/wx-2.8 -name stc.h
> 
> -- no output, there is no such file.
> 
> OK, once again, have I overlooked something I should know about
> or something less obvious?  And do you need to complete transcripts?
> 

Yes, you forgot to compile the wxWidgets contrib modules, as stated in
the INSTALL file of pgAdmin source. See

http://git.postgresql.org/gitweb/?p=pgadmin3.git;a=blob;f=INSTALL

> Alas, pgadmin3 is not in the OpenSuSE package tree as it is on my
> Debian systems, but I *should* be able to build it from source, right?
> 

Yes.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com



pgadmin-support by date:

Previous
From: "J. Greg Davidson"
Date:
Subject: pgadmin3-1.14.1 source install trouble, trial #2
Next
From: Guillaume Lelarge
Date:
Subject: Re: pgadmin3-1.14.1 source install trouble, trial #1