http://www.perlmonks.org?node_id=690828

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

My web host doesn't have the module Image::Exif from http://search.cpan.org/~ccpro/Image-EXIF-1.00.3/EXIF.pm.

I've installed numerous modules in a /lib/ directory before but they didn't have any C files in the directory. This one appears to be C.

Is there a version someone made that can be installed easily on a web host? Is there any way to get this one to work?

  • Comment on Installing Image::Exif in lib directory

Replies are listed 'Best First'.
Re: Installing Image::Exif in lib directory
by almut (Canon) on Jun 07, 2008 at 12:39 UTC

    The version you need depends on the specific architecture your webhost is running...

    What does perl -V (when run on your webserver) say?

    The idea would be to build the module on a compatible machine (or get it from someone who can do that for you), and then copy the architecture specific parts into an auto/Image/Exif subdirectory in your private Perl lib directory   (of course, that would only work if your host does allow you to execute/load private binaries/shared object files — in some cases this is deliberately disabled...)

      Bluehost currently runs Perl 5.8.7.

      Thanks

        The Perl version doesn't sufficiently identify what you'd need. The interesting part is the architecture, e.g. i486-linux, or x86_64-linux-thread-multi, or some such...

        Best is to just show the output of perl -V. If you don't have shell access, you could try to run that command in a CGI script...

Re: Installing Image::Exif in lib directory
by pc88mxer (Vicar) on Jun 07, 2008 at 17:38 UTC
    I've installed numerous modules in a /lib/ directory before but they didn't have any C files in the directory. This one appears to be C.
    Have a look at Image::ExifTool.

    From what I can tell it's pure perl, so you don't need a C compiler. (It's also been updated more recently.)

Re: Installing Image::Exif in lib directory
by sgifford (Prior) on Jun 08, 2008 at 03:54 UTC