Skip to content

Instantly share code, notes, and snippets.

@aypn0s
Last active March 22, 2021 17:26
Show Gist options
  • Select an option

  • Save aypn0s/64750ebafe7fea0971a0ee74bba942cc to your computer and use it in GitHub Desktop.

Select an option

Save aypn0s/64750ebafe7fea0971a0ee74bba942cc to your computer and use it in GitHub Desktop.
Install fixes
Nokogiri install fix
---------------------
-- --use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2
Mysql2 install fix
---------------------
gem install mysql2 -v '0.4.10' --source 'https://rubygems.org/' -- --with-ldflags=-L/usr/local/opt/openssl/lib --with-cppflags=-I/usr/local/opt/openssl/include
libv8
---------------------
brew install v8@3.15
bundle config build.libv8 --with-system-v8
bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
bundle install
ffi install fix
---------------------
gem install ffi -v '1.x.x' -- --with-cflags="-Wno-error=implicit-function-declaration"
or
bundle config build.ffi --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