Code Comments
Programming Forum and web based access to our favorite programming groups.Hello, I am trying to run a perl script under apache2 and the error_log tells me something about : "Can't locate SiteDefs.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.5/x86_64-linux etc ...) at /usr/local/ensembl/perl/multi/unisearch line24., referer: http://localhost/ ... BEGIN failed--compilation aborted at ..." Would someone be so nice to explain me how i change the values in @INC, because i know where to find this SiteDefs.pm. Best Regards, Bernd
Post Follow-up to this messageyou can add new search path using=20 use lib 'path List'; for delete=20 no lib 'path list'; Raymond -----Original Message----- From: Bernd Mueller [mailto:bernd@nii.ac.jp] Sent: Wednesday, September 22, 2004 8:04 PM To: beginners@perl.org Subject: how to change values of @INC=20 Hello, I am trying to run a perl script under apache2 and the error_log tells = me =20 something about : "Can't locate SiteDefs.pm in @INC (@INC contains: =20 /usr/local/lib/perl5/5.8.5/x86_64-linux etc ...) at =20 /usr/local/ensembl/perl/multi/unisearch line24., referer: = http://localhost/ ... BEGIN failed--compilation aborted at ..." Would someone be so nice to explain me how i change the values in @INC, = because i know where to find this SiteDefs.pm. Best Regards, Bernd --=20 To unsubscribe, e-mail: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org <http://learn.perl.org/> <http://learn.perl.org/first-response>
Post Follow-up to this messageBernd Mueller <bernd@nii.ac.jp> asked: > Would someone be so nice to explain me how i change the > values in @INC, because i know where to find this SiteDefs.pm. You could use the "use lib" pragma, like use lib qw(/path/to/my/modules); HTH, Thomas
Post Follow-up to this messageBernd Mueller wrote: > > Hello, Hello, > I am trying to run a perl script under apache2 and the error_log tells > me something about : > "Can't locate SiteDefs.pm in @INC (@INC contains: > /usr/local/lib/perl5/5.8.5/x86_64-linux etc ...) at > /usr/local/ensembl/perl/multi/unisearch line24., referer: [url]http://localhost/[/url ] > ... > BEGIN failed--compilation aborted at ..." > > Would someone be so nice to explain me how i change the values in @INC, > because i know where to find this SiteDefs.pm. use lib '/dir/you/want'; HTH :) Lee.M - JupiterHost.Net
Post Follow-up to this messageBernd Mueller wrote: > I am trying to run a perl script under apache2 and the error_log tells > me something about : > "Can't locate SiteDefs.pm in @INC (@INC contains: > /usr/local/lib/perl5/5.8.5/x86_64-linux etc ...) at > /usr/local/ensembl/perl/multi/unisearch line24., referer: > http://localhost/ > ... > BEGIN failed--compilation aborted at ..." > > Would someone be so nice to explain me how i change the values in > @INC, because i know where to find this SiteDefs.pm. perldoc lib perldoc FindBin
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.