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

Not working on Jekyll v.4.1.1 #117

Open
inpromotion opened this issue Nov 12, 2020 · 5 comments
Open

Not working on Jekyll v.4.1.1 #117

inpromotion opened this issue Nov 12, 2020 · 5 comments

Comments

@inpromotion
Copy link

I try to serve your theme on jekyll v.4.1.1. But after bundle exec jekyll serve i have problems with nokogiri.

Could not find gem 'github-pages' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.

After bundle install

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /tmp/bundler20201112-398-1xkmc28nokogiri-1.10.10/gems/nokogiri-1.10.10/ext/nokogiri
/usr/bin/ruby2.7 -I /usr/lib/ruby/2.7.0 -r ./siteconf20201112-398-mfkb4a.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.4.0
checking for gzdopen() in -lz... no
zlib is missing; necessary for building libxml2
*** 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
        --without-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/bin/$(RUBY_BASE_NAME)2.7
        --help
        --clean
        --use-system-libraries
        --enable-static
        --disable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --enable-cross-build
        --disable-cross-build

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

  /tmp/bundler20201112-398-1xkmc28nokogiri-1.10.10/extensions/x86_64-linux/2.7.0/nokogiri-1.10.10/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /tmp/bundler20201112-398-1xkmc28nokogiri-1.10.10/gems/nokogiri-1.10.10 for
inspection.
Results logged to
/tmp/bundler20201112-398-1xkmc28nokogiri-1.10.10/extensions/x86_64-linux/2.7.0/nokogiri-1.10.10/gem_make.out

An error occurred while installing nokogiri (1.10.10), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.10.10' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  github-pages was resolved to 209, which depends on
    jekyll-mentions was resolved to 1.6.0, which depends on
      html-pipeline was resolved to 2.14.0, which depends on
        nokogiri

How to solve this problems?

@inpromotion
Copy link
Author

@joshgerdes , do you support Jekyll Uno theme or not?

@joshgerdes
Copy link
Owner

@inpromotion Sorry, I do not support individual installations of Jekyll with this theme applied. I also do not provide technical support for the installation of Jekyll or supporting gem bundles.

@inpromotion
Copy link
Author

@joshgerdes ok. Do you tell me minimal requierments to Jekyll Uno?

Thx!

@joshgerdes
Copy link
Owner

Right now the project for this theme is setup to run on github pages that is why it uses the gem github-pages. It looks like the current version of that gem uses Jekyll 3.9.0. You can see what is used/installed with that gem package by running bundle exec github-pages versions (more info can be found at https://github.com/github/pages-gem).

To get it to run with the latest Jekyll v4.1.1 you need to tweak the gemfile as follows:

source 'https://rubygems.org'
gem 'jekyll-paginate'
gem 'jekyll-watch'
gem 'kramdown'
gem 'kramdown-parser-gfm'

@inpromotion
Copy link
Author

@joshgerdes thx for the answers!

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

2 participants