Обсуждение: FC2 install cannot find libpq-fe.h

Поиск
Список
Период
Сортировка

FC2 install cannot find libpq-fe.h

От
Richard_D_Levine@raytheon.com
Дата:
I'm running Fedora Core 2 with PostgreSQL 7.4.5, and just installed
wxWidgets 2.5 from the pgadmin mirrors as recommended.  I installed
PostgreSQL using RPMs.  All of that went well and PostgreSQL is running
nicely.

When I try to install pgadmin the configure command fails looking for
libpq-fe.h.  I did a 'find / -name libpq-fe.h' and it is surely not on the
machine.

Do I need to do a source install of PostgreSQL, or did I miss something
else along the way?

I'm a Linux newbie, though not a Unix newbie, so don't worry about
insulting my intelligence.  I ain't got none.

Thanks,

Rick





Re: FC2 install cannot find libpq-fe.h

От
Raphaël Enrici
Дата:
Hi Rick,

Richard_D_Levine@raytheon.com wrote:
> I'm running Fedora Core 2 with PostgreSQL 7.4.5, and just installed
> wxWidgets 2.5 from the pgadmin mirrors as recommended.  I installed
> PostgreSQL using RPMs.  All of that went well and PostgreSQL is running
> nicely.
> 
> When I try to install pgadmin the configure command fails looking for
> libpq-fe.h.  I did a 'find / -name libpq-fe.h' and it is surely not on the
> machine.

In general linux distros separate headers from binaries so that you 
don't waste disk space with non-wanted files.
You should install the devel package. Try to install postgresql-devel 
rpm package, it should contain the files you need.

> I'm a Linux newbie, though not a Unix newbie, so don't worry about
> insulting my intelligence.  I ain't got none.

I heard someone around who told "there are only stupid answers, not 
questions...". As I'm not an FC2 expert, I hope my answer was not too 
stupid and that it will help you going further.

Regards,
Raphaël


Re: FC2 install cannot find libpq-fe.h

От
Richard_D_Levine@raytheon.com
Дата:
Hi Raphael,

Installing the developer RPM for PostgreSQL fixed the problem, thanks for
the quick and accurate response.

For anyone who may read this, the next problem with the configure is that
it requires the following:

cd /usr/local/include
ln -s wx-2.5/wx .
./configure --with-wx=/usr/local

wxWindows RPM for FC2 installs in /usr/local/ instead of /usr and does not
create a directory named /usr/local/include/wx where pgadmin's configure
expects it.

That brings me to the next problem, which is this:

Making all in src
make[2]: Entering directory `/usr/share/pgadmin3/pgadmin3-1.0.2/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..
-DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\" -Wall -g
-I../src/include -I -DSSL -I/usr/include
-I/usr/local/lib/wx/include/gtk2ud-2.5 -I/usr/local/include/wx-2.5
-D__WXDEBUG__ -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-I/usr/local/include -DDATA_DIR=\"/usr/local/pgadmin3/share/pgadmin3/\"
-Wall -g -I../src/include -I -Wall -g -O0 -MT frmConnect.o -MD -MP -MF
".deps/frmConnect.Tpo" \ -c -o frmConnect.o `test -f 'ui/frmConnect.cpp' || echo
'./'`ui/frmConnect.cpp; \
then mv ".deps/frmConnect.Tpo" ".deps/frmConnect.Po"; \
else rm -f ".deps/frmConnect.Tpo"; exit 1; \
fi
ui/frmConnect.cpp:35: error: invalid static_cast from type `void  (frmConnect::*)(wxNotifyEvent&)' to type `void
(wxEvtHandler::*)(wxCommandEvent&)'
make[2]: *** [frmConnect.o] Error 1

Any ideas?

Thanks,

Rick


                                          Raphaël Enrici
                                                               <blacknoz@club-internet.f        To:
Richard_D_Levine@raytheon.com                                                                     r>
          cc:       pgadmin-support@postgresql.org
Sentby:                         Subject:  Re: [pgadmin-support] FC2 install cannot find libpq-fe.h
                    pgadmin-support-owner@pos
                                         tgresql.org


                                                                                                        09/14/2004
02:24PM


                               




Hi Rick,

Richard_D_Levine@raytheon.com wrote:
> I'm running Fedora Core 2 with PostgreSQL 7.4.5, and just installed
> wxWidgets 2.5 from the pgadmin mirrors as recommended.  I installed
> PostgreSQL using RPMs.  All of that went well and PostgreSQL is running
> nicely.
>
> When I try to install pgadmin the configure command fails looking for
> libpq-fe.h.  I did a 'find / -name libpq-fe.h' and it is surely not on
the
> machine.

In general linux distros separate headers from binaries so that you
don't waste disk space with non-wanted files.
You should install the devel package. Try to install postgresql-devel
rpm package, it should contain the files you need.

> I'm a Linux newbie, though not a Unix newbie, so don't worry about
> insulting my intelligence.  I ain't got none.

I heard someone around who told "there are only stupid answers, not
questions...". As I'm not an FC2 expert, I hope my answer was not too
stupid and that it will help you going further.

Regards,
Raphaël

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster







Re: FC2 install cannot find libpq-fe.h

От
Devrim GUNDUZ
Дата:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Richard,

On Tue, 14 Sep 2004 Richard_D_Levine@raytheon.com wrote:

<snip>
> wxWindows RPM for FC2 installs in /usr/local/ instead of /usr and does not
> create a directory named /usr/local/include/wx where pgadmin's configure
> expects it.
>
> That brings me to the next problem, which is this:
<snip>

Welcome to Fedora Core 2 :-)

Please hold on. Tomorrow morning I'll try bu build pgadmin3 rpms for 
FC2... I'll post to the list if I succeed.

Regards,
- --
Devrim GUNDUZ 
devrim~gunduz.org                devrim.gunduz~linux.org.tr            http://www.tdmsoft.com
http://www.gunduz.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBR2LTtl86P3SPfQ4RAsy5AJwJiCezDbpWabjCwgiE4efFnxoL2gCfeqNa
4jDh1QysBjb6K0IOb/5KNQA=
=upiy
-----END PGP SIGNATURE-----