- Install XCode and components
- Install homebrew
- Add binaries to path if you want
- Install ruby
- (Optional) Fix homebrew links if necessary
- Install RVM and stable ruby
- Install Jekyll
- Check Jekyll is working
- cd to your blog directory
- install dependencies
- serve blog with Jekyll and Bundler
This short guide shows you how to install and run a Jekyll blog in your Mac. Mojave broke some things for me in Homebrew, so this addresses some possible issues that you may also face.
Install XCode and components
Before starting this:
Install XCode, open it and install all components it asks you to.
Install homebrew
1
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
Add binaries to path if you want
1
| echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> ~/.zshrc
|
Install ruby
(Optional) Fix homebrew links if necessary
1
2
3
4
5
| sudo mkdir -p /usr/local/include
sudo mkdir -p /usr/local/lib
sudo chown -R $(whoami):admin /usr/local/include
sudo chown -R $(whoami):admin /usr/local/lib
brew list -1 | while read line; do brew unlink $line; brew link $line; done
|
Install RVM and stable ruby
1
| \curl -sSL https://get.rvm.io | bash -s stable --ruby
|
Install Jekyll
1
| sudo gem install jekyll
|
Check Jekyll is working
cd to your blog directory
install dependencies
serve blog with Jekyll and Bundler
1
| bundle exec jekyll serve
|