setting LD_LIBRARY_PATH

485 views
Skip to first unread message

Sayantan Datta

unread,
Jun 19, 2012, 10:38:50 PM6/19/12
to nitd...@googlegroups.com
i need to use this line in Qt .pro file
LIBS += -lcv -lhighgui


now, for that i did need to set the LD_LIBRARY_PATH global variable.
So, i added this line,

$LD_LIBRARY_PATH:/usr/local/libs; export LD_LIBRARY_PATH

to the files, .bashrc in /home/sayantan/ and also in /etc/ld.so.conf
now, after this, when i run this command,
ldconfig -v

i get the error as
ldconfig: Can't stat $LD_LIBRARY_PATH:/usr/local/lib/; export
LD_LIBRARY_PATH: No such file or directory
ldconfig: Path `/usr/lib' given more than once
ldconfig: Path `/usr/lib64' given more than once


how do i fix it? Anyone, please help

Tirtha Chatterjee

unread,
Jun 20, 2012, 2:46:24 AM6/20/12
to nitd...@googlegroups.com
On Wed, Jun 20, 2012 at 8:08 AM, Sayantan Datta <kenzo....@gmail.com> wrote:
> i need to use this line in Qt .pro file
> LIBS += -lcv -lhighgui
>
>
> now, for that i did need to set the LD_LIBRARY_PATH global variable.
> So, i added this line,
>
> $LD_LIBRARY_PATH:/usr/local/libs; export LD_LIBRARY_PATH

I think it should be
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

>
> to the files, .bashrc in /home/sayantan/ and also in /etc/ld.so.conf
> now, after this, when i run this command,
> ldconfig -v
>
> i get the error as
> ldconfig: Can't stat $LD_LIBRARY_PATH:/usr/local/lib/; export
> LD_LIBRARY_PATH: No such file or directory
> ldconfig: Path `/usr/lib' given more than once
> ldconfig: Path `/usr/lib64' given more than once
>
>
> how do i fix it? Anyone, please help
>
> --
> You received this message because you are subscribed to the Google Groups "GNU/Linux Users' Group, NIT Durgapur" group.
> To post to this group, send email to nitd...@googlegroups.com.
> To unsubscribe from this group, send email to nitdgplug+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nitdgplug?hl=en.
>



--
Regards
Tirtha Chatterjee
KDE developer
http://wyuka.co.cc/

Sayantan Datta

unread,
Jun 20, 2012, 6:00:54 AM6/20/12
to nitd...@googlegroups.com
On Wed, Jun 20, 2012 at 12:16 PM, Tirtha Chatterjee
<tirtha.p....@gmail.com> wrote:
> On Wed, Jun 20, 2012 at 8:08 AM, Sayantan Datta <kenzo....@gmail.com> wrote:
>> i need to use this line in Qt .pro file
>> LIBS += -lcv -lhighgui
>>
>>
>> now, for that i did need to set the LD_LIBRARY_PATH global variable.
>> So, i added this line,
>>
>> $LD_LIBRARY_PATH:/usr/local/libs; export LD_LIBRARY_PATH
>
> I think it should be
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
>

a similar error persists, :(

[root@kenzo450D Desktop]# ldconfig -v > allthefiles.txt
ldconfig: $LD_LIBRARY_PATH:/usr/local/lib is not a known library type
ldconfig: Can't stat export LD_LIBRARY_PATH: No such file or directory
ldconfig: Path `/usr/lib' given more than once
ldconfig: Path `/usr/lib64' given more than once
[root@kenzo450D Desktop]#

Tirtha Chatterjee

unread,
Jun 20, 2012, 6:44:28 AM6/20/12
to nitd...@googlegroups.com
On Wed, Jun 20, 2012 at 3:30 PM, Sayantan Datta <kenzo....@gmail.com> wrote:
> On Wed, Jun 20, 2012 at 12:16 PM, Tirtha Chatterjee
> <tirtha.p....@gmail.com> wrote:
>> On Wed, Jun 20, 2012 at 8:08 AM, Sayantan Datta <kenzo....@gmail.com> wrote:
>>> i need to use this line in Qt .pro file
>>> LIBS += -lcv -lhighgui
>>>
>>>
>>> now, for that i did need to set the LD_LIBRARY_PATH global variable.
>>> So, i added this line,
>>>
>>> $LD_LIBRARY_PATH:/usr/local/libs; export LD_LIBRARY_PATH
>>
>> I think it should be
>> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
>>
>
> a similar error persists, :(
>
> [root@kenzo450D Desktop]# ldconfig -v > allthefiles.txt
> ldconfig: $LD_LIBRARY_PATH:/usr/local/lib is not a known library type
> ldconfig: Can't stat export LD_LIBRARY_PATH: No such file or directory

I don't think you cannot put that in your .pro file. You need to set
the environment variable from the terminal.
Reply all
Reply to author
Forward
0 new messages