[GENERAL] libpq++ installation error

View: New views
5 Messages — Rating Filter:   Alert me  

[GENERAL] libpq++ installation error

by jubeh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 Y ou Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Re: [GENERAL] libpq++ installation error

by vishal saberwal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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

On 12/19/05, salah jubeh <s_jubeh@...> 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 there
 
regards

__________________________________________________
Do Y ou Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



Interface to posgresql

by makhan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: Interface to posgresql

by Shane Ambler-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...

Get Sheeky @ http://Sheeky.Biz

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org/

Parent Message unknown Re: Interface to posgresql

by Shane Ambler-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

emoazzam@... 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@...
>>
>> Get Sheeky @ http://Sheeky.Biz
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 4: Have you searched our list archives?
>>
>>                http://archives.postgresql.org/
>>
>>
> Quoted from:
> http://www.nabble.com/-GENERAL--libpq%2B%2B-installation-error-tf771167.html#a9284057
>
>


--

Shane Ambler
pgSQL@...

Get Sheeky @ http://Sheeky.Biz

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