I've run into a problem whereby I need to make perl read a bunch of images and return their width and height in a pair of values. I found the Image::Size module, but I don't have root access and my admin doesn't want to install it. I need to either find out if there's a way to install it locally or (better yet) if there's a lighter-weight alternative. Any suggestions?
I don't even mind doing it "the long way", but my Perl's not that great, so that would take a long time and I need this today.
If you can think of anything, please let me know.
M
You can easily install almost any module yourself.
Place Image::Size dir in the same dir as your script and it will work fine in most cases.
If it still does not work, add this to the begining of your script.
use lib './'; So you tree should look something like this:
yourscript.pl
Image
¦_ Size.pm
This is my first time trying to install a module, so I'm just following the readme instructions which tell me to
perl Makefile.PL
make && make test
Which works fine. Then the next step:
make install
starts up fine but dies on a series of "you don't have access to where perl lives"-type messages. I assume there's some kind of flags I can use (I looked at man install but didn't see anything obvious), but I'm afraid to use them when I really don't know what I'm doing unix-wise.
So what do I do?