Home Directory (non-root) installation

Started by wfsupport, September 06, 2013, 03:48:47 AM

Previous topic - Next topic

wfsupport

I'm unsure as to why this install method isn't described in the official install page, but sometimes users who do not have root access would like to install the package, and it's quite simple to do if you know about the magical INSTALL_BASE argument to Makefile.PL:

mkdir -p $HOME/src
cd $HOME/src
wget 'http://www.exiftool.org/Image-ExifTool-9.35.tar.gz'
tar -xzf Image-ExifTool-9.35.tar.gz
cd Image-ExifTool-9.35
perl Makefile.PL INSTALL_BASE=$HOME
make
make install

# Depending your default @INC, you might need to do something like this to ensure it's on the perl path:
# ln -s $HOME/lib/perl5 $HOME/bin/lib


The reason this is useful to post is because the Makefile doesn't include an appropriate variable to specify (don't do "make DESTDIR=$HOME install" -- that won't work!) and Makefile.PL doesn't mention INSTALL_BASE anywhere in the code.

Hope that helps!

Phil Harvey

Thanks.  I wasn't aware of this.  The complication with the Perl include path is unfortunate.  I think the current suggestion of just copying "exiftool" and its "lib" directory is simpler if you don't want to do the make install.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).