Skip to content

Instantly share code, notes, and snippets.

@gartha1
Created August 9, 2019 17:40
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 gartha1/3652a0f1b14de8b52b57d722afad272e to your computer and use it in GitHub Desktop.
Save gartha1/3652a0f1b14de8b52b57d722afad272e to your computer and use it in GitHub Desktop.
~$ brew unlink ruby
Unlinking /usr/local/Cellar/ruby/2.6.3... 0 symlinks removed
~$ echo $PATH
/usr/local/opt/ruby/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/rubymac/rubyrailshelperscripts:/opt/X11/bin:/Users/apple/.vimpkg/bin:/usr/local/opt/fzf/bin
~$ brew link ruby
Warning: Refusing to link macOS-provided software: ruby
If you need to have ruby first in your PATH run:
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
For compilers to find ruby you may need to set:
export LDFLAGS="-L/usr/local/opt/ruby/lib"
export CPPFLAGS="-I/usr/local/opt/ruby/include"
~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment