gdk install fails to install ffi and nokogiri gems on MacOSX Mojave
My machine: MacBook Pro (Retina, 15-inch, Mid 2015) OSXv: 10.14.6
The following preparation steps have been followed: Ruby:
$ ruby --version
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18]
Bundler:
$ gem list bundler
*** LOCAL GEMS ***
bundler (default: 1.17.3)
Git:
git --version
git version 2.22.0
Node:
$ node --version
v12.9.1
Go:
$ go version
go version go1.12.9 darwin/amd64
Google Chrome: Version 76.0.3809.100 PostgreSQL:
psql (PostgreSQL) 10.10
Graphicsmagick:
$ gm version
GraphicsMagick 1.3.33 2019-07-20 Q16 http://www.GraphicsMagick.org/
Exiftool:
$ Exiftool -ver
11.59
Then I performed all the brew etc. instructions located here https://gitlab.com/gitlab-org/gitlab-development-kit/blob/master/doc/prepare.md#macos
Then I did gdk install
from the ./gitlab-development-kit
directory which resulted in the following errors:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
sed: 1: "s?\@XML_LIBDIR\@?-L/Use ...": bad flag in substitute command: '/'
...
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
...
An error occurred while installing nokogiri (1.10.4), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.10.4' --source 'https://rubygems.org/'` succeeds before bundling.
...
compiling AbstractMemory.c
In file included from AbstractMemory.c:47:
In file included from ./AbstractMemory.h:42:
./Types.h:78:10: fatal error: 'ffi.h' file not found
#include <ffi.h>
^~~~~~~
1 error generated.
make[1]: *** [AbstractMemory.o] Error 1
...
An error occurred while installing ffi (1.11.1), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.11.1' --source 'https://rubygems.org/'` succeeds before bundling.
...