Create a gist now

Instantly share code, notes, and snippets.

@DirtyF /README.md
Last active Feb 5, 2018

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

Type this into your Terminal.app:

curl https://gist.githubusercontent.com/DirtyF/5d2bde5c682101b7b5d90708ad333bf3/raw/bbac59647ac66016cf443caf7d48c6ae173ae57f/setup-rbenv.sh | bash
#!/bin/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
fi
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
Cyberista

Owner

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