Skip to content

Instantly share code, notes, and snippets.

@ryantuck
Created January 21, 2016 16:27
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 ryantuck/be2ac35868ea529bd83a to your computer and use it in GitHub Desktop.
Save ryantuck/be2ac35868ea529bd83a to your computer and use it in GitHub Desktop.
just install ruby.

install ruby when you don't do much ruby but want to download a gem

when gem install trello_cli yields permission errors:

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

you should download another ruby and use that as the default.

brew install ruby

find the version:

cd /usr/local/Cellar/ruby
ls

get the bin folder path:

cd /usr/local/Cellar/ruby/2.2.3/bin
pwd | pbcopy

and attach it to your PATH in your .bash_profile:

export PATH="/usr/local/Cellar/ruby/2.2.3/bin:$PATH"

then source that shit:

source ~/.bash_profile

and get on with life:

gem install trello_cli

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