Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

how to change values of @INC
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

Report this thread to moderator Post Follow-up to this message
Old Post
Bernd Mueller
09-22-04 08:57 PM


RE: how to change values of @INC
you 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>



Report this thread to moderator Post Follow-up to this message
Old Post
Raymond Raj
09-22-04 08:57 PM


RE: how to change values of @INC
Bernd 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

Report this thread to moderator Post Follow-up to this message
Old Post
Thomas Bätzler
09-22-04 08:57 PM


Re: how to change values of @INC

Bernd 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

Report this thread to moderator Post Follow-up to this message
Old Post
JupiterHost.Net
09-22-04 08:57 PM


Re: how to change values of @INC
Bernd 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

Report this thread to moderator Post Follow-up to this message
Old Post
Johannes Lichtenberger
09-22-04 08:57 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:14 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.