Skip to content

Instantly share code, notes, and snippets.

@josh64x2
Last active January 21, 2019 02:30
Show Gist options
  • Save josh64x2/39d9623058b6209cd4eb5b476c648dfb to your computer and use it in GitHub Desktop.
Save josh64x2/39d9623058b6209cd4eb5b476c648dfb to your computer and use it in GitHub Desktop.
Reinstall ruby gems
  1. gem list | cut -d" " -f1 > gem_list.txt
  2. cat gem_list.txt | xargs gem install
@josh64x2
Copy link
Author

If we need to include a non standard library path:

gem install some_extension_gem -- --with-extension-lib=/path/to/lib

from: https://stackoverflow.com/questions/41120566/how-to-pass-build-flags-like-with-ruby-include-to-gem-install#41121929

e.g.
gem update -- --with-idn-dir=/opt/homebrew

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