Обсуждение: Can't compile pgadmin3-1.10.1
Hello,
I am installing pgadmin3-1.10.1 from source. I am at linux.
The configuration passed:
*************************
PostgreSQL directory: /cis/local/biocard_xnat/xnat/postgres
PostgreSQL pg_config binary: /cis/local/biocard_xnat/xnat/postgres/bin/pg_config
PostgreSQL version: PostgreSQL 8.4.2
PostgreSQL SSL support: Present
wxWidgets directory: /cis/local/biocard_xnat/xnat/opt/wxgtk
wxWidgets wx-config binary: /cis/local/biocard_xnat/xnat/opt/wxgtk/bin/wx-config
wxWidgets version: wxWidgets 2.8.10
libxml2 directory: /cis/local/biocard_xnat/xnat/opt/xmlinst
libxml2 xml2-config binary: /cis/local/biocard_xnat/xnat/opt/xmlinst/bin/xml2-config
libxml2 version: libxml2 2.7.6
libxslt directory: /cis/local/biocard_xnat/xnat/opt/xslt
libxslt xslt-config binary: /cis/local/biocard_xnat/xnat/opt/xslt/bin/xslt-config
libxslt version: libxslt 1.1.21
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'.
*******************************
When I tried to compile, got the following error:
************************
In file included from ../pgadmin/include/pgAdmin3.h:23,
from ./pgAdmin3.cpp:13:
../pgadmin/include/ctl/ctlSQLBox.h:17:24: error: wx/stc/stc.h: No such file or directory
./pgAdmin3.cpp:27:24: error: wx/ogl/ogl.h: No such file or directory
In file included from ../pgadmin/include/pgAdmin3.h:23,
from ./pgAdmin3.cpp:13:
../pgadmin/include/ctl/ctlSQLBox.h:37: error: expected class-name before ‘{’ token
In file included from ../pgadmin/include/pgAdmin3.h:23,
from ./pgAdmin3.cpp:13:
../pgadmin/include/ctl/ctlSQLBox.h:69: error: ‘wxStyledTextEvent’ has not been declared
In file included from ./pgAdmin3.cpp:53:
../pgadmin/include/frm/frmMain.h:171: error: ‘wxStyledTextEvent’ has not been declared
../pgadmin/include/frm/frmMain.h: In member function ‘void frmMain::OnCopy(wxCommandEvent&)’:
../pgadmin/include/frm/frmMain.h:167: error: ‘class ctlSQLBox’ has no member named ‘Copy’
In file included from ./pgAdmin3.cpp:55:
../pgadmin/include/frm/frmQuery.h: At global scope:
../pgadmin/include/frm/frmQuery.h:112: error: ‘wxStyledTextEvent’ has not been declared
../pgadmin/include/frm/frmQuery.h:113: error: ‘wxStyledTextEvent’ has not been declared
./pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:
./pgAdmin3.cpp:383: error: ‘wxOGLInitialize’ was not declared in this scope
make[2]: *** [pgAdmin3.o] Error 1
make[2]: Leaving directory `/cis/local/biocard_xnat/xnat/tmp/pgadmin3-1.10.1/pgadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cis/local/biocard_xnat/xnat/tmp/pgadmin3-1.10.1'
make: *** [all] Error 2
**********************************
Thanks in advance for any suggestion.
Haiyan
I am installing pgadmin3-1.10.1 from source. I am at linux.
The configuration passed:
*************************
PostgreSQL directory: /cis/local/biocard_xnat/xnat/postgres
PostgreSQL pg_config binary: /cis/local/biocard_xnat/xnat/postgres/bin/pg_config
PostgreSQL version: PostgreSQL 8.4.2
PostgreSQL SSL support: Present
wxWidgets directory: /cis/local/biocard_xnat/xnat/opt/wxgtk
wxWidgets wx-config binary: /cis/local/biocard_xnat/xnat/opt/wxgtk/bin/wx-config
wxWidgets version: wxWidgets 2.8.10
libxml2 directory: /cis/local/biocard_xnat/xnat/opt/xmlinst
libxml2 xml2-config binary: /cis/local/biocard_xnat/xnat/opt/xmlinst/bin/xml2-config
libxml2 version: libxml2 2.7.6
libxslt directory: /cis/local/biocard_xnat/xnat/opt/xslt
libxslt xslt-config binary: /cis/local/biocard_xnat/xnat/opt/xslt/bin/xslt-config
libxslt version: libxslt 1.1.21
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'.
*******************************
When I tried to compile, got the following error:
************************
In file included from ../pgadmin/include/pgAdmin3.h:23,
from ./pgAdmin3.cpp:13:
../pgadmin/include/ctl/ctlSQLBox.h:17:24: error: wx/stc/stc.h: No such file or directory
./pgAdmin3.cpp:27:24: error: wx/ogl/ogl.h: No such file or directory
In file included from ../pgadmin/include/pgAdmin3.h:23,
from ./pgAdmin3.cpp:13:
../pgadmin/include/ctl/ctlSQLBox.h:37: error: expected class-name before ‘{’ token
In file included from ../pgadmin/include/pgAdmin3.h:23,
from ./pgAdmin3.cpp:13:
../pgadmin/include/ctl/ctlSQLBox.h:69: error: ‘wxStyledTextEvent’ has not been declared
In file included from ./pgAdmin3.cpp:53:
../pgadmin/include/frm/frmMain.h:171: error: ‘wxStyledTextEvent’ has not been declared
../pgadmin/include/frm/frmMain.h: In member function ‘void frmMain::OnCopy(wxCommandEvent&)’:
../pgadmin/include/frm/frmMain.h:167: error: ‘class ctlSQLBox’ has no member named ‘Copy’
In file included from ./pgAdmin3.cpp:55:
../pgadmin/include/frm/frmQuery.h: At global scope:
../pgadmin/include/frm/frmQuery.h:112: error: ‘wxStyledTextEvent’ has not been declared
../pgadmin/include/frm/frmQuery.h:113: error: ‘wxStyledTextEvent’ has not been declared
./pgAdmin3.cpp: In member function ‘virtual bool pgAdmin3::OnInit()’:
./pgAdmin3.cpp:383: error: ‘wxOGLInitialize’ was not declared in this scope
make[2]: *** [pgAdmin3.o] Error 1
make[2]: Leaving directory `/cis/local/biocard_xnat/xnat/tmp/pgadmin3-1.10.1/pgadmin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cis/local/biocard_xnat/xnat/tmp/pgadmin3-1.10.1'
make: *** [all] Error 2
**********************************
Thanks in advance for any suggestion.
Haiyan
Hi, Le 19/02/2010 20:35, Haiyan Chi a écrit : > [...] > I am installing pgadmin3-1.10.1 from source. I am at linux. > > The configuration passed: > > > ************************* > PostgreSQL directory: > /cis/local/biocard_xnat/xnat/postgres > PostgreSQL pg_config binary: > /cis/local/biocard_xnat/xnat/postgres/bin/pg_config > PostgreSQL version: PostgreSQL > 8.4.2 > PostgreSQL SSL support: > Present > > wxWidgets directory: > /cis/local/biocard_xnat/xnat/opt/wxgtk > wxWidgets wx-config binary: > /cis/local/biocard_xnat/xnat/opt/wxgtk/bin/wx-config > wxWidgets version: wxWidgets > 2.8.10 > > libxml2 directory: > /cis/local/biocard_xnat/xnat/opt/xmlinst > libxml2 xml2-config binary: > /cis/local/biocard_xnat/xnat/opt/xmlinst/bin/xml2-config > libxml2 version: libxml2 > 2.7.6 > > libxslt directory: > /cis/local/biocard_xnat/xnat/opt/xslt > libxslt xslt-config binary: > /cis/local/biocard_xnat/xnat/opt/xslt/bin/xslt-config > libxslt version: libxslt 1.1.21 > > 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'. > ******************************* > > > When I tried to compile, got the following error: > [...] You probably forgot to compile the wxWidgets contribs. Go in the contrib directory and "make && make install". -- Guillaume. http://www.postgresqlfr.org http://dalibo.com
Thank you so much, Guillaume. After compile the wxWidgets contribs, pgadmin3-1.10.1 has been installed.
But when I tried to run ./pgadmin3, I got the following error:
***********
./pgadmin3: relocation error: ./pgadmin3: symbol _ZN21wxMemoryFSHandlerBase19AddFileWithMimeTypeERK8wxStringPKvmS2_, version WXU_2.8.5 not defined in file libwx_baseu-2.8.so.0 with link time reference
***********
Did I missed something? Thanks advance for your help.
Haiyan
--
7732 Heatherside Ln,
Ellicott City, MD 21043
Cell: 301-367-9541
Home: 410-796-7180
But when I tried to run ./pgadmin3, I got the following error:
***********
./pgadmin3: relocation error: ./pgadmin3: symbol _ZN21wxMemoryFSHandlerBase19AddFileWithMimeTypeERK8wxStringPKvmS2_, version WXU_2.8.5 not defined in file libwx_baseu-2.8.so.0 with link time reference
***********
Did I missed something? Thanks advance for your help.
Haiyan
On Fri, Feb 19, 2010 at 2:40 PM, Guillaume Lelarge <guillaume@lelarge.info> wrote:
Hi,
Le 19/02/2010 20:35, Haiyan Chi a écrit :
> [...]> [...]> I am installing pgadmin3-1.10.1 from source. I am at linux.
>
> The configuration passed:
>
>
> *************************
> PostgreSQL directory:
> /cis/local/biocard_xnat/xnat/postgres
> PostgreSQL pg_config binary:
> /cis/local/biocard_xnat/xnat/postgres/bin/pg_config
> PostgreSQL version: PostgreSQL
> 8.4.2
> PostgreSQL SSL support:
> Present
>
> wxWidgets directory:
> /cis/local/biocard_xnat/xnat/opt/wxgtk
> wxWidgets wx-config binary:
> /cis/local/biocard_xnat/xnat/opt/wxgtk/bin/wx-config
> wxWidgets version: wxWidgets
> 2.8.10
>
> libxml2 directory:
> /cis/local/biocard_xnat/xnat/opt/xmlinst
> libxml2 xml2-config binary:
> /cis/local/biocard_xnat/xnat/opt/xmlinst/bin/xml2-config
> libxml2 version: libxml2
> 2.7.6
>
> libxslt directory:
> /cis/local/biocard_xnat/xnat/opt/xslt
> libxslt xslt-config binary:
> /cis/local/biocard_xnat/xnat/opt/xslt/bin/xslt-config
> libxslt version: libxslt 1.1.21
>
> 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'.
> *******************************
>
>
> When I tried to compile, got the following error:
You probably forgot to compile the wxWidgets contribs. Go in the contrib
directory and "make && make install".
--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com
--
7732 Heatherside Ln,
Ellicott City, MD 21043
Cell: 301-367-9541
Home: 410-796-7180
Le 19/02/2010 21:14, Haiyan Chi a écrit : > Thank you so much, Guillaume. After compile the wxWidgets contribs, > pgadmin3-1.10.1 has been installed. > But when I tried to run ./pgadmin3, I got the following error: > *********** > ./pgadmin3: relocation error: ./pgadmin3: symbol > _ZN21wxMemoryFSHandlerBase19AddFileWithMimeTypeERK8wxStringPKvmS2_, version > WXU_2.8.5 not defined in file libwx_baseu-2.8.so.0 with link time reference > *********** > Did I missed something? Thanks advance for your help. > It talks about a 2.8.5 wxWidgets Release, and you seemed to compiled pgAdmin with 2.8.10. I suppose you have a 2.8.5 installed release, but compiled pgAdmin against a compiled 2.8.10 wxWidgets release. You hsould make sure you link against the good one (the good being 2.8.10). -- Guillaume. http://www.postgresqlfr.org http://dalibo.com