# Issues installing Jekyll on macOS Mojave

**URL:** <https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400>\
**Category:** Help\
**Created:** [December 9, 2018, 2:27pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400 "2018-12-09T14:27:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![desiredpersona](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/desiredpersona/32/18_2.png) [@desiredpersona](https://talk.jekyllrb.com/u/desiredpersona)\
**Post date:** [December 9, 2018, 2:27pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/1 "2018-12-09T14:27:23Z")

</div>

Some macOS users are reporting [install issues](https://github.com/jekyll/jekyll/issues/7274) so I took some time to try figure it out. The end goal is to solve this and improve the docs.

I was able to successfully install Jekyll with the following steps.

## Install Xcode Command Line Tools

1. Install the Xcode Command Line Tools using your Terminal app.

2. You will get a prompt and have to click the `install` button.

3. After installing the Xcode Command Line Tools you need to install the macOS SDK headers with the following command in your terminal.

* * *

Next we Install [Homebrew](https://brew.sh) a package manager for macOS.

**Why?**

We will use Homebrew to install rbenv.

**Why macOS already comes with a version of Ruby?**

A lot of the system directories in macOS are locked down making it unusable so we will use rbenv to manage Ruby.

* * *

## Install Homebrew

1. Install Homebrew by entering the following command in your Terminal app and hitting the RETURN key.

2. You will now be prompted to hit the RETURN key again to continue.

```auto
MacBook-Pro:jekyll-test-site Colin$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/include
/usr/local/sbin
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks

Press RETURN to continue or any other key to abort

```

1. You will be prompted to enter your Admin Password to allow the install to continue.

Output:

```auto
==> /usr/bin/sudo /bin/mkdir -p /usr/local/include /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
Password:

```

The Homebrew install will continue.

Output:

```auto
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/include /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown Colin /usr/local/include /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/include /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown Colin /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 47, done.
remote: Counting objects: 100% (47/47), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 115547 (delta 20), reused 36 (delta 19), pack-reused 115500
Receiving objects: 100% (115547/115547), 26.92 MiB | 350.00 KiB/s, done.
Resolving deltas: 100% (84431/84431), done.
From https://github.com/Homebrew/brew
* [new branch] master -> origin/master
* [new tag] 0.1 -> 0.1
* [new tag] 0.2 -> 0.2
* [new tag] 0.3 -> 0.3
* [new tag] 0.4 -> 0.4
* [new tag] 0.5 -> 0.5
* [new tag] 0.6 -> 0.6
* [new tag] 0.7 -> 0.7
* [new tag] 0.7.1 -> 0.7.1
* [new tag] 0.8 -> 0.8
* [new tag] 0.8.1 -> 0.8.1
* [new tag] 0.9 -> 0.9
* [new tag] 0.9.1 -> 0.9.1
* [new tag] 0.9.2 -> 0.9.2
* [new tag] 0.9.3 -> 0.9.3
* [new tag] 0.9.4 -> 0.9.4
* [new tag] 0.9.5 -> 0.9.5
* [new tag] 0.9.8 -> 0.9.8
* [new tag] 0.9.9 -> 0.9.9
* [new tag] 1.0.0 -> 1.0.0
* [new tag] 1.0.1 -> 1.0.1
* [new tag] 1.0.2 -> 1.0.2
* [new tag] 1.0.3 -> 1.0.3
* [new tag] 1.0.4 -> 1.0.4
* [new tag] 1.0.5 -> 1.0.5
* [new tag] 1.0.6 -> 1.0.6
* [new tag] 1.0.7 -> 1.0.7
* [new tag] 1.0.8 -> 1.0.8
* [new tag] 1.0.9 -> 1.0.9
* [new tag] 1.1.0 -> 1.1.0
* [new tag] 1.1.1 -> 1.1.1
* [new tag] 1.1.10 -> 1.1.10
* [new tag] 1.1.11 -> 1.1.11
* [new tag] 1.1.12 -> 1.1.12
* [new tag] 1.1.13 -> 1.1.13
* [new tag] 1.1.2 -> 1.1.2
* [new tag] 1.1.3 -> 1.1.3
* [new tag] 1.1.4 -> 1.1.4
* [new tag] 1.1.5 -> 1.1.5
* [new tag] 1.1.6 -> 1.1.6
* [new tag] 1.1.7 -> 1.1.7
* [new tag] 1.1.8 -> 1.1.8
* [new tag] 1.1.9 -> 1.1.9
* [new tag] 1.2.0 -> 1.2.0
* [new tag] 1.2.1 -> 1.2.1
* [new tag] 1.2.2 -> 1.2.2
* [new tag] 1.2.3 -> 1.2.3
* [new tag] 1.2.4 -> 1.2.4
* [new tag] 1.2.5 -> 1.2.5
* [new tag] 1.2.6 -> 1.2.6
* [new tag] 1.3.0 -> 1.3.0
* [new tag] 1.3.1 -> 1.3.1
* [new tag] 1.3.2 -> 1.3.2
* [new tag] 1.3.3 -> 1.3.3
* [new tag] 1.3.4 -> 1.3.4
* [new tag] 1.3.5 -> 1.3.5
* [new tag] 1.3.6 -> 1.3.6
* [new tag] 1.3.7 -> 1.3.7
* [new tag] 1.3.8 -> 1.3.8
* [new tag] 1.3.9 -> 1.3.9
* [new tag] 1.4.0 -> 1.4.0
* [new tag] 1.4.1 -> 1.4.1
* [new tag] 1.4.2 -> 1.4.2
* [new tag] 1.4.3 -> 1.4.3
* [new tag] 1.5.0 -> 1.5.0
* [new tag] 1.5.1 -> 1.5.1
* [new tag] 1.5.10 -> 1.5.10
* [new tag] 1.5.11 -> 1.5.11
* [new tag] 1.5.12 -> 1.5.12
* [new tag] 1.5.13 -> 1.5.13
* [new tag] 1.5.14 -> 1.5.14
* [new tag] 1.5.2 -> 1.5.2
* [new tag] 1.5.3 -> 1.5.3
* [new tag] 1.5.4 -> 1.5.4
* [new tag] 1.5.5 -> 1.5.5
* [new tag] 1.5.6 -> 1.5.6
* [new tag] 1.5.7 -> 1.5.7
* [new tag] 1.5.8 -> 1.5.8
* [new tag] 1.5.9 -> 1.5.9
* [new tag] 1.6.0 -> 1.6.0
* [new tag] 1.6.1 -> 1.6.1
* [new tag] 1.6.10 -> 1.6.10
* [new tag] 1.6.11 -> 1.6.11
* [new tag] 1.6.12 -> 1.6.12
* [new tag] 1.6.13 -> 1.6.13
* [new tag] 1.6.14 -> 1.6.14
* [new tag] 1.6.15 -> 1.6.15
* [new tag] 1.6.16 -> 1.6.16
* [new tag] 1.6.17 -> 1.6.17
* [new tag] 1.6.2 -> 1.6.2
* [new tag] 1.6.3 -> 1.6.3
* [new tag] 1.6.4 -> 1.6.4
* [new tag] 1.6.5 -> 1.6.5
* [new tag] 1.6.6 -> 1.6.6
* [new tag] 1.6.7 -> 1.6.7
* [new tag] 1.6.8 -> 1.6.8
* [new tag] 1.6.9 -> 1.6.9
* [new tag] 1.7.0 -> 1.7.0
* [new tag] 1.7.1 -> 1.7.1
* [new tag] 1.7.2 -> 1.7.2
* [new tag] 1.7.3 -> 1.7.3
* [new tag] 1.7.4 -> 1.7.4
* [new tag] 1.7.5 -> 1.7.5
* [new tag] 1.7.6 -> 1.7.6
* [new tag] 1.7.7 -> 1.7.7
* [new tag] 1.8.0 -> 1.8.0
* [new tag] 1.8.1 -> 1.8.1
* [new tag] 1.8.2 -> 1.8.2
* [new tag] 1.8.3 -> 1.8.3
* [new tag] 1.8.4 -> 1.8.4
HEAD is now at 38493a35a Merge pull request #5373 from EricFromCanada/man-page-text
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 4877, done.
remote: Counting objects: 100% (4877/4877), done.
remote: Compressing objects: 100% (4682/4682), done.
remote: Total 4877 (delta 48), reused 295 (delta 4), pack-reused 0
Receiving objects: 100% (4877/4877), 4.03 MiB | 774.00 KiB/s, done.
Resolving deltas: 100% (48/48), done.
Tapped 2 commands and 4662 formulae (4,919 files, 12.5MB).
==> Migrating /Library/Caches/Homebrew to /Users/Colin/Library/Caches/Homebrew...
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh

```

As you can see we have now installed Homebrew successfully.

## Install rbenv

1. Install rbenv with the following command using Homebrew.

```auto
brew install rbenv

```

Output:

```auto
MacBook-Pro:jekyll-test-site Colin$ brew install rbenv
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
diff-pdf doctl fluent-bit pdftoedn pdftoipe poppler

==> Installing dependencies for rbenv: autoconf, pkg-config and ruby-build
==> Installing rbenv dependency: autoconf
==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.69.mojave.bottle.4.tar.gz
==> Downloading from https://akamai.bintray.com/97/9724736d34773b6e41e2434ffa28fe79feccccf7b7786e54671441ca75115cdb? __gda__ =exp=1544304844~hmac=6c
######################################################################## 100.0%
==> Pouring autoconf-2.69.mojave.bottle.4.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/autoconf
==> Summary
🍺 /usr/local/Cellar/autoconf/2.69: 71 files, 3.0MB
==> Installing rbenv dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/85/85e5bbffb3424f22cd1bf54b69161110481bab100f9abea54e0a0f00fcf761b9? __gda__ =exp=1544304849~hmac=c5
######################################################################## 100.0%
==> Pouring pkg-config-0.29.2.mojave.bottle.tar.gz
🍺 /usr/local/Cellar/pkg-config/0.29.2: 11 files, 627.2KB
==> Installing rbenv dependency: ruby-build
==> Downloading https://github.com/rbenv/ruby-build/archive/v20181207.tar.gz
==> Downloading from https://codeload.github.com/rbenv/ruby-build/tar.gz/v20181207
######################################################################## 100.0%
==> ./install.sh
🍺 /usr/local/Cellar/ruby-build/20181207: 427 files, 214.8KB, built in 7 seconds
==> Installing rbenv
==> Downloading https://homebrew.bintray.com/bottles/rbenv-1.1.1.mojave.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring rbenv-1.1.1.mojave.bottle.1.tar.gz
🍺 /usr/local/Cellar/rbenv/1.1.1: 36 files, 62.8KB
==> Caveats
==> autoconf
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/autoconf

```

1. Set up rbenv in your shell.

```auto
rbenv init

```

Output:

```auto
MacBook-Pro:jekyll-test-site Colin$ rbenv init
# Load rbenv automatically by appending
# the following to ~/.bash_profile:

eval "$(rbenv init -)"

```

1. You can add the above line manually or run the following command to update your `.bash_profile` file.

```auto
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

```

1. Close your Terminal window and open a new one so your changes take effect.

2. Verify that rbenv is properly set up using this rbenv-doctor script:

```auto
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash

```

Output:

```auto
MacBook-Pro:jekyll-test-site Colin$ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
Checking for `rbenv' in PATH: /usr/local/bin/rbenv
Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: /usr/local/bin/rbenv-install (ruby-build 20181207)
Counting installed Ruby versions: none
  There aren't any Ruby versions installed under `/Users/Colin/.rbenv/versions'.
  You can install Ruby versions like so: rbenv install 2.2.4
Checking RubyGems settings: OK
Auditing installed plugins: OK

```

1. You can now list all available version of Ruby using `rbenv install -l`.

2. Let’s install the latest stable release which is currently `Ruby 2.5.3` as of writing.

```auto
rbenv install 2.5.3

```

Output:

```auto
MacBook-Pro:jekyll-test-site Colin$ rbenv install 2.5.3
ruby-build: use openssl from homebrew
Downloading ruby-2.5.3.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.tar.bz2
Installing ruby-2.5.3...
ruby-build: use readline from homebrew
Installed ruby-2.5.3 to /Users/Colin/.rbenv/versions/2.5.3

```

1. List all Ruby versions known to rbenv

```auto
rbenv versions

```

Output:

```auto
MacBook-Pro:jekyll-test-site Colin$ rbenv versions
  system
* 2.5.3 (set by /Users/Colin/.rbenv/version)

```

1. Set the global version of Ruby.

```auto
rbenv global 2.5.3

```

1. Confirm your global version of Ruby is set.

```auto
rbenv global

```

Output:

```auto
MacBook-Pro:jekyll-test-site Colin$ rbenv global
2.5.3

```

## Install Bundler

1. Installing [Bundler](https://bundler.io) provides a consistent environment for Ruby projects by tracking and installing the exact gems and versions that are needed.

```auto
gem install bundler

```

Output:

```auto
MacBook-Pro:jekyll-test-site Colin$ gem install bundler
Fetching: bundler-1.17.1.gem (100%)
Successfully installed bundler-1.17.1
Parsing documentation for bundler-1.17.1
Installing ri documentation for bundler-1.17.1
Done installing documentation for bundler after 3 seconds
1 gem installed

```

## Installing Jekyll

1. Install Jekyll

```auto
gem install jekyll

```

1. Check the Jekyll version.

```auto
jekyll -v

```

Done! 🤞

## How to update Jekyll

Bundler will update all your gems to the latest versions by simply running `bundle update` in a Terminal window.

Did you find this tutorial helpful?

---

<div class="post-metadata">

**Author:** ![Hordon13](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@Hordon13](https://talk.jekyllrb.com/u/Hordon13)\
**Post date:** [December 9, 2018, 2:44pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/2 "2018-12-09T14:44:10Z")

</div>

Hi Colin, do you have any easy method (other than reinstall macOS) to wipe the dev environment as you did? Maybe I have issues because during the content trying to make Jekyll work I messed up something. I guess it’s easier to start from scratch again.

---

<div class="post-metadata">

**Author:** ![desiredpersona](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/desiredpersona/32/18_2.png) [@desiredpersona](https://talk.jekyllrb.com/u/desiredpersona)\
**Post date:** [December 9, 2018, 2:51pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/3 "2018-12-09T14:51:17Z")

</div>

I didn’t reinstall macOS.

1. I made sure macOS Mojave is up to date. (I have a 2015 MacBook Pro which I upgraded from High Sierra to Mojave.)
2. I removed Xcode from my computer as I don’t need/use it personally. (Optional step, you might not have it installed)
3. I fully removed Homebrew. See step 0 above. (This is what I mean by removing dev environment)

---

<div class="post-metadata">

**Author:** ![Hordon13](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@Hordon13](https://talk.jekyllrb.com/u/Hordon13)\
**Post date:** [December 9, 2018, 2:53pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/4 "2018-12-09T14:53:19Z")

</div>

Okay, thanks. Will try to do the same and see if it’s work that way.

---

<div class="post-metadata">

**Author:** ![Hordon13](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@Hordon13](https://talk.jekyllrb.com/u/Hordon13)\
**Post date:** [December 9, 2018, 4:06pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/5 "2018-12-09T16:06:52Z")

</div>

Still unable to install Jekyll - everything else is okay ☹

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [December 9, 2018, 4:12pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/6 "2018-12-09T16:12:39Z")

</div>

Note: `rbenv` should not be the _default_ install method on Jekyll docs.

It _should_ work fine on macOS 10.14, given you have compilation headers installed and that you change default PATH for gems to `~/gems`.

**Most of the errors you encounter are related to those two operations.**

Note: What is still missing here is a way to check that headers are present in order to compile extensions like `ffi`.

Check you system:

```auto
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.14
BuildVersion:	18A391

$ ruby -v
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]

$ which ruby
/usr/bin/ruby

```

1. Install command line tools

`xcode-select --install`

1. Add this to you shell config file (`.bashrc`, `.zshrc`)

```auto
export GEM_HOME=$HOME/gems
export PATH=$HOME/gems/bin:$PATH

```

**This is recommended whatever method you choose to install Jekyll to avoid file permissions problems.**

Relaunch you terminal for the changes to be taken into account or `source` the config file.

1. Install bundler and jekyll

```auto
$ gem install bundler jekyll
Successfully installed bundler-1.17.1
Successfully installed jekyll-3.8.5
2 gems installed

$ which bundle
/Users/frank/gems/bin/bundle

```

**If the above method does not work for you or you want to run latest Ruby** , you should install ruby with `homebrew` :

`brew install ruby`

Then add Ruby path to you shell config file (mine is Zsh):

`echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc`

Relaunch your shell

`$ source ~/.zshrc`

Check ruby version:

```
$ ruby -v
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]

$ which ruby
/usr/local/opt/ruby/bin/ruby 

```

We now run latest stable Ruby, cool, Jekyll should be a bit faster.

Then follow the normal procedure:

```
$ gem install bundler jekyll
Successfully installed bundler-1.17.1
Successfully installed jekyll-3.8.5
2 gems installed

```

Gems should be installed in your home directory:

```
$ which bundler
/Users/frank/gems/bin/bundler

```

**If you want to be able to run different Ruby development environments** , then go with `rbenv` as @desiredpersona documented above.

---

<div class="post-metadata">

**Author:** ![Hordon13](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@Hordon13](https://talk.jekyllrb.com/u/Hordon13)\
**Post date:** [December 9, 2018, 5:02pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/7 "2018-12-09T17:02:19Z")

</div>

@Frank Yaaay! You are the man! I’m closer than ever - I guess fixing the “file permissions problems” part was the key. Now I successfully installed Jekyll - at least this is what the Terminal said. But when I type `jekyll -v` I have a "command not found’ error message. What’s

 ![46](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/7/725c95e1791a2adab65814577d159fa2a3d163b9.jpeg) wrong?

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [December 9, 2018, 5:47pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/8 "2018-12-09T17:47:17Z")

</div>

You shouldn’t use `sudo` to install gems, hence defining the GEM\_HOME in your home directory.

What groups do you belong to? (type `groups` to find out;)

What are the file permissions of `usr/local/lib/ruby` ? (it should be 755 aka `drwxr-xr-x` , type `ls -al /usr/local/lib/ruby` to check it out )

---

<div class="post-metadata">

**Author:** ![Hordon13](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@Hordon13](https://talk.jekyllrb.com/u/Hordon13)\
**Post date:** [December 9, 2018, 5:52pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/9 "2018-12-09T17:52:08Z")

</div>

@Frank This is what I get when I type the commands:

 ![19](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/1/13e6e4969d9456a6796df038c7b49e4baa7cf255.jpeg)

---

<div class="post-metadata">

**Author:** ![desiredpersona](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/desiredpersona/32/18_2.png) [@desiredpersona](https://talk.jekyllrb.com/u/desiredpersona)\
**Post date:** [December 9, 2018, 6:11pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/10 "2018-12-09T18:11:05Z")

</div>

Thanks for your time @Frank.

It’s the weekend so no rush, but I have a few questions for you.

For me, I don’t have a `.bashrc` file.

1. Do users just need to create that `.bashrc` file themselves if it doesn’t exist. (I don’t use Zsh.)
2. Is it necessary to reference that `.bashrc` file within your `.bash_profile` so that it loads.

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [December 9, 2018, 6:51pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/11 "2018-12-09T18:51:09Z")

</div>

you’re welcome @desiredpersona 😄

I would answer **yes** to both.  
But I guess you should be able to change GEM\_PATH in your `~/.bash_profile`.

See [https://stackoverflow.com/questions/415403/whats-the-difference-between-bashrc-bash-profile-and-environment](https://stackoverflow.com/questions/415403/whats-the-difference-between-bashrc-bash-profile-and-environment) for more details on the difference between those files.

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [December 10, 2018, 7:52pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/12 "2018-12-10T19:52:35Z")

</div>

Official documentation has been updated to reflect the tips shared in this post:

> **[Jekyll on macOS](https://jekyllrb.com/docs/installation/macos/)**
>
> First, you need to install the command-line tools to be able to compile native extensions, open a terminal and run:

---

<div class="post-metadata">

**Author:** ![desiredpersona](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/desiredpersona/32/18_2.png) [@desiredpersona](https://talk.jekyllrb.com/u/desiredpersona)\
**Post date:** [December 10, 2018, 9:55pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/13 "2018-12-10T21:55:08Z")

</div>

Thats great! Thanks again @Frank

---

<div class="post-metadata">

**Author:** ![anjandas](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@anjandas](https://talk.jekyllrb.com/u/anjandas)\
**Post date:** [December 10, 2018, 10:36pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/14 "2018-12-10T22:36:03Z")

</div>

@desiredpersona, @Frank, I have followed all the instruction suggested by you except the fact that I have not uninstalled homebrew. I am still getting issued while building native extensions during “gem install jekyll”. It is doing all the gem installation under $HOME/gems so there should not be any permission issues, but it is still failing.

---

<div class="post-metadata">

**Author:** ![Frank](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/frank/32/26_2.png) [@Frank](https://talk.jekyllrb.com/u/Frank)\
**Post date:** [December 10, 2018, 11:31pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/15 "2018-12-10T23:31:40Z")

</div>

> [@anjandas](#):
>
> I am still getting issued while building native extensions

Compilation problems are related to the installation of command line tools.

I had to install manually SDK headers when I upgraded, but some users have then reported that this package was not present on their system:

> <https://github.com/jekyll/jekyll/issues/7274#issuecomment-431590775>
>
> I used Jekyll on my MacBook Pro without any problem in the previous version of M…acOS. I updated my MacBook Pro to the new OS version (10.14), and Jekyll did not work anymore. So I uninstalled it, and now I cannot install it again. 
> 
> ruby 2.5.1p57 (2018-03-29 revision 63029) \[x86\_64-darwin18\]
> 
> I am using the following command to install
> \`sudo gem install bundler jekyll\`
> 
> \<details\>
> \<summary\>Output\</summary\>
> \`Successfully installed bundler-1.16.5
> Parsing documentation for bundler-1.16.5
> Done installing documentation for bundler after 3 seconds
> Building native extensions. This could take a while...
> ERROR: Error installing jekyll:
> ERROR: Failed to build gem native extension.
> 
> current directory: /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c
> /usr/local/opt/ruby/bin/ruby -r ./siteconf20180925-70551-fjs550.rb extconf.rb
> checking for ffi.h... no
> checking for ffi.h in /usr/local/include,/usr/include/ffi... no
> checking for shlwapi.h... no
> checking for ruby/thread.h... yes
> checking for rb\_thread\_blocking\_region()... no
> checking for rb\_thread\_call\_with\_gvl()... yes
> checking for rb\_thread\_call\_without\_gvl()... yes
> creating extconf.h
> creating Makefile
> 
> current directory: /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c
> make "DESTDIR=" clean
> 
> current directory: /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c
> make "DESTDIR="
> Configuring libffi
> configure: error: in \`/usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi-x86\_64-darwin18':
> configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> See \`config.log' for more details
> make: \*\*\* \[libffi.darwin.mk:32: "/usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi-x86\_64-darwin18"/.libs/libffi\_convenience.a\] Error 1
> 
> make failed, exit code 2
> 
> Gem files will remain installed in /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25 for inspection.
> Results logged to /usr/local/lib/ruby/gems/2.5.0/extensions/x86\_64-darwin-18/2.5.0/ffi-1.9.25/gem\_make.out
> 1 gem installed\`
> 
> The log file:
> \`This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> It was created by libffi configure 3.99999, which was
> generated by GNU Autoconf 2.69. Invocation command line was
> 
> $ /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/configure --disable-static --with-pic=yes --disable-dependency-tracking --disable-docs --host=
> 
> \## --------- ##
> \## Platform. ##
> \## --------- ##
> 
> hostname = Macbook-Pro-Henrique.local
> uname -m = x86\_64
> uname -r = 18.0.0
> uname -s = Darwin
> uname -v = Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE\_X86\_64
> 
> /usr/bin/uname -p = i386
> /bin/uname -X = unknown
> 
> /bin/arch = unknown
> /usr/bin/arch -k = unknown
> /usr/convex/getsysinfo = unknown
> /usr/bin/hostinfo = Mach kernel version:
> Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE\_X86\_64
> Kernel configured for up to 8 processors.
> 4 processors are physically available.
> 8 processors are logically available.
> Processor type: x86\_64h (Intel x86-64h Haswell)
> Processors active: 0 1 2 3 4 5 6 7
> Primary memory available: 8.00 gigabytes
> Default processor set: 411 tasks, 1633 threads, 8 processors
> Load average: 3.25, Mach factor: 4.74
> /bin/machine = unknown
> /usr/bin/oslevel = unknown
> /bin/universe = unknown
> 
> PATH: /Users/Henrique/Library/Orca401
> PATH: /usr/local/bin
> PATH: /Users/Henrique/Downloads/NAMD
> PATH: /opt/local/bin
> PATH: /opt/local/sbin
> PATH: /usr/local/bin
> PATH: /Library/Frameworks/Python.framework/Versions/3.4/bin
> PATH: /opt/local/bin
> PATH: /opt/local/sbin
> PATH: /usr/local/mysql/bin
> PATH: /usr/local/bin
> PATH: /usr/bin
> PATH: /bin
> PATH: /usr/sbin
> PATH: /sbin
> PATH: export AMBERHOME=/Users/Henrique/amber14
> PATH: export PATH=$PATH
> PATH: AMBERHOME/bin
> PATH: /usr/local/share/dotnet
> PATH: /opt/X11/bin
> PATH: /Applications/Server.app/Contents/ServerRoot/usr/bin
> PATH: /Applications/Server.app/Contents/ServerRoot/usr/sbin
> PATH: /Library/Frameworks/Mono.framework/Versions/Current/Commands
> PATH: /opt/ImageMagick/bin
> 
> 
> \## ----------- ##
> \## Core tests. ##
> \## ----------- ##
> 
> configure:2704: checking build system type
> configure:2718: result: x86\_64-apple-darwin18.0.0
> configure:2738: checking host system type
> configure:2751: result: x86\_64-apple-darwin18.0.0
> configure:2771: checking target system type
> configure:2784: result: x86\_64-apple-darwin18.0.0
> configure:2881: checking for gsed
> configure:2912: result: sed
> configure:2940: checking for a BSD-compatible install
> configure:3008: result: /usr/local/bin/ginstall -c
> configure:3019: checking whether build environment is sane
> configure:3074: result: yes
> configure:3222: checking for a thread-safe mkdir -p
> configure:3261: result: /usr/local/bin/gmkdir -p
> configure:3268: checking for gawk
> configure:3284: found /usr/local/bin/gawk
> configure:3295: result: gawk
> configure:3306: checking whether make sets $(MAKE)
> configure:3328: result: yes
> configure:3357: checking whether make supports nested variables
> configure:3374: result: yes
> configure:3559: checking for gcc
> configure:3586: result: clang
> configure:3815: checking for C compiler version
> configure:3824: clang --version \>&5
> Apple LLVM version 10.0.0 (clang-1000.11.45.2)
> Target: x86\_64-apple-darwin18.0.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> configure:3835: $? = 0
> configure:3824: clang -v \>&5
> Apple LLVM version 10.0.0 (clang-1000.11.45.2)
> Target: x86\_64-apple-darwin18.0.0
> Thread model: posix
> InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> configure:3835: $? = 0
> configure:3824: clang -V \>&5
> clang: error: argument to '-V' is missing (expected 1 value)
> clang: error: no input files
> configure:3835: $? = 1
> configure:3824: clang -qversion \>&5
> clang: error: unknown argument: '-qversion'
> clang: error: no input files
> configure:3835: $? = 1
> configure:3855: checking whether the C compiler works
> configure:3877: clang conftest.c \>&5
> configure:3881: $? = 0
> configure:3929: result: yes
> configure:3932: checking for C compiler default output file name
> configure:3934: result: a.out
> configure:3940: checking for suffix of executables
> configure:3947: clang -o conftest conftest.c \>&5
> configure:3951: $? = 0
> configure:3973: result: 
> configure:3995: checking whether we are cross compiling
> configure:4003: clang -o conftest conftest.c \>&5
> configure:4007: $? = 0
> configure:4014: ./conftest
> configure:4018: $? = 0
> configure:4033: result: no
> configure:4038: checking for suffix of object files
> configure:4060: clang -c conftest.c \>&5
> configure:4064: $? = 0
> configure:4085: result: o
> configure:4089: checking whether we are using the GNU C compiler
> configure:4108: clang -c conftest.c \>&5
> configure:4108: $? = 0
> configure:4117: result: yes
> configure:4126: checking whether clang accepts -g
> configure:4146: clang -c -g conftest.c \>&5
> configure:4146: $? = 0
> configure:4187: result: yes
> configure:4204: checking for clang option to accept ISO C89
> configure:4267: clang -c conftest.c \>&5
> configure:4267: $? = 0
> configure:4280: result: none needed
> configure:4305: checking whether clang understands -c and -o together
> configure:4327: clang -c conftest.c -o conftest2.o
> configure:4330: $? = 0
> configure:4327: clang -c conftest.c -o conftest2.o
> configure:4330: $? = 0
> configure:4342: result: yes
> configure:4370: checking for style of include used by make
> configure:4398: result: GNU
> configure:4424: checking dependency style of clang
> configure:4535: result: none
> configure:4608: checking for g++
> configure:4624: found /usr/local/bin/g++
> configure:4635: result: g++
> configure:4662: checking for C++ compiler version
> configure:4671: g++ --version \>&5
> g++ (GCC) 5.2.0
> Copyright (C) 2015 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> configure:4682: $? = 0
> configure:4671: g++ -v \>&5
> Using built-in specs.
> COLLECT\_GCC=g++
> COLLECT\_LTO\_WRAPPER=/usr/local/libexec/gcc/x86\_64-apple-darwin15.0.0/5.2.0/lto-wrapper
> Target: x86\_64-apple-darwin15.0.0
> Configured with: ../gcc-5.2.0/configure --enable-languages=c++,fortran
> Thread model: posix
> gcc version 5.2.0 (GCC) 
> configure:4682: $? = 0
> configure:4671: g++ -V \>&5
> g++: error: unrecognized command line option '-V'
> g++: fatal error: no input files
> compilation terminated.
> configure:4682: $? = 1
> configure:4671: g++ -qversion \>&5
> g++: error: unrecognized command line option '-qversion'
> g++: fatal error: no input files
> compilation terminated.
> configure:4682: $? = 1
> configure:4686: checking whether we are using the GNU C++ compiler
> configure:4705: g++ -c conftest.cpp \>&5
> configure:4705: $? = 0
> configure:4714: result: yes
> configure:4723: checking whether g++ accepts -g
> configure:4743: g++ -c -g conftest.cpp \>&5
> configure:4743: $? = 0
> configure:4784: result: yes
> configure:4809: checking dependency style of g++
> configure:4920: result: none
> configure:4950: checking dependency style of clang
> configure:5059: result: none
> configure:5121: checking how to print strings
> configure:5148: result: printf
> configure:5169: checking for a sed that does not truncate output
> configure:5233: result: /usr/local/bin/sed
> configure:5251: checking for grep that handles long lines and -e
> configure:5309: result: /usr/local/bin/ggrep
> configure:5314: checking for egrep
> configure:5376: result: /usr/local/bin/ggrep -E
> configure:5381: checking for fgrep
> configure:5443: result: /usr/local/bin/ggrep -F
> configure:5478: checking for ld used by clang
> configure:5545: result: ld
> configure:5552: checking if the linker (ld) is GNU ld
> configure:5567: result: no
> configure:5579: checking for BSD- or MS-compatible name lister (nm)
> configure:5633: result: /usr/bin/nm -B
> configure:5763: checking the name lister (/usr/bin/nm -B) interface
> configure:5770: clang -c conftest.c \>&5
> configure:5773: /usr/bin/nm -B "conftest.o"
> configure:5776: output
> 0000000000000000 S \_some\_variable
> configure:5783: result: BSD nm
> configure:5786: checking whether ln -s works
> configure:5790: result: yes
> configure:5798: checking the maximum length of command line arguments
> configure:5929: result: 196608
> configure:5977: checking how to convert x86\_64-apple-darwin18.0.0 file names to x86\_64-apple-darwin18.0.0 format
> configure:6017: result: func\_convert\_file\_noop
> configure:6024: checking how to convert x86\_64-apple-darwin18.0.0 file names to toolchain format
> configure:6044: result: func\_convert\_file\_noop
> configure:6051: checking for ld option to reload object files
> configure:6058: result: -r
> configure:6132: checking for objdump
> configure:6148: found /usr/bin/objdump
> configure:6159: result: objdump
> configure:6191: checking how to recognize dependent libraries
> configure:6391: result: pass\_all
> configure:6476: checking for dlltool
> configure:6506: result: no
> configure:6536: checking how to associate runtime and link libraries
> configure:6563: result: printf %s\\n
> configure:6624: checking for ar
> configure:6640: found /opt/local/bin/ar
> configure:6651: result: ar
> configure:6688: checking for archiver @FILE support
> configure:6705: clang -c conftest.c \>&5
> configure:6705: $? = 0
> configure:6708: ar cru libconftest.a @conftest.lst \>&5
> ar: @conftest.lst: No such file or directory
> configure:6711: $? = 1
> configure:6731: result: no
> configure:6789: checking for strip
> configure:6805: found /opt/local/bin/strip
> configure:6816: result: strip
> configure:6888: checking for ranlib
> configure:6904: found /opt/local/bin/ranlib
> configure:6915: result: ranlib
> configure:7017: checking command to parse /usr/bin/nm -B output from clang object
> configure:7170: clang -c conftest.c \>&5
> configure:7173: $? = 0
> configure:7177: /usr/bin/nm -B conftest.o \\| sed -n -e 's/^.\*\[\]\\(\[BCDEGRST\]\[BCDEGRST\]\*\\)\[\]\[\]\*\\(\[\_A-Za-z\]\[\_A-Za-z0-9\]\*\\)$/\\1 \\2 \\2/p' | sed '/ \_\_gnu\_lto/d' \\\> conftest.nm
> configure:7180: $? = 0
> cannot find nm\_test\_var in conftest.nm
> configure:7170: clang -c conftest.c \>&5
> configure:7173: $? = 0
> configure:7177: /usr/bin/nm -B conftest.o \\| sed -n -e 's/^.\*\[\]\\(\[BCDEGRST\]\[BCDEGRST\]\*\\)\[\]\[\]\*\_\\(\[\_A-Za-z\]\[\_A-Za-z0-9\]\*\\)$/\\1 \_\\2 \\2/p' | sed '/ \_\_gnu\_lto/d' \\\> conftest.nm
> configure:7180: $? = 0
> configure:7246: clang -o conftest conftest.c conftstm.o \>&5
> configure:7249: $? = 0
> configure:7287: result: ok
> configure:7334: checking for sysroot
> configure:7364: result: no
> configure:7371: checking for a working dd
> configure:7409: result: /bin/dd
> configure:7413: checking how to truncate binary pipes
> configure:7428: result: /bin/dd bs=4096 count=1
> configure:7757: checking for mt
> configure:7787: result: no
> configure:7807: checking if : is a manifest tool
> configure:7813: : '-?'
> configure:7821: result: no
> configure:7877: checking for dsymutil
> configure:7893: found /usr/bin/dsymutil
> configure:7904: result: dsymutil
> configure:7969: checking for nmedit
> configure:7985: found /opt/local/bin/nmedit
> configure:7996: result: nmedit
> configure:8061: checking for lipo
> configure:8077: found /opt/local/bin/lipo
> configure:8088: result: lipo
> configure:8153: checking for otool
> configure:8169: found /opt/local/bin/otool
> configure:8180: result: otool
> configure:8245: checking for otool64
> configure:8275: result: no
> configure:8320: checking for -single\_module linker flag
> clang -o libconftest.dylib -dynamiclib -Wl,-single\_module conftest.c
> configure:8353: result: yes
> configure:8356: checking for -exported\_symbols\_list linker flag
> configure:8376: clang -o conftest -Wl,-exported\_symbols\_list,conftest.sym conftest.c \>&5
> configure:8376: $? = 0
> configure:8386: result: yes
> configure:8389: checking for -force\_load linker flag
> clang -c -o conftest.o conftest.c
> ar cru libconftest.a conftest.o
> /opt/local/bin/ranlib: object: libconftest.a(conftest.o) malformed object (unknown load command 1)
> ar: internal ranlib command failed
> ranlib libconftest.a
> ranlib: object: libconftest.a(conftest.o) malformed object (unknown load command 1)
> clang -o conftest conftest.c -Wl,-force\_load,./libconftest.a
> ld: archive has no table of contents file './libconftest.a' for architecture x86\_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> configure:8421: result: no
> configure:8498: checking how to run the C preprocessor
> configure:8529: clang -E conftest.c
> configure:8529: $? = 0
> configure:8543: clang -E conftest.c
> conftest.c:11:10: fatal error: 'ac\_nonexistent.h' file not found
> \#include \<ac\_nonexistent.h\>
> ^ ~~~~~~~~~~~~~~~~~
> 1 error generated.
> configure:8543: $? = 1
> configure: failed program was:
> | /\* confdefs.h \*/
> | #define PACKAGE\_NAME "libffi"
> | #define PACKAGE\_TARNAME "libffi"
> | #define PACKAGE\_VERSION "3.99999"
> | #define PACKAGE\_STRING "libffi 3.99999"
> | #define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> | #define PACKAGE\_URL ""
> | #define PACKAGE "libffi"
> | #define VERSION "3.99999"
> | /\* end confdefs.h. \*/
> | #include \<ac\_nonexistent.h\>
> configure:8568: result: clang -E
> configure:8588: clang -E conftest.c
> configure:8588: $? = 0
> configure:8602: clang -E conftest.c
> conftest.c:11:10: fatal error: 'ac\_nonexistent.h' file not found
> \#include \<ac\_nonexistent.h\>
> ^ ~~~~~~~~~~~~~~~~~
> 1 error generated.
> configure:8602: $? = 1
> configure: failed program was:
> | /\* confdefs.h \*/
> | #define PACKAGE\_NAME "libffi"
> | #define PACKAGE\_TARNAME "libffi"
> | #define PACKAGE\_VERSION "3.99999"
> | #define PACKAGE\_STRING "libffi 3.99999"
> | #define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> | #define PACKAGE\_URL ""
> | #define PACKAGE "libffi"
> | #define VERSION "3.99999"
> | /\* end confdefs.h. \*/
> | #include \<ac\_nonexistent.h\>
> configure:8631: checking for ANSI C header files
> configure:8651: clang -c conftest.c \>&5
> configure:8651: $? = 0
> configure:8724: clang -o conftest conftest.c \>&5
> configure:8724: $? = 0
> configure:8724: ./conftest
> configure:8724: $? = 0
> configure:8735: result: yes
> configure:8748: checking for sys/types.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8748: checking for sys/stat.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8748: checking for stdlib.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8748: checking for string.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8748: checking for memory.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8748: checking for strings.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8748: checking for inttypes.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8748: checking for stdint.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8748: checking for unistd.h
> configure:8748: clang -c conftest.c \>&5
> configure:8748: $? = 0
> configure:8748: result: yes
> configure:8762: checking for dlfcn.h
> configure:8762: clang -c conftest.c \>&5
> configure:8762: $? = 0
> configure:8762: result: yes
> configure:9029: checking for objdir
> configure:9044: result: .libs
> configure:9308: checking if clang supports -fno-rtti -fno-exceptions
> configure:9326: clang -c -fno-rtti -fno-exceptions conftest.c \>&5
> configure:9330: $? = 0
> configure:9343: result: yes
> configure:9701: checking for clang option to produce PIC
> configure:9708: result: -fno-common -DPIC
> configure:9716: checking if clang PIC flag -fno-common -DPIC works
> configure:9734: clang -c -fno-common -DPIC -DPIC conftest.c \>&5
> configure:9738: $? = 0
> configure:9751: result: yes
> configure:9780: checking if clang static flag -static works
> configure:9808: result: no
> configure:9823: checking if clang supports -c -o file.o
> configure:9844: clang -c -o out/conftest2.o conftest.c \>&5
> configure:9848: $? = 0
> configure:9870: result: yes
> configure:9878: checking if clang supports -c -o file.o
> configure:9925: result: yes
> configure:9958: checking whether the clang linker (ld) supports shared libraries
> configure:11221: result: yes
> configure:11461: checking dynamic linker characteristics
> configure:12291: result: darwin18.0.0 dyld
> configure:12413: checking how to hardcode library paths into programs
> configure:12438: result: immediate
> configure:12986: checking whether stripping libraries is possible
> configure:13000: result: yes
> configure:13026: checking if libtool supports shared libraries
> configure:13028: result: yes
> configure:13031: checking whether to build shared libraries
> configure:13056: result: yes
> configure:13059: checking whether to build static libraries
> configure:13063: result: no
> configure:13086: checking how to run the C++ preprocessor
> configure:13113: g++ -E conftest.cpp
> In file included from /usr/local/lib/gcc/x86\_64-apple-darwin15.0.0/5.2.0/include-fixed/syslimits.h:7:0,
> from /usr/local/lib/gcc/x86\_64-apple-darwin15.0.0/5.2.0/include-fixed/limits.h:34,
> from conftest.cpp:24:
> /usr/local/lib/gcc/x86\_64-apple-darwin15.0.0/5.2.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
> compilation terminated.
> configure:13113: $? = 1
> configure: failed program was:
> | /\* confdefs.h \*/
> | #define PACKAGE\_NAME "libffi"
> | #define PACKAGE\_TARNAME "libffi"
> | #define PACKAGE\_VERSION "3.99999"
> | #define PACKAGE\_STRING "libffi 3.99999"
> | #define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> | #define PACKAGE\_URL ""
> | #define PACKAGE "libffi"
> | #define VERSION "3.99999"
> | #define STDC\_HEADERS 1
> | #define HAVE\_SYS\_TYPES\_H 1
> | #define HAVE\_SYS\_STAT\_H 1
> | #define HAVE\_STDLIB\_H 1
> | #define HAVE\_STRING\_H 1
> | #define HAVE\_MEMORY\_H 1
> | #define HAVE\_STRINGS\_H 1
> | #define HAVE\_INTTYPES\_H 1
> | #define HAVE\_STDINT\_H 1
> | #define HAVE\_UNISTD\_H 1
> | #define HAVE\_DLFCN\_H 1
> | #define LT\_OBJDIR ".libs/"
> | /\* end confdefs.h. \*/
> | #ifdef \_\_STDC\_\_
> | # include \<limits.h\>
> | #else
> | # include \<assert.h\>
> | #endif
> | Syntax error
> configure:13113: g++ -E conftest.cpp
> In file included from /usr/local/lib/gcc/x86\_64-apple-darwin15.0.0/5.2.0/include-fixed/syslimits.h:7:0,
> from /usr/local/lib/gcc/x86\_64-apple-darwin15.0.0/5.2.0/include-fixed/limits.h:34,
> from conftest.cpp:24:
> /usr/local/lib/gcc/x86\_64-apple-darwin15.0.0/5.2.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
> compilation terminated.
> configure:13113: $? = 1
> configure: failed program was:
> | /\* confdefs.h \*/
> | #define PACKAGE\_NAME "libffi"
> | #define PACKAGE\_TARNAME "libffi"
> | #define PACKAGE\_VERSION "3.99999"
> | #define PACKAGE\_STRING "libffi 3.99999"
> | #define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> | #define PACKAGE\_URL ""
> | #define PACKAGE "libffi"
> | #define VERSION "3.99999"
> | #define STDC\_HEADERS 1
> | #define HAVE\_SYS\_TYPES\_H 1
> | #define HAVE\_SYS\_STAT\_H 1
> | #define HAVE\_STDLIB\_H 1
> | #define HAVE\_STRING\_H 1
> | #define HAVE\_MEMORY\_H 1
> | #define HAVE\_STRINGS\_H 1
> | #define HAVE\_INTTYPES\_H 1
> | #define HAVE\_STDINT\_H 1
> | #define HAVE\_UNISTD\_H 1
> | #define HAVE\_DLFCN\_H 1
> | #define LT\_OBJDIR ".libs/"
> | /\* end confdefs.h. \*/
> | #ifdef \_\_STDC\_\_
> | # include \<limits.h\>
> | #else
> | # include \<assert.h\>
> | #endif
> | Syntax error
> configure:13113: /lib/cpp conftest.cpp
> /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/configure: line 1919: /lib/cpp: No such file or directory
> configure:13113: $? = 127
> configure: failed program was:
> | /\* confdefs.h \*/
> | #define PACKAGE\_NAME "libffi"
> | #define PACKAGE\_TARNAME "libffi"
> | #define PACKAGE\_VERSION "3.99999"
> | #define PACKAGE\_STRING "libffi 3.99999"
> | #define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> | #define PACKAGE\_URL ""
> | #define PACKAGE "libffi"
> | #define VERSION "3.99999"
> | #define STDC\_HEADERS 1
> | #define HAVE\_SYS\_TYPES\_H 1
> | #define HAVE\_SYS\_STAT\_H 1
> | #define HAVE\_STDLIB\_H 1
> | #define HAVE\_STRING\_H 1
> | #define HAVE\_MEMORY\_H 1
> | #define HAVE\_STRINGS\_H 1
> | #define HAVE\_INTTYPES\_H 1
> | #define HAVE\_STDINT\_H 1
> | #define HAVE\_UNISTD\_H 1
> | #define HAVE\_DLFCN\_H 1
> | #define LT\_OBJDIR ".libs/"
> | /\* end confdefs.h. \*/
> | #ifdef \_\_STDC\_\_
> | # include \<limits.h\>
> | #else
> | # include \<assert.h\>
> | #endif
> | Syntax error
> configure:13113: /lib/cpp conftest.cpp
> /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/configure: line 1919: /lib/cpp: No such file or directory
> configure:13113: $? = 127
> configure: failed program was:
> | /\* confdefs.h \*/
> | #define PACKAGE\_NAME "libffi"
> | #define PACKAGE\_TARNAME "libffi"
> | #define PACKAGE\_VERSION "3.99999"
> | #define PACKAGE\_STRING "libffi 3.99999"
> | #define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> | #define PACKAGE\_URL ""
> | #define PACKAGE "libffi"
> | #define VERSION "3.99999"
> | #define STDC\_HEADERS 1
> | #define HAVE\_SYS\_TYPES\_H 1
> | #define HAVE\_SYS\_STAT\_H 1
> | #define HAVE\_STDLIB\_H 1
> | #define HAVE\_STRING\_H 1
> | #define HAVE\_MEMORY\_H 1
> | #define HAVE\_STRINGS\_H 1
> | #define HAVE\_INTTYPES\_H 1
> | #define HAVE\_STDINT\_H 1
> | #define HAVE\_UNISTD\_H 1
> | #define HAVE\_DLFCN\_H 1
> | #define LT\_OBJDIR ".libs/"
> | /\* end confdefs.h. \*/
> | #ifdef \_\_STDC\_\_
> | # include \<limits.h\>
> | #else
> | # include \<assert.h\>
> | #endif
> | Syntax error
> configure:13152: result: /lib/cpp
> configure:13172: /lib/cpp conftest.cpp
> /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/configure: line 1919: /lib/cpp: No such file or directory
> configure:13172: $? = 127
> configure: failed program was:
> | /\* confdefs.h \*/
> | #define PACKAGE\_NAME "libffi"
> | #define PACKAGE\_TARNAME "libffi"
> | #define PACKAGE\_VERSION "3.99999"
> | #define PACKAGE\_STRING "libffi 3.99999"
> | #define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> | #define PACKAGE\_URL ""
> | #define PACKAGE "libffi"
> | #define VERSION "3.99999"
> | #define STDC\_HEADERS 1
> | #define HAVE\_SYS\_TYPES\_H 1
> | #define HAVE\_SYS\_STAT\_H 1
> | #define HAVE\_STDLIB\_H 1
> | #define HAVE\_STRING\_H 1
> | #define HAVE\_MEMORY\_H 1
> | #define HAVE\_STRINGS\_H 1
> | #define HAVE\_INTTYPES\_H 1
> | #define HAVE\_STDINT\_H 1
> | #define HAVE\_UNISTD\_H 1
> | #define HAVE\_DLFCN\_H 1
> | #define LT\_OBJDIR ".libs/"
> | /\* end confdefs.h. \*/
> | #ifdef \_\_STDC\_\_
> | # include \<limits.h\>
> | #else
> | # include \<assert.h\>
> | #endif
> | Syntax error
> configure:13172: /lib/cpp conftest.cpp
> /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/configure: line 1919: /lib/cpp: No such file or directory
> configure:13172: $? = 127
> configure: failed program was:
> | /\* confdefs.h \*/
> | #define PACKAGE\_NAME "libffi"
> | #define PACKAGE\_TARNAME "libffi"
> | #define PACKAGE\_VERSION "3.99999"
> | #define PACKAGE\_STRING "libffi 3.99999"
> | #define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> | #define PACKAGE\_URL ""
> | #define PACKAGE "libffi"
> | #define VERSION "3.99999"
> | #define STDC\_HEADERS 1
> | #define HAVE\_SYS\_TYPES\_H 1
> | #define HAVE\_SYS\_STAT\_H 1
> | #define HAVE\_STDLIB\_H 1
> | #define HAVE\_STRING\_H 1
> | #define HAVE\_MEMORY\_H 1
> | #define HAVE\_STRINGS\_H 1
> | #define HAVE\_INTTYPES\_H 1
> | #define HAVE\_STDINT\_H 1
> | #define HAVE\_UNISTD\_H 1
> | #define HAVE\_DLFCN\_H 1
> | #define LT\_OBJDIR ".libs/"
> | /\* end confdefs.h. \*/
> | #ifdef \_\_STDC\_\_
> | # include \<limits.h\>
> | #else
> | # include \<assert.h\>
> | #endif
> | Syntax error
> configure:13202: error: in \`/usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi-x86\_64-darwin18':
> configure:13204: error: C++ preprocessor "/lib/cpp" fails sanity check
> See \`config.log' for more details
> 
> \## ---------------- ##
> \## Cache variables. ##
> \## ---------------- ##
> 
> ac\_cv\_build=x86\_64-apple-darwin18.0.0
> ac\_cv\_c\_compiler\_gnu=yes
> ac\_cv\_cxx\_compiler\_gnu=yes
> ac\_cv\_env\_CCASFLAGS\_set=
> ac\_cv\_env\_CCASFLAGS\_value=
> ac\_cv\_env\_CCAS\_set=
> ac\_cv\_env\_CCAS\_value=
> ac\_cv\_env\_CPPFLAGS\_set=
> ac\_cv\_env\_CPPFLAGS\_value=
> ac\_cv\_env\_CPP\_set=
> ac\_cv\_env\_CPP\_value=
> ac\_cv\_env\_CXXCPP\_set=
> ac\_cv\_env\_CXXCPP\_value=
> ac\_cv\_env\_LT\_SYS\_LIBRARY\_PATH\_set=
> ac\_cv\_env\_LT\_SYS\_LIBRARY\_PATH\_value=
> ac\_cv\_env\_build\_alias\_set=
> ac\_cv\_env\_build\_alias\_value=
> ac\_cv\_env\_host\_alias\_set=set
> ac\_cv\_env\_host\_alias\_value=
> ac\_cv\_env\_target\_alias\_set=
> ac\_cv\_env\_target\_alias\_value=
> ac\_cv\_header\_dlfcn\_h=yes
> ac\_cv\_header\_inttypes\_h=yes
> ac\_cv\_header\_memory\_h=yes
> ac\_cv\_header\_stdc=yes
> ac\_cv\_header\_stdint\_h=yes
> ac\_cv\_header\_stdlib\_h=yes
> ac\_cv\_header\_string\_h=yes
> ac\_cv\_header\_strings\_h=yes
> ac\_cv\_header\_sys\_stat\_h=yes
> ac\_cv\_header\_sys\_types\_h=yes
> ac\_cv\_header\_unistd\_h=yes
> ac\_cv\_host=x86\_64-apple-darwin18.0.0
> ac\_cv\_objext=o
> ac\_cv\_path\_EGREP='/usr/local/bin/ggrep -E'
> ac\_cv\_path\_FGREP='/usr/local/bin/ggrep -F'
> ac\_cv\_path\_GREP=/usr/local/bin/ggrep
> ac\_cv\_path\_SED=/usr/local/bin/sed
> ac\_cv\_path\_ax\_enable\_builddir\_sed=sed
> ac\_cv\_path\_install='/usr/local/bin/ginstall -c'
> ac\_cv\_path\_lt\_DD=/bin/dd
> ac\_cv\_path\_mkdir=/usr/local/bin/gmkdir
> ac\_cv\_prog\_AWK=gawk
> ac\_cv\_prog\_CPP='clang -E'
> ac\_cv\_prog\_CXXCPP=/lib/cpp
> ac\_cv\_prog\_ac\_ct\_AR=ar
> ac\_cv\_prog\_ac\_ct\_CC=clang
> ac\_cv\_prog\_ac\_ct\_CXX=g++
> ac\_cv\_prog\_ac\_ct\_DSYMUTIL=dsymutil
> ac\_cv\_prog\_ac\_ct\_LIPO=lipo
> ac\_cv\_prog\_ac\_ct\_NMEDIT=nmedit
> ac\_cv\_prog\_ac\_ct\_OBJDUMP=objdump
> ac\_cv\_prog\_ac\_ct\_OTOOL=otool
> ac\_cv\_prog\_ac\_ct\_RANLIB=ranlib
> ac\_cv\_prog\_ac\_ct\_STRIP=strip
> ac\_cv\_prog\_cc\_c89=
> ac\_cv\_prog\_cc\_g=yes
> ac\_cv\_prog\_cxx\_g=yes
> ac\_cv\_prog\_make\_make\_set=yes
> ac\_cv\_target=x86\_64-apple-darwin18.0.0
> am\_cv\_CCAS\_dependencies\_compiler\_type=none
> am\_cv\_CC\_dependencies\_compiler\_type=none
> am\_cv\_CXX\_dependencies\_compiler\_type=none
> am\_cv\_make\_support\_nested\_variables=yes
> am\_cv\_prog\_cc\_c\_o=yes
> lt\_cv\_apple\_cc\_single\_mod=yes
> lt\_cv\_ar\_at\_file=no
> lt\_cv\_deplibs\_check\_method=pass\_all
> lt\_cv\_file\_magic\_cmd='$MAGIC\_CMD'
> lt\_cv\_file\_magic\_test\_file=
> lt\_cv\_ld\_exported\_symbols\_list=yes
> lt\_cv\_ld\_force\_load=no
> lt\_cv\_ld\_reload\_flag=-r
> lt\_cv\_nm\_interface='BSD nm'
> lt\_cv\_objdir=.libs
> lt\_cv\_path\_LD=ld
> lt\_cv\_path\_NM='/usr/bin/nm -B'
> lt\_cv\_path\_mainfest\_tool=no
> lt\_cv\_prog\_compiler\_c\_o=yes
> lt\_cv\_prog\_compiler\_pic='-fno-common -DPIC'
> lt\_cv\_prog\_compiler\_pic\_works=yes
> lt\_cv\_prog\_compiler\_rtti\_exceptions=yes
> lt\_cv\_prog\_compiler\_static\_works=no
> lt\_cv\_prog\_gnu\_ld=no
> lt\_cv\_sharedlib\_from\_linklib\_cmd='printf %s\\n'
> lt\_cv\_sys\_global\_symbol\_pipe='sed -n -e '\\''s/^.\*\[\]\\(\[BCDEGRST\]\[BCDEGRST\]\*\\)\[\]\[\]\*\_\\(\[\_A-Za-z\]\[\_A-Za-z0-9\]\*\\)$/\\1 \_\\2 \\2/p'\\'' | sed '\\''/ \_\_gnu\_lto/d'\\'''
> lt\_cv\_sys\_global\_symbol\_to\_c\_name\_address='sed -n -e '\\''s/^: \\(.\*\\) .\*$/ {"\\1", (void \*) 0},/p'\\'' -e '\\''s/^\[BCDEGRST\]\[BCDEGRST\]\* .\* \\(.\*\\)$/ {"\\1", (void \*) \\&\\1},/p'\\'''
> lt\_cv\_sys\_global\_symbol\_to\_c\_name\_address\_lib\_prefix='sed -n -e '\\''s/^: \\(.\*\\) .\*$/ {"\\1", (void \*) 0},/p'\\'' -e '\\''s/^\[BCDEGRST\]\[BCDEGRST\]\* .\* \\(lib.\*\\)$/ {"\\1", (void \*) \\&\\1},/p'\\'' -e '\\''s/^\[BCDEGRST\]\[BCDEGRST\]\* .\* \\(.\*\\)$/ {"lib\\1", (void \*) \\&\\1},/p'\\'''
> lt\_cv\_sys\_global\_symbol\_to\_cdecl='sed -n -e '\\''s/^T .\* \\(.\*\\)$/extern int \\1();/p'\\'' -e '\\''s/^\[BCDEGRST\]\[BCDEGRST\]\* .\* \\(.\*\\)$/extern char \\1;/p'\\'''
> lt\_cv\_sys\_global\_symbol\_to\_import=
> lt\_cv\_sys\_max\_cmd\_len=196608
> lt\_cv\_to\_host\_file\_cmd=func\_convert\_file\_noop
> lt\_cv\_to\_tool\_file\_cmd=func\_convert\_file\_noop
> lt\_cv\_truncate\_bin='/bin/dd bs=4096 count=1'
> 
> \## ----------------- ##
> \## Output variables. ##
> \## ----------------- ##
> 
> ACLOCAL='${SHELL} /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/missing aclocal-1.15'
> ALLOCA=''
> AMDEPBACKSLASH=''
> AMDEP\_FALSE=''
> AMDEP\_TRUE='#'
> AMTAR='$${TAR-tar}'
> AM\_BACKSLASH='\\'
> AM\_DEFAULT\_V='$(AM\_DEFAULT\_VERBOSITY)'
> AM\_DEFAULT\_VERBOSITY='1'
> AM\_LTLDFLAGS=''
> AM\_RUNTESTFLAGS=''
> AM\_V='$(V)'
> AR='ar'
> AUTOCONF='${SHELL} /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/missing autoconf'
> AUTOHEADER='${SHELL} /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/missing autoheader'
> AUTOMAKE='${SHELL} /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/missing automake-1.15'
> AWK='gawk'
> BUILD\_DOCS\_FALSE=''
> BUILD\_DOCS\_TRUE=''
> CC='clang'
> CCAS='clang'
> CCASDEPMODE='depmode=none'
> CCASFLAGS=''
> CCDEPMODE='depmode=none'
> CFLAGS=''
> CPP='clang -E'
> CPPFLAGS=''
> CXX='g++'
> CXXCPP='/lib/cpp'
> CXXDEPMODE='depmode=none'
> CXXFLAGS='-g -O2'
> CYGPATH\_W='echo'
> DEFS=''
> DEPDIR='.deps'
> DLLTOOL='false'
> DSYMUTIL='dsymutil'
> DUMPBIN=''
> ECHO\_C='\\c'
> ECHO\_N=''
> ECHO\_T=''
> EGREP='/usr/local/bin/ggrep -E'
> EXEEXT=''
> FFI\_DEBUG\_FALSE=''
> FFI\_DEBUG\_TRUE=''
> FFI\_EXEC\_TRAMPOLINE\_TABLE=''
> FFI\_EXEC\_TRAMPOLINE\_TABLE\_FALSE=''
> FFI\_EXEC\_TRAMPOLINE\_TABLE\_TRUE=''
> FGREP='/usr/local/bin/ggrep -F'
> GREP='/usr/local/bin/ggrep'
> HAVE\_LONG\_DOUBLE=''
> HAVE\_LONG\_DOUBLE\_VARIANT=''
> INSTALL\_DATA='${INSTALL} -m 644'
> INSTALL\_PROGRAM='${INSTALL}'
> INSTALL\_SCRIPT='${INSTALL}'
> INSTALL\_STRIP\_PROGRAM='$(install\_sh) -c -s'
> LD='ld'
> LDFLAGS=''
> LIBFFI\_BUILD\_VERSIONED\_SHLIB\_FALSE=''
> LIBFFI\_BUILD\_VERSIONED\_SHLIB\_GNU\_FALSE=''
> LIBFFI\_BUILD\_VERSIONED\_SHLIB\_GNU\_TRUE=''
> LIBFFI\_BUILD\_VERSIONED\_SHLIB\_SUN\_FALSE=''
> LIBFFI\_BUILD\_VERSIONED\_SHLIB\_SUN\_TRUE=''
> LIBFFI\_BUILD\_VERSIONED\_SHLIB\_TRUE=''
> LIBOBJS=''
> LIBS=''
> LIBTOOL='$(SHELL) $(top\_builddir)/libtool'
> LIPO='lipo'
> LN\_S='ln -s'
> LTLIBOBJS=''
> LT\_SYS\_LIBRARY\_PATH=''
> MAINT=''
> MAINTAINER\_MODE\_FALSE=''
> MAINTAINER\_MODE\_TRUE=''
> MAKEINFO='${SHELL} /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/missing makeinfo'
> MANIFEST\_TOOL=':'
> MKDIR\_P='/usr/local/bin/gmkdir -p'
> NM='/usr/bin/nm -B'
> NMEDIT='nmedit'
> OBJDUMP='objdump'
> OBJEXT='o'
> OPT\_LDFLAGS=''
> OTOOL64=':'
> OTOOL='otool'
> PACKAGE='libffi'
> PACKAGE\_BUGREPORT='http://github.com/libffi/libffi/issues'
> PACKAGE\_NAME='libffi'
> PACKAGE\_STRING='libffi 3.99999'
> PACKAGE\_TARNAME='libffi'
> PACKAGE\_URL=''
> PACKAGE\_VERSION='3.99999'
> PATH\_SEPARATOR=':'
> PRTDIAG=''
> RANLIB='ranlib'
> SECTION\_LDFLAGS=''
> SED='/usr/local/bin/sed'
> SET\_MAKE=''
> SHELL='/bin/sh'
> STRIP='strip'
> TARGET=''
> TARGETDIR=''
> TARGET\_OBJ=''
> TESTSUBDIR\_FALSE=''
> TESTSUBDIR\_TRUE=''
> VERSION='3.99999'
> ac\_ct\_AR='ar'
> ac\_ct\_CC='clang'
> ac\_ct\_CXX='g++'
> ac\_ct\_DUMPBIN=''
> am\_\_EXEEXT\_FALSE=''
> am\_\_EXEEXT\_TRUE=''
> am\_\_fastdepCCAS\_FALSE=''
> am\_\_fastdepCCAS\_TRUE='#'
> am\_\_fastdepCC\_FALSE=''
> am\_\_fastdepCC\_TRUE='#'
> am\_\_fastdepCXX\_FALSE=''
> am\_\_fastdepCXX\_TRUE='#'
> am\_\_include='include'
> am\_\_isrc=' -I$(srcdir)'
> am\_\_leading\_dot='.'
> am\_\_nodep=''
> am\_\_quote=''
> am\_\_tar='$${TAR-tar} chof - "$$tardir"'
> am\_\_untar='$${TAR-tar} xf -'
> ax\_enable\_builddir\_sed='sed'
> bindir='${exec\_prefix}/bin'
> build='x86\_64-apple-darwin18.0.0'
> build\_alias=''
> build\_cpu='x86\_64'
> build\_os='darwin18.0.0'
> build\_vendor='apple'
> datadir='${datarootdir}'
> datarootdir='${prefix}/share'
> docdir='${datarootdir}/doc/${PACKAGE\_TARNAME}'
> dvidir='${docdir}'
> exec\_prefix='NONE'
> host='x86\_64-apple-darwin18.0.0'
> host\_alias=''
> host\_cpu='x86\_64'
> host\_os='darwin18.0.0'
> host\_vendor='apple'
> htmldir='${docdir}'
> includedir='${prefix}/include'
> infodir='${datarootdir}/info'
> install\_sh='${SHELL} /usr/local/lib/ruby/gems/2.5.0/gems/ffi-1.9.25/ext/ffi\_c/libffi/install-sh'
> libdir='${exec\_prefix}/lib'
> libexecdir='${exec\_prefix}/libexec'
> localedir='${datarootdir}/locale'
> localstatedir='${prefix}/var'
> mandir='${datarootdir}/man'
> mkdir\_p='$(MKDIR\_P)'
> oldincludedir='/usr/include'
> pdfdir='${docdir}'
> prefix='NONE'
> program\_transform\_name='s,x,x,'
> psdir='${docdir}'
> runstatedir='${localstatedir}/run'
> sbindir='${exec\_prefix}/sbin'
> sharedstatedir='${prefix}/com'
> sys\_symbol\_underscore=''
> sysconfdir='${prefix}/etc'
> target='x86\_64-apple-darwin18.0.0'
> target\_alias=''
> target\_cpu='x86\_64'
> target\_os='darwin18.0.0'
> target\_vendor='apple'
> toolexecdir=''
> toolexeclibdir=''
> 
> \## ----------- ##
> \## confdefs.h. ##
> \## ----------- ##
> 
> /\* confdefs.h \*/
> \#define PACKAGE\_NAME "libffi"
> \#define PACKAGE\_TARNAME "libffi"
> \#define PACKAGE\_VERSION "3.99999"
> \#define PACKAGE\_STRING "libffi 3.99999"
> \#define PACKAGE\_BUGREPORT "http://github.com/libffi/libffi/issues"
> \#define PACKAGE\_URL ""
> \#define PACKAGE "libffi"
> \#define VERSION "3.99999"
> \#define STDC\_HEADERS 1
> \#define HAVE\_SYS\_TYPES\_H 1
> \#define HAVE\_SYS\_STAT\_H 1
> \#define HAVE\_STDLIB\_H 1
> \#define HAVE\_STRING\_H 1
> \#define HAVE\_MEMORY\_H 1
> \#define HAVE\_STRINGS\_H 1
> \#define HAVE\_INTTYPES\_H 1
> \#define HAVE\_STDINT\_H 1
> \#define HAVE\_UNISTD\_H 1
> \#define HAVE\_DLFCN\_H 1
> \#define LT\_OBJDIR ".libs/"
> 
> configure: exit 1
> \`
> \</details\>

This is the last missing piece of the puzzle, we need to figure out.

---

<div class="post-metadata">

**Author:** ![TerminalAddict](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/terminaladdict/32/1300_2.png) [@TerminalAddict](https://talk.jekyllrb.com/u/TerminalAddict)\
**Post date:** [December 11, 2018, 9:57pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/16 "2018-12-11T21:57:05Z")

</div>

I think what I did was download commandline tools and install manually from: [https://developer.apple.com/download/more/](https://developer.apple.com/download/more/)

That installed the SDK package installer for me in

```
-rw-r--r-- 1 root admin 15944693 25 Oct 08:04 /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg

```

I could then use that installer to install SDK headers  
I did this after I upgraded to mojave.  
I reinstalled xcode (downloaded from the above link), and then install commandline tools (downloaded from the above link), and THEN installed SDK headers

---

<div class="post-metadata">

**Author:** ![rodaine](https://avatars.discourse-cdn.com/v4/letter/r/6a8cbe/32.png) [@rodaine](https://talk.jekyllrb.com/u/rodaine)\
**Post date:** [January 8, 2019, 2:08am UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/17 "2019-01-08T02:08:49Z")

</div>

Ran into the same issue when upgrading, was able to resolve this based off this [StackOverflow answer](https://stackoverflow.com/a/53569790/814693).

```
RANLIB=/usr/bin/ranlib bundle update

```

This is on macOS 10.14.2, with xcode-select version 2354, Ruby 2.5.3p105, Bundler 1.17.3.

---

<div class="post-metadata">

**Author:** ![smth](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/smth/32/1451_2.png) [@smth](https://talk.jekyllrb.com/u/smth)\
**Post date:** [January 8, 2019, 5:16pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/18 "2019-01-08T17:16:20Z")

</div>

I just tried the method in in the original post above (which was the setup I already had, but hadn’t tried deleting Homebrew), but I still have the FFI issue (as described in the GitHub issue linked in the post).

I also tried running `open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg` (which prompted an install dialogue). Still same result when trying to install Jekyll.

What am I missing? What is the key to resolving this issue?

---

<div class="post-metadata">

**Author:** ![TerminalAddict](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/terminaladdict/32/1300_2.png) [@TerminalAddict](https://talk.jekyllrb.com/u/TerminalAddict)\
**Post date:** [January 9, 2019, 1:40am UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/19 "2019-01-09T01:40:10Z")

</div>

new error today (on my mac):

Traceback (most recent call last):  
1: from /Users/pwillard/gems/bin/bundle:23:in `<main> /Users/pwillard/gems/bin/bundle:23:in`load’: cannot load such file – /usr/local/lib/ruby/gems/2.6.0/gems/bundler-1.17.2/exe/bundle (LoadError)

---

<div class="post-metadata">

**Author:** ![starquake](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/starquake/32/1462_2.png) [@starquake](https://talk.jekyllrb.com/u/starquake)\
**Post date:** [January 10, 2019, 7:07pm UTC](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400/20 "2019-01-10T19:07:20Z")

</div>

I had a freshly installed Mac OS Mojave. Not an upgrade. Didn’t install much on it yet.

I had the issue where it couldn’t find the headers. Followed the guide here. Did not help.  
Using rbenv but it did not help so I uninstalled it again.  
I downloaded Xcode from Apple and ran `/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg`

It installs correctly now.

[Next page](https://talk.jekyllrb.com/t/issues-installing-jekyll-on-macos-mojave/2400.md?page=2)
