On Wed, Aug 27, 2003 at 06:00:40PM -0700 Reid Beels wrote:

> I'm trying to install a module (Image::Imlib2) which depends on  
> DynaLoader being able to find an external C library.  Normally, this  
> wouldn't cause a problem but I'm being forced to install the module on  
> a system which I do not have root access on and thus must store the  
> both the module and the library it seeks in a nonstandard location.   
> The location for the module is working fine, as expected, but I have  
> yet to find a way to tell DynaLoader to look in the correct place for  
> the library.  I have tried adding
> 
> push(@DynaLoader::dl_library_path, '/home/lwire/perllib/clib');
> 
> to both the script which I am calling Image::Imlib2 from and to  
> Imlib2.pm itself.  Either way, I receive the following error:
> 
> Can't load  
> '/home/lwire/perllib/lib/perl5/5.6.1//i686-linux/auto/Image/Imlib2/ 
> Imlib2.so' for module Image::Imlib2: libImlib2.so.1: cannot open shared  
> object file: No such file or directory a
> t /usr/lib/perl5/5.6.1/i686-linux/DynaLoader.pm line 206.
> 
> Do I need to be defining dl_library_path somewhere else or is there  
> some other method that I can use to define the search path??

Rather LD_LIBRARY_PATH. Set this environment variable so that it
contains the directory where the imlib2 object files reside. I think
that DynaLoader uses dlopen(3) and related functions to dynamically
include a library and those functions look in LD_LIBRARY_PATH.

Tassilo
-- 
$_=q#",}])!JAPH!qq(tsuJ[{@"tnirp}3..0}_$;//::niam/s~=)]3[))_$-3(rellac(=_$({
pam{rekcahbus})(rekcah{lrePbus})(lreP{rehtonabus})!JAPH!qq(rehtona{tsuJbus#;
$_=reverse,s+(?<=sub).+q#q!'"qq.\t$&."'!#+sexisexiixesixeseg;y~\n~~dddd;eval


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to