joshgerdes / jekyll-uno

Jekyll-Uno - a minimal, responsive theme for Jekyll based on Uno for Ghost
MIT License
620 stars 574 forks source link

Not working on Jekyll v.4.1.1 #117

Open inpromotion opened 3 years ago

inpromotion commented 3 years ago

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 commented 3 years ago

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

joshgerdes commented 3 years ago

@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 commented 3 years ago

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

Thx!

joshgerdes commented 3 years ago

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 commented 3 years ago

@joshgerdes thx for the answers!