Hi everyone, I’m relatively new to Jekyll, and ran into an installation issue on Mac OSX environment. So here’s what I did:
- check which ruby is active, and check which version that's it's running, it gave me ruby-2.6.3.
- gem install bundler jekyll
- Successfully installed bundler-2.1.4
- ...
- Done installing documentation for jekyll-sass-converter, jekyll-watch, jekyll after 3 seconds
4 gems installed
So followed along the instruction, as the following:
-
mkdir Projects
-
cd Projects
-
jekyll new my-awesome-site
-
Running bundle install in /Projects/my-awesome-site…
-
Everything looks green at my terminal, until I hit the following:
Fetching ffi 1.13.0
Installing ffi 1.13.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
And it gave me the following instruction:
An error occurred while installing ffi (1.13.0), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.13.0' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
minima was resolved to 2.5.1, which depends on
jekyll-feed was resolved to 0.13.0, which depends on
jekyll was resolved to 4.1.0, which depends on
jekyll-sass-converter was resolved to 2.1.0, which depends on
sassc was resolved to 2.4.0, which depends on
ffi
Did just so, and ran the following:
- gem install ffi -v '1.13.0' --source 'https://rubygems.org/'
And it returned me with this:
ERROR: While executing gem ... (OptionParser::InvalidArgument)
invalid argument: --source https://rubygems.org/
(base) gerrys-air:my-awesome-site gerryleonugroho$
Try to roll back from the beginning by uninstalling the gem, but still no luck. Has anyone encountered something similar? Mind sharing your work around it?
Thanks,
GLN