Hi,
I would like to get a local preview of my Jekyll site, The Hornery. Now you may say “Install the ruby2.x-rubygem-jekyll using zypper”. Well I have tried doing that but that doesn’t work as when I run:
jekyll serve -I -D --future
from the root of my site I get errors related to the fact I have a few dependencies listed in my _config.yml file that cannot be installed using zypper. Namely this is my _config.yml file. Notice the lines:
gems:
- jekyll-feed
- jekyll-gist
- jekyll-redirect-from
I usually use bundler to set up my Jekyll site on Linux but on openSUSE Tumbleweed it fails with the error:
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 12.0.0
Using RedCloth 4.3.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.10.1
Using thread_safe 0.3.5
Using public_suffix 2.0.4
Using charlock_holmes 0.7.3
Using coffee-script-source 1.11.1
Using execjs 2.7.0
Using colorator 1.1.0
Using commonjs 0.2.7
Using multi_json 1.12.1
Using multipart-post 2.0.0
Using escape_utils 1.1.1
Using ffi 1.9.14
Using forwardable-extended 2.6.0
Using gemoji 2.1.0
Using mime-types-data 3.2016.0521
Installing rugged 0.25.0b10 with native extensions
Using highline 1.7.8
Using nuggets 1.0.0
Using safe_yaml 1.0.4
Using mini_portile2 2.1.0
Using sass 3.4.23
Using rb-fsevent 0.9.8
Using kramdown 1.13.1
Using liquid 3.0.6
Using mercenary 0.3.6
Using rouge 1.11.1
Using jekyll-paginate 1.1.0
Using maruku 0.7.2
Using rdiscount 2.2.0.1
Using unicode-display_width 1.1.2
Using bundler 1.14.3
Using tzinfo 1.2.2
Using addressable 2.5.0
Using coffee-script 2.4.1
Using less 2.6.0
Using elasticsearch-api 1.0.18
Using pygments.rb 1.1.0
Using faraday 0.10.0
Using rb-inotify 0.9.7
Using pathutil 0.14.0
Using mime-types 3.1
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby.ruby2.2 -r ./siteconf20170210-10372-q4neqq.rb extconf.rb
checking for gmake... yes
checking for cmake... yes
checking for pkg-config... yes
-- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC
-DCMAKE_BUILD_TYPE=RelWithDebInfo
*** 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}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME).ruby2.2
--use-system-libraries
extconf.rb:13:in `sys': ERROR: 'cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF
-DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo ' failed (RuntimeError)
from extconf.rb:72:in `block (2 levels) in <main>'
from extconf.rb:69:in `chdir'
from extconf.rb:69:in `block in <main>'
from extconf.rb:66:in `chdir'
from extconf.rb:66:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /tmp/bundler20170210-10372-lot9morugged-0.25.0b10/gems/rugged-0.25.0b10 for
inspection.
Results logged to
/tmp/bundler20170210-10372-lot9morugged-0.25.0b10/extensions/x86_64-linux/2.2.0/rugged-0.25.0b10/gem_make.out
An error occurred while installing rugged (0.25.0b10), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.25.0b10'` succeeds before bundling.
running:
sudo gem install rugged -v '0.25.0b10'
also fails returning the error:
Building native extensions. This could take a while...
ERROR: Error installing rugged:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.ruby2.2 -r ./siteconf20170210-12205-1k1krht.rb extconf.rb
checking for gmake... yes
checking for cmake... yes
checking for pkg-config... yes
-- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo
*** 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}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME).ruby2.2
--use-system-libraries
extconf.rb:13:in `sys': ERROR: 'cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo ' failed (RuntimeError)
from extconf.rb:72:in `block (2 levels) in <main>'
from extconf.rb:69:in `chdir'
from extconf.rb:69:in `block in <main>'
from extconf.rb:66:in `chdir'
from extconf.rb:66:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /usr/lib64/ruby/gems/2.2.0/gems/rugged-0.25.0b10 for inspection.
Results logged to /usr/lib64/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/rugged-0.25.0b10/gem_make.out
where /usr/lib64/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0/rugged-0.25.0b10/gem_make.out had the contents:
/usr/bin/ruby.ruby2.2 -r ./siteconf20170210-12205-1k1krht.rb extconf.rb
checking for gmake... yes
checking for cmake... yes
checking for pkg-config... yes
-- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo
*** 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}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME).ruby2.2
--use-system-libraries
extconf.rb:13:in `sys': ERROR: 'cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo ' failed (RuntimeError)
from extconf.rb:72:in `block (2 levels) in <main>'
from extconf.rb:69:in `chdir'
from extconf.rb:69:in `block in <main>'
from extconf.rb:66:in `chdir'
from extconf.rb:66:in `<main>'
extconf failed, exit code 1
I have tried doing the same with ruby2.3 instead of ruby2.2 but I still get the same errors.
Any ideas?
Thanks for your time,
Brenton