Re: Hosting Won't Install Module
- From: "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx>
- Date: Thu, 8 Dec 2005 07:44:49 +1100
"mike" <hillmw@xxxxxxxxxxx> wrote in message
news:1133983695.195644.165810@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> If getting the error message: "Can't locate blah/blah.pm in @INC"
>
> I have a module that I'd like to install that the hosting site will
> not.
>
> Can I put the module somewhere in my directory structure myself and
> call it from my script?
>
> How would I do that? Anyone have an example?
>
See 'perldoc perlmodinstall'.
If it's a pure perl module (no compilation) required then you can just
upload the '.pm' file to /my/perl/directory and start your scripts with:
use lib "/my/perl/directory";
If you do it like that be aware that, for a module called Some::Module,
Module.pm would need to be placed in the /my/perl/directory/Some folder ...
and if the module is named Some::Other::Module, then Module.pm would need to
be placed in /my/perl/directory/Some/Other folder.
Cheers,
Rob
.
- Follow-Ups:
- Re: Hosting Won't Install Module
- From: mike
- Re: Hosting Won't Install Module
- References:
- Hosting Won't Install Module
- From: mike
- Hosting Won't Install Module
- Prev by Date: Hosting Won't Install Module
- Next by Date: Re: Hosting Won't Install Module
- Previous by thread: Hosting Won't Install Module
- Next by thread: Re: Hosting Won't Install Module
- Index(es):
Relevant Pages
|
|