libpq++ installation error
I am trying to install and compile libpq++ i get this error
configure: error:
Can't find libpq-fe.h in . Are you sure the libpq
headers are installed correctly? They should be in the directory returned by
"pg_config --includedir".
If you do have libpq (the C-language client library for PostgreSQL) installed,
make sure you have the related development materials--mainly its header files--
as well as the library binary. Some system distributions keep the two in
seperate packages with names like "alibrary" and "alibrary-dev", respectively.
In that case, make sure you have the latter installed as well.
i have cheacked pg_config --includedir it gave me a correct path also i checked the include directory i found the requsted header file there
regards
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
I am not very good at this but you might wanna try -I (--include) compile
option for the path ...../postgresql-8.x.x/src/include and try if it works
...
thanks,
vish
Show quoted text
On 12/19/05, salah jubeh <s_jubeh@yahoo.com> wrote:
I am trying to install and compile libpq++ i get this error
configure: error:
Can't find libpq-fe.h in . Are you sure the libpq
headers are installed correctly? They should be in the directory returned
by
"pg_config --includedir".
If you do have libpq (the C-language client library for PostgreSQL)
installed,
make sure you have the related development materials--mainly its header
files--
as well as the library binary. Some system distributions keep the two in
seperate packages with names like "alibrary" and "alibrary-dev",
respectively.
In that case, make sure you have the latter installed as well.i have cheacked pg_config --includedir it gave me a correct path also i
checked the include directory i found the requsted header file thereregards
__________________________________________________
Do Y ou Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Hi
I am trying to connect to the postgresql and make quries usuing my
application in c language using the libpq library.can you please tell me how
to setup the enviromnet and where to place files so that I can run examples
given on the libpq site.( if I use gcc compiler on linux or borland turbo c)
Regards
--
View this message in context: http://www.nabble.com/-GENERAL--libpq%2B%2B-installation-error-tf771167.html#a9283255
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
makhan wrote:
Hi
I am trying to connect to the postgresql and make quries usuing my
application in c language using the libpq library.can you please tell me how
to setup the enviromnet and where to place files so that I can run examples
given on the libpq site.( if I use gcc compiler on linux or borland turbo c)Regards
The standard placing for the files is /usr/lib for libpq and
/usr/include for the header files.
These paths should be standard search paths for gcc
I believe the linux installs have these files as part of the devel
install - the postgresql-devel-xxx rpm - you will need to install that.
If you have done a manual setup and build from source then /usr would be
replaced with the prefix path used (./configure --prefix=...)
eg. /usr/local/pgsql/lib is a common one.
For gcc HEADER_SEARCH_PATHS is used for headers and LIBRARY_SEARCH_PATHS
for libs. Or -I can be used as an option to gcc and -L with ld when
linking. eg gcc -I /usr/local/pgsql/include myprog.c
--
Shane Ambler
pgSQL@Sheeky.Biz
Get Sheeky @ http://Sheeky.Biz
emoazzam@yahoo.com wrote:
Thanks Shane, I appreciate your help.
I have installed postgresql on windows and there is no /urs/lib and
/urs/include folder in this installation. Can you please tell me
why is that and what is the difference in the windwos and
linux intallations
With windows the include files and libraries are an optional extra.
I think the older installer was setup a bit different - you may need to
select custom install. When you get to install options you will find
Development at the bottom of the list, here you can select to have the
include files and libraries installed.
You will find them in the same folder as the other files installed.
This is in normally C:\Program Files\PostgreSQL\8.x
Regards
MAK
Shane Ambler-4 wrote:makhan wrote:
Hi
I am trying to connect to the postgresql and make quries usuing my
application in c language using the libpq library.can you please tell me
how
to setup the enviromnet and where to place files so that I can run
examples
given on the libpq site.( if I use gcc compiler on linux or borland turbo
c)Regards
The standard placing for the files is /usr/lib for libpq and
/usr/include for the header files.These paths should be standard search paths for gcc
I believe the linux installs have these files as part of the devel
install - the postgresql-devel-xxx rpm - you will need to install that.If you have done a manual setup and build from source then /usr would be
replaced with the prefix path used (./configure --prefix=...)
eg. /usr/local/pgsql/lib is a common one.For gcc HEADER_SEARCH_PATHS is used for headers and LIBRARY_SEARCH_PATHS
for libs. Or -I can be used as an option to gcc and -L with ld when
linking. eg gcc -I /usr/local/pgsql/include myprog.c--
Shane Ambler
pgSQL@Sheeky.BizGet Sheeky @ http://Sheeky.Biz
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?Quoted from:
http://www.nabble.com/-GENERAL--libpq%2B%2B-installation-error-tf771167.html#a9284057
--
Shane Ambler
pgSQL@Sheeky.Biz
Get Sheeky @ http://Sheeky.Biz
Import Notes
Reply to msg id not found: 10879604.4901172958031529.JavaMail.nabble@jubjub.nabble.comReference msg id not found: 10879604.4901172958031529.JavaMail.nabble@jubjub.nabble.com | Resolved by subject fallback