Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.17.6 install fails #59

Closed
johnpitchko opened this issue Dec 4, 2017 · 5 comments
Closed

0.17.6 install fails #59

johnpitchko opened this issue Dec 4, 2017 · 5 comments
Assignees

Comments

@johnpitchko
Copy link

Hello, updating my gems for a Jekyll site and it seems this gem is now required. Unfortunately, its install fails (because cmake is not installed?). This is my first experience with this gem, so really not sure what it is or what it does. My Jekyll site/gems built fine previously; all I did was add jekyll-livereload gem.

I will install cmake via homebrew and try bundle update again. Will let you know what happens.

Error log below:

$ bundle update
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies.....
Using concurrent-ruby 1.0.5
Using i18n 0.9.1
Using minitest 5.10.3
Using thread_safe 0.3.6
Using tzinfo 1.2.4
Using activesupport 4.2.9
Using public_suffix 2.0.5
Using addressable 2.5.2
Using bundler 1.16.0
Using coffee-script-source 1.11.1
Using execjs 2.7.0
Using coffee-script 2.4.1
Using colorator 1.1.0
Using ruby-enum 0.7.1
Fetching commonmarker 0.17.6
Installing commonmarker 0.17.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/lib/ruby/gems/2.4.0/gems/commonmarker-0.17.6/ext/commonmarker
/usr/local/opt/ruby/bin/ruby -r ./siteconf20171204-38140-1y9grg6.rb extconf.rb
checking for cmake... no



[ERROR]: cmake is required and not installed. Get it here: http://www.cmake.org/


*** 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.

Provided configuration options:
	--with-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/local/Cellar/ruby/2.4.1_1/bin/$(RUBY_BASE_NAME)

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/commonmarker-0.17.6/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/lib/ruby/gems/2.4.0/gems/commonmarker-0.17.6 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/commonmarker-0.17.6/gem_make.out

An error occurred while installing commonmarker (0.17.6), and Bundler cannot continue.
Make sure that `gem install commonmarker -v '0.17.6'` succeeds before bundling.

In Gemfile:
  github-pages was resolved to 172, which depends on
    jekyll-commonmark-ghpages was resolved to 0.1.3, which depends on
      jekyll-commonmark was resolved to 1.1.0, which depends on
        commonmarker
@kivikakk kivikakk self-assigned this Dec 4, 2017
@gjtorikian
Copy link
Owner

Did brew install cmake fix it for you? It ought to, according to #47.

@johnpitchko
Copy link
Author

Hello, yes sure did! So all is good in the universe!

May I suggest, as a way to help future newbs like me, that a note be added to the README that make is required? And how to install it using Homebrew? Happy to make the PR if you wish.

@kivikakk
Copy link
Collaborator

kivikakk commented Dec 5, 2017

@johnpitchko Glad to hear it! We're currently working on a PR to make cmake not required at all; #60 is in progress.

@kivikakk
Copy link
Collaborator

kivikakk commented Dec 5, 2017

0.17.7 is now released which removes this dependency. Thank you very much for your report!

@kivikakk kivikakk closed this as completed Dec 5, 2017
@johnpitchko
Copy link
Author

You're welcome @kivikakk have a lovely Friday.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants