Merge pull request #3999 from chrisfinazzo/instructions-for-el-capitan
Merge pull request 3999
This commit is contained in:
commit
a1fdf830db
|
@ -40,6 +40,15 @@ export PATH=$PATH:/home/private/gems/bin
|
||||||
export RB_USER_INSTALL='true'
|
export RB_USER_INSTALL='true'
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
To install RubyGems on Gentoo:
|
||||||
|
|
||||||
|
{% highlight bash %}
|
||||||
|
sudo emerge -av dev-ruby/rubygems
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
On Windows, you may need to install [RubyInstaller
|
||||||
|
DevKit](https://wiki.github.com/oneclick/rubyinstaller/development-kit).
|
||||||
|
|
||||||
On Mac OS X, you may need to update RubyGems (using `sudo` only if necessary):
|
On Mac OS X, you may need to update RubyGems (using `sudo` only if necessary):
|
||||||
|
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
|
@ -60,20 +69,57 @@ which may allow you to install native gems using this command (again using
|
||||||
sudo gem install jekyll
|
sudo gem install jekyll
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Note that upgrading MacOS X does not automatically upgrade Xcode itself
|
Note that upgrading Mac OS X does not automatically upgrade Xcode itself
|
||||||
(that can be done separately via the App Store), and having an out-of-date
|
(that can be done separately via the App Store), and having an out-of-date
|
||||||
Xcode.app can interfere with the command line tools downloaded above. If
|
Xcode.app can interfere with the command line tools downloaded above. If
|
||||||
you run into this issue, upgrade Xcode and install the upgraded Command
|
you run into this issue, upgrade Xcode and install the upgraded Command
|
||||||
Line Tools.
|
Line Tools.
|
||||||
|
|
||||||
To install RubyGems on Gentoo:
|
### Jekyll & Mac OS X 10.11
|
||||||
|
|
||||||
|
With the introduction of System Integrity Protection, several directories
|
||||||
|
that were previously writable are now considered system locations and are no
|
||||||
|
longer available. Given these changes, the simplest way to get up and running
|
||||||
|
is to install Homebrew and then use it to set up Ruby. This can be done as
|
||||||
|
follows:
|
||||||
|
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
sudo emerge -av dev-ruby/rubygems
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
On Windows, you may need to install [RubyInstaller
|
Once Homebrew is installed, the second step is easy:
|
||||||
DevKit](https://wiki.github.com/oneclick/rubyinstaller/development-kit).
|
|
||||||
|
{% highlight bash %}
|
||||||
|
brew install ruby
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
Advanced users (with more complex needs) may find it helpful to choose one of a
|
||||||
|
number of Ruby version managers ([RVM][], [rbenv][], [chruby][], [etc][].) in
|
||||||
|
which to install Jekyll.
|
||||||
|
|
||||||
|
[RVM]: https://rvm.io
|
||||||
|
[rbenv]: http://rbenv.org
|
||||||
|
[chruby]: https://github.com/postmodern/chruby
|
||||||
|
[etc]: https://github.com/rvm/rvm/blob/master/docs/alt.md
|
||||||
|
|
||||||
|
If you elect to use one of the above methods to install Ruby, it might be
|
||||||
|
necessary to modify your `$PATH` variable using the following command:
|
||||||
|
|
||||||
|
{% highlight bash %}
|
||||||
|
export PATH=/usr/local/bin:$PATH
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
GUI apps can modify the `$PATH` as follows:
|
||||||
|
|
||||||
|
{% highlight bash %}
|
||||||
|
launchctl setenv PATH "/usr/local/bin:$PATH"
|
||||||
|
{% endhighlight %}
|
||||||
|
|
||||||
|
Either of these approaches are useful because `/usr/local` is considered a
|
||||||
|
"safe" location on systems which have SIP enabled, they avoid potential
|
||||||
|
conflicts with the version of Ruby included by Apple, and it keeps Jekyll and
|
||||||
|
its dependencies in a sandboxed environment. This also has the added
|
||||||
|
benefit of not requiring `sudo` when you want to add or remove a gem.
|
||||||
|
|
||||||
### Could not find a JavaScript runtime. (ExecJS::RuntimeUnavailable)
|
### Could not find a JavaScript runtime. (ExecJS::RuntimeUnavailable)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue