Sponsored Content
Full Discussion: unix Library path variables.
Top Forums Shell Programming and Scripting unix Library path variables. Post 302534496 by anilcliff on Tuesday 28th of June 2011 05:49:08 AM
Old 06-28-2011
Two questions:

I)

Thank you. I ran these commands.

Code:
[root@ffmpeg /]# PKG_CONFIG_PATH=/usr/local/myapps/lib
[root@ffmpeg /]# PKG_CONFIG_PATH=/usr/local/myapps/lib/pkgconfig
[root@ffmpeg /]# export PKG_CONFIG_PATH
[root@ffmpeg /]# LDFLAGS=-L/usr/local/myapps/lib
[root@ffmpeg /]# export LDFLAGS
[root@ffmpeg /]# CPPFLAGS=-I/usr/local/myapps/include
[root@ffmpeg /]# export CPPFLAGS
[root@ffmpeg /]#
[root@ffmpeg /]# echo $PKG_CONFIG_PATH
/usr/local/myapps/lib/pkgconfig
[root@ffmpeg /]#
[root@ffmpeg /]# echo $LDFLAGS
-L/usr/local/myapps/lib
[root@ffmpeg /]#
[root@ffmpeg /]# echo $CPPFLAGS
-I/usr/local/myapps/include

Then installed libraw1394. The files got installed fine in the following locations.
Code:
/usr/local/myapps/include/libraw1394
/usr/local/myapps/include/libraw1394/csr.h
/usr/local/myapps/include/libraw1394/ieee1394.h
/usr/local/myapps/include/libraw1394/raw1394.h
/usr/local/myapps/lib/libraw1394.a
/usr/local/myapps/lib/libraw1394.la
/usr/local/myapps/lib/libraw1394.so
/usr/local/myapps/lib/libraw1394.so.11
/usr/local/myapps/lib/libraw1394.so.11.0.1
/usr/local/myapps/lib/pkgconfig/libraw1394.pc

Now, when I try to install libdc1394 which checks for the occurence of libraw, says libraw is not installed. Why the configure script fails to check at the at the path /usr/local/myapps ?

Code:
Configuration (libdc1394):

    libraw1394 support (Linux legacy):  Disabled (libraw1394 not found)

What environment variable needs to be set?


II)
I install ffmpeg with prefix as /usr/local/myapps . But after installing it, when I type "/usr/local/myapps/bin/ffmpeg -version" it says libraries such as libavfilter.so.15 not found. I did an strace and found that ffmpeg binary checks the .so files in the paths, /lib64, /usr/lib64 etc and fails. I have to make symlinks to make this work. How to make ffmpeg binary check the libraries at /usr/local/myapps/lib itself?

---------- Post updated at 02:12 PM ---------- Previous update was at 01:55 PM ----------

Got the answer to the first question.
I opened the file /usr/local/myapps/lib/pkgconfig/libraw1394.pc and saw "Libs: -L${libdir}".
I set the LIBS env variable as follows.

Code:
LIBS=-L/usr/local/myapps/lib

That solved the issue.

Please help me how to solve FFmpeg issue described above.

---------- Post updated at 03:19 PM ---------- Previous update was at 02:12 PM ----------

Solved!!
I was able to solve the secind issue

Add "/usr/local/myapps/lib" to a new file /etc/ld.so.conf.d/myapps.conf and run the command below.
Code:
ldconfig

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

library path

How do you get an application to use an alternate library? Dave:confused: (2 Replies)
Discussion started by: nucca
2 Replies

2. HP-UX

removing library path

Hi Everyone I have written an installer dependant on several shared libraries. I am attempting to strip the full path from these dependant libraries using the chatr command via a script file but am having no success. Running ldd on the intaller exe fails with the following error. Cant open... (4 Replies)
Discussion started by: C3000
4 Replies

3. Shell Programming and Scripting

Setting path for a stand alone library in home directory

Hi all, This is probably a basic question. I had installed a stand-alone library called szip in my home directory, as I don't have the necessary root permission. I tried to set an environment for both include and lib files in my .cshrc script as setenv /home/szip/lib setenv... (3 Replies)
Discussion started by: alamcheril
3 Replies

4. UNIX for Advanced & Expert Users

library path in linux

Is there something which is an alternative to the variable LD_LIBRARY_PATH? The behaviour of this variable is that the path specified here will be checked before checking usual paths. But I want to have some folders checked for shared libraries after the usual paths. i.e usual paths have to... (3 Replies)
Discussion started by: bbala
3 Replies

5. Shell Programming and Scripting

Library on Remote machine or $PATH is not working..

I don't know how to put this. However here is the problem. While executing command remotely on a Unix machine i get an error /usr/lib/hpux32/dld.so: Unable to find library 'libxerces-c.sl.21'. However when i execute the command on the remote machine locally. it works fine. Also i have... (2 Replies)
Discussion started by: suraj.sheikh
2 Replies

6. UNIX for Advanced & Expert Users

Can't find path for shared library: libintl.sl

Hello, Any inputs about this one? /usr/lib/dld.sl: Can't find path for shared library: libintl.sl /usr/lib/dld.sl: No such file or directory : Core file for 32-bit PA-RISC application : /tmp/usr/local/bin/git saved to /etc/core.git. ABORT instruction (core dumped) bash-4.0# echo... (3 Replies)
Discussion started by: SystemAddict
3 Replies

7. Programming

C++ library path

Hello, How to set up the path for downloaded C/C++ libraries (or, header files) so that they can be included like system headers (stdio.h or iostream)? The libraries/headers are from a package containing different folders each has different sets of headers and put in... (1 Reply)
Discussion started by: yifangt
1 Replies

8. AIX

Embedding Runtime Search Path into Library on AIX

My product has 2 libraries say "x & y". x depends on y. During the installation of my products package, user will be prompted for his own location to copy my product libraries. Installation will copy libraries "x & y" and create my product specific ENV variable say "MYPATH" pointing to User... (4 Replies)
Discussion started by: erra_krishna
4 Replies

9. Programming

Library/header path for ./configure

Hello, I am always confused about adding library path for ./configure when compiling software under Linux Debian based OS. For example the README of the software tells --with-boost=PATH specify directory for the boost header files --with-mpi=PATH specify prefix directory for... (4 Replies)
Discussion started by: yifangt
4 Replies

10. AIX

AIX full path to socket library

Can somebody help me too identify full path to socket library on AIX? Cannot find anything Thanks for contribution (2 Replies)
Discussion started by: digioleg54
2 Replies
All times are GMT -4. The time now is 07:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy