-
Notifications
You must be signed in to change notification settings - Fork 3
/
how_to_install_jekyll.txt
57 lines (37 loc) · 1.39 KB
/
how_to_install_jekyll.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Installing jekyll on mojave:
followed instructions here:
https://desiredpersona.com/install-jekyll-on-macos/
Differences from high sierra instructions:
1. mojave does not install macOS SDK headers.
2. use of sudo not recommended - better to put ruby in a user dir and set the path.
there is more on that page about managing multiple versions of ruby.
also might be useful info here
https://github.com/jekyll/jekyll-help/issues/73
# command history:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
# <follow gui instructions >
# install homebrew (if you need it)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install ruby
brew install ruby
# check version
ruby -v
# update bash profile with Ruby paths
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
echo 'export PATH=$HOME/gems/bin:$PATH' >> ~/.bash_profile
# source it to relaunch terminal
source ~/.bash_profile
# check versions
which ruby
gem env
# install jekyll
gem install bundler jekyll
# TO RUN JEKYLL:
cd bootstrap4-minimal
jekyll serve --incremental
# possible error, on Mac Mojave: "... Invalid US-ASCII character "\xE2" on line 6"
# run this cmd before jekyll serve:
export LANG=en_US.UTF-8
2022-05-11 addendum:
another good source for ruby info:
https://stevemarshall.com/journal/why-i-use-chruby/