autopsy icon indicating copy to clipboard operation
autopsy copied to clipboard

4.20.0 - M1 mac using current instructions, results in PhotoRec not found

Open enewhuis opened this issue 2 years ago • 6 comments

./install_application.sh -z ~/Downloads/autopsy-4.20.0.zip -i ~/autospy -j $(/usr/libexec/java_home -v 1.8)

... 
Setting up application at /Users/e64/autospy/autopsy-4.20.0/...
~/autospy/autopsy-4.20.0 ~/Downloads/autopsy-4.20.0/linux_macos_install_scripts
---------------------------------------------
Checking prerequisites and preparing autopsy:
---------------------------------------------
~/autospy/autopsy-4.20.0 ~/autospy/autopsy-4.20.0
Checking for PhotoRec...ERROR: PhotoRec not found, please install the testdisk package.
Unable to setup permissions for application binaries
% brew info testdisk
==> testdisk: stable 7.1 (bottled)
Powerful free data recovery utility
https://www.cgsecurity.org/wiki/TestDisk
/opt/homebrew/Cellar/testdisk/7.1 (22 files, 1.7MB) *
  Poured from bottle on 2023-01-27 at 08:45:19
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/testdisk.rb
License: GPL-2.0

enewhuis avatar Jan 27 '23 15:01 enewhuis

% which photorec
/opt/homebrew/bin/photorec

enewhuis avatar Jan 28 '23 02:01 enewhuis

# Verify PhotoRec was installed
echo -n "Checking for PhotoRec..."
photorec_filepath=/usr/bin/photorec
photorec_osx_filepath=/usr/local/bin/photorec
if [ -f "$photorec_filepath" ]; then
    echo "found in $(dirname $photorec_filepath)"
elif [ -f "$photorec_osx_filepath" ]; then
    echo "found in $(dirname $photorec_osx_filepath)"
else
    echo "ERROR: PhotoRec not found, please install the testdisk package."
    exit 1
fi

enewhuis avatar Jan 28 '23 02:01 enewhuis

Possible quick fix in unix_setup.sh:

photorec_osx_filepath=$(which photorec)

enewhuis avatar Jan 28 '23 03:01 enewhuis

Were you able to get this working with your Fix?

markmckinnon avatar Jan 31 '23 00:01 markmckinnon

Yes but was unable to get it running properly due to the core plug-in not loading. I've been using Wineskin for now.

enewhuis avatar Jan 31 '23 16:01 enewhuis

Possible quick fix in unix_setup.sh:

photorec_osx_filepath=$(which photorec)

This fix didn't work for me. Did Wineskin work well?

lizfischer avatar Jul 25 '23 16:07 lizfischer