From: | Asif Naeem <anaeem(dot)it(at)gmail(dot)com> |
---|---|
To: | Aqz <poczta(at)aquaz(dot)eu> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Trouble finding libpq on Centos 6.5 |
Date: | 2014-05-08 12:34:40 |
Message-ID: | CAEB4t-NcGe-+obCK823QyYe0u-2+a-xObufo-2b6NkA36-SBZw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, May 8, 2014 at 5:02 PM, Aqz <poczta(at)aquaz(dot)eu> wrote:
> I have devel package installed.
>
> Centos postgresql package adds file to /etc/ld.so.conf.d with path to
> pgsql libraries directory (/usr/pgsql-9.3/lib/) so I don't think that is
> the problem.
> As you can see in my first message ldconfig -p lists libpq library among
> others..
> Also :
> $ LD_LIBRARY_PATH="/usr/pgsql-9.3/lib" ld -lpq
> ld: cannot find -lpq
>
I am not sure if Linux linker (ld) pick run time linker/loader paths by
default ( AFAIR Solaris compiler/linker can use library search path from
LD_LIBRARY_PATH etc ). I would suggest to use -L or add directory
/usr/pgsql-9.3/lib to linker (ld) default library search path. you can
check current search path via "ld --verbose | grep SEARCH_DIR".
> 2014-05-08 13:14 GMT+02:00 Asif Naeem <anaeem(dot)it(at)gmail(dot)com>:
>
>> Hi,
>>
>> Yes. It seems that /usr/pgsql-9.3/lib is not in linker default library
>> search path. You may either require to provide it explicitly via -L option
>> while linking or add /usr/pgsql-9.3/lib to the default library search path.
>>
>> As suggested by Alberto, for development work related devel package is
>> required.
>>
>> Regards,
>> Muhammad Asif Naeem
>>
>> On Thu, May 8, 2014 at 1:06 PM, Alberto Cabello Sánchez <alberto(at)unex(dot)es>
>> wrote:
>>
>>> On Thu, 8 May 2014 08:54:44 +0200
>>> Aqz <poczta(at)aquaz(dot)eu> wrote:
>>>
>>> > Hi.
>>> >
>>> > I'm not sure if I should write here, or on a Centos mailing list...
>>> >
>>> > I have fresh, vanilla Centos 6.5 with postgresql yum repository added.
>>> > I've successfully installed postgresql93 and postgresql93-libs
>>> packages,
>>> > but still :
>>> >
>>> > $ ld -lpq
>>> > ld: cannot find -lpq
>>> >
>>> > $ ldconfig -p
>>> > libpq.so.5 (libc6,x86-64) => /usr/pgsql-9.3/lib/libpq.so.5
>>> > libpq.so (libc6,x86-64) => /usr/pgsql-9.3/lib/libpq.so
>>> >
>>> >
>>> > What did I do wrong?
>>>
>>> Hi, Wojtek
>>>
>>> Maybe you need to install postgresql93-devel package?
>>>
>>>
>>> --
>>> Alberto Cabello Sánchez <alberto(at)unex(dot)es>
>>>
>>>
>>> --
>>> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
>>> To make changes to your subscription:
>>> http://www.postgresql.org/mailpref/pgsql-general
>>>
>>
>>
>
>
> --
> Wojtek Dziubiński
> www.aquaz.eu
>
From | Date | Subject | |
---|---|---|---|
Next Message | Sim Zacks | 2014-05-08 13:05:59 | Re: Receiving many more rows than expected |
Previous Message | Alberto Cabello Sánchez | 2014-05-08 12:28:51 | Re: Trouble finding libpq on Centos 6.5 |