Skip to content

Instantly share code, notes, and snippets.

@jjb
Last active March 26, 2021 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjb/28ded2df2a6e59f6b52632a2c4335697 to your computer and use it in GitHub Desktop.
Save jjb/28ded2df2a6e59f6b52632a2c4335697 to your computer and use it in GitHub Desktop.
sudo port selfupdate
sudo port install shared-mime-info
sudo mkdir -p /usr/local/share/mime/packages/
sudo ln -s /opt/local/share/mime/packages/freedesktop.org.xml /usr/local/share/mime/packages
# minimal test to see if it's working - if it is, now include in Gemfile like normal
gem install mimemagic -v '0.3.7' --source 'https://rubygems.org/'
@jjb
Copy link
Author

jjb commented Mar 26, 2021

symlink is no longer necessary as of mimemagicrb/mimemagic@574ae9e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment