Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I need to run Image::IPTCInfo extension but my hosting company say they can't install it for me:

"Unfortunately we are unable to add this to the server in general. However you can install these in your webspace if they are compiled and then call on them in your script."

Basically I need to knwo how I can call the extension from my script as this doesn't work:

use Image::IPTCInfo;

I assume because the extension is not in the perl bin, just the local directory

can anyone help?

thanks
  • Comment on running a Perl extension not in the perl bin

Replies are listed 'Best First'.
Re: running a Perl extension not in the perl bin
by gellyfish (Monsignor) on Aug 14, 2003 at 10:18 UTC
Re: running a Perl extension not in the perl bin
by bm (Hermit) on Aug 14, 2003 at 10:28 UTC
    TMTOWTDI

    use lib '/my/webspace/perl_modules'; use Image::IPTCInfo;

    --
    bm
      perfecto!

      work like a charm

      thanks!
Re: running a Perl extension not in the perl bin
by Skeeve (Parson) on Aug 14, 2003 at 10:06 UTC
    I think you'll have to set the environment variable PERLLIB to point to the directory where you got your modules.