Skip to content

Instantly share code, notes, and snippets.

@delneet
Last active February 15, 2022 13:58
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 delneet/17765911b43efde5faf1bd067f7e0698 to your computer and use it in GitHub Desktop.
Save delneet/17765911b43efde5faf1bd067f7e0698 to your computer and use it in GitHub Desktop.
Bundle install options for failing gems with native extenstions

Postgress

brew install libpq
gem install pg -- --with-pg-config=$(brew --prefix libpq)/bin/pg_config

Mysql2

Replace mysql version with installed version.

gem install mysql2 -- --with-ldflags=-L$(brew --prefix mysql@5.7)/lib --with-cppflags=-I$(brew --prefix mysql@5.7)/include

Mimemagick

brew install shared-mime-info

Rsvg / gnome

An error occurred while installing gio2

In Gemfile:
  rsvg2 was resolved to 3.4.3, which depends on
    cairo-gobject was resolved to 3.4.3, which depends on
      cairo

# or      

In Gemfile:
  rsvg2 was resolved to 3.4.3, which depends on
    gdk_pixbuf2 was resolved to 3.4.3, which depends on
      gio2
brew install librsvg
gem install pkg-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment