Create a gist now

Instantly share code, notes, and snippets.

@DirtyF /
Last active Feb 5, 2018

What would you like to do?
Setup Jekyll on macOS with brew and rbenv

Type this into your

curl | bash
set -ex
brew update
brew install rbenv ruby-build
rbenv install 2.4.3
rbenv global 2.4.3
ruby -v
gem install jekyll bundler
rbenv rehash
if ! type rbenv | grep function; then
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
set +x
echo "Done! Close and reopen your terminal"

I get an error at the end of response to the first instruction "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failure while executing: git config --local --replace-all homebrew.private true"

Could this be something to do with Xcode? (Mac OSX 10.13 - latest update)
... thanks for any help


DirtyF commented Jan 10, 2018

Make sure you run xcode-select --install first.

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