Monday, November 05, 2007

Perl @INC (path for perl libraries) -- sleuthkit/autopsy error

Autopsy/Sleuthkit Error in console when trying to create timeline:

Can't locate Date/Manip.pm in @INC (@INC contains: /home/me/Desktop/sleuthkit-2.09/src/timeline//../../lib/ /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/local/sleuthkit/bin/mactime line 50.
BEGIN failed--compilation aborted at /usr/local/sleuthkit/bin/mactime line 50.


Fix:
What is @INC?

Appending to Perl's @INC array

The @INC array is a list of directories Perl searches when attempting to load modules. To display the current contents of the @INC array:

# perl -e "print join(\"\n\", @INC);"
Add the directory to the PERL5LIB environment variable (in the same terminal window where autopsy will be started):
# export PERL5LIB=/usr/local/sleuthkit/lib

http://www.brandonhutchinson.com/perl_inc.html
http://www.wellho.net/mouth/588_Changing-INC-where-Perl-loads-its-modules.html