Skip to content

Instantly share code, notes, and snippets.

@caius
Last active November 13, 2020 21:54
Show Gist options
  • Save caius/ce84aa86f7c80fe1bafc2f8aa29f7571 to your computer and use it in GitHub Desktop.
Save caius/ce84aa86f7c80fe1bafc2f8aa29f7571 to your computer and use it in GitHub Desktop.
IBM SPSS Version 26 on macOS Big Sur
  1. install homebrew - https://brew.sh
brew install openjdk
sudo ln -sfn /usr/local/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk
(check `brew info openjdk` if that's still the correct command)
  1. Check java runs
java -version
  1. Open the SPSS version 26 DMG and run the installer app

  2. Wait for it to open a dialog box with something like "Allow app (null) to run on this machine", hit yes on everything

  3. Once you see a "Attemtped to open libjvm.dylib but not signed by a verified developer", leave the dialog on screen (Don't click "Bin")

  4. We need to find where the installer has unpacked the files it uses, find them using lsof as root

    Grab root and figure out where the installer has unpacked itself

sudo -s
lsof | grep libjdk
  1. Go mark files as quaratined so installer runs okay

    The path for libjvm.dylib needs /server/libjvm.dylib stripping from the end, then go to that folder and strip the quarantine attribute from all files in there so Gatekeeper shuts the fuck up.

cd /private/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/IA602780689/IA602780689/jre/lib/
find . -type f -print0 | xargs -0 xattr -d com.apple.quarantine
  1. In theory the installer should now just continue, possibly need to click "cancel" on the original "libjvm.dylib not signed" dialog.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment