Skip to content

Instantly share code, notes, and snippets.

@denisoster
Last active November 18, 2020 08:52
Show Gist options
  • Save denisoster/f2fe770807591d9fd7deb6414b62dd12 to your computer and use it in GitHub Desktop.
Save denisoster/f2fe770807591d9fd7deb6414b62dd12 to your computer and use it in GitHub Desktop.

Troubleshooting

Versions differ on projects!

Whe using rmagick

Linux:
Need install imagemagick6

PKG_CONFIG_PATH='/usr/lib/imagemagick6/pkgconfig' gem install rmagick -v '2.13.4'

Mac:

brew install imagemagick@6
PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig" gem install rmagick -v '2.13.4'

When using libv8
Mac:

brew install [email protected]
gem install libv8 -v '3.16.14.19' -- --with-system-v8

When using therubyracer
Mac:

gem install therubyracer -v '0.12.3' -- --with-system-v8 --with-v8-dir=/usr/local/Cellar/[email protected]/3.15.11.18_1

Troubleshooting only for Big Sure

Versions differ on projects!

When using puma
Maybe if updated to puma 5 the problem will be solved

gem install puma -v '4.3.6' -- --with-cflags="-Wno-error=implicit-function-declaration" 

When using pg

gem install pg -v '0.18.2' -- --with-cflags="-Wno-error=implicit-function-declaration" 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment