Getting the PostgreSQL installer out of quarantine on OS X Mountain LionPosted: January 15, 2013
In a noble attempt to start playing around with Pentaho 5.0 (aka Sugar), I downloaded the CI version and PostgreSQL, since it’s replaced MySQL as of 4.8 as the default database for the repository. After dutifully reading the README file and changing some shared memory settings (don’t skip this step), rebooting, and remounting the install image, I kicked off the install app. Nothing. No message, no popup, NOTHING. Except for a not so helpful message in the Console that indicated one of the install files was in quarantine because of TextEdit.
After a bit of searching, I found a helpful site that told me how to turn off quarantine (search for “quarantine”). It turns out there is a handy bash command to turn off the quarantine. “$ xattr -r -d com.apple.quarantine <file-name>”. The ‘-r’ recurses if this is a file. So, I cd’d to the /Volumes/PostgreSQL 9.2.2-1 and ran “$ xattr -r -d com.apple.quarantine postgresql-9.2.2-1-osx.app” since a .app file is really a directory. And …. it failed because it’s a mounted disk without write permissions.
That should have been obvious to me, but it’s late. So I copied the .app file to ~/Downloads and ran the command again. After a quick return I ran the install app with no further problems.
Now to do all the cool stuff I had originally planned before getting sidetracked.