Skip to content

Instantly share code, notes, and snippets.

@7Mendez
Last active January 23, 2025 21:42
Show Gist options
  • Select an option

  • Save 7Mendez/156ffc2883f86b9aafa73fe47e8284d8 to your computer and use it in GitHub Desktop.

Select an option

Save 7Mendez/156ffc2883f86b9aafa73fe47e8284d8 to your computer and use it in GitHub Desktop.
Ruby Native Gem Installs in Mac

PG (postgresql gem)

  • Install dependencies. brew install libpq and set in the ENV:export PATH="/opt/homebrew/bin:$PATH".
  • Example: gem install pg -- --with-pg-config=/path/to/pg_config
  • Using a postgres app gem install pg -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config

Mimemmagic

  • Install dependencies. brew install shared-mime-info
  • gem install mimemagic

image_magick

  • Install dependencies. brew install imagemagick@6 && brew link imagemagick@6 --force and set in the ENV:export PATH="/opt/homebrew/opt/imagemagick@6/bin:$PATH".
  • gem install image_magick

wkhtmltopdf

Redis

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