Hello,
The packages rubygem-jekyll and rubygem-bundler installed without visible errors and the initial "jekyll new <dir>" worked too. But "bundle exec jekyll serve" results in this error:
Could not find gem 'tzinfo (~> 1.2)' in any of the gem sources listed in your Gemfile. Run `bundle install` to install missing gems.
Following that hint results in:
--- bundle install ---
Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Using public_suffix 3.1.1 Following files may not be writable, so sudo is needed: /usr/bin /usr/share/gems /usr/share/gems/build_info /usr/share/gems/cache /usr/share/gems/doc /usr/share/gems/extensions /usr/share/gems/gems /usr/share/gems/specifications Using addressable 2.6.0 Using bundler 2.0.2 Using colorator 1.1.0 Using concurrent-ruby 1.1.5 Using eventmachine 1.2.7 Using http_parser.rb 0.6.0 Using em-websocket 0.5.1 Fetching ffi 1.11.1
Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo.
Password:
---
The password is always wrong. Using sudo then results on this error:
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Using public_suffix 3.1.1 Using addressable 2.6.0 Using bundler 1.17.2 Using colorator 1.1.0 Using concurrent-ruby 1.1.5 Using eventmachine 1.2.7 Using http_parser.rb 0.6.0 Using em-websocket 0.5.1 Fetching ffi 1.11.1 Installing ffi 1.11.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /usr/share/gems/gems/ffi-1.11.1/ext/ffi_c /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20190829-32344-u1x6oo.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /usr/share/gems/gems/ffi-1.11.1 for inspection. Results logged to /usr/lib64/gems/ruby/ffi-1.11.1/gem_make.out
An error occurred while installing ffi (1.11.1), and Bundler cannot continue. Make sure that `gem install ffi -v '1.11.1' --source 'https://rubygems.org/%27%60 succeeds before bundling.
In Gemfile: minima was resolved to 2.5.1, which depends on jekyll-feed was resolved to 0.12.1, which depends on jekyll was resolved to 3.8.6, which depends on jekyll-sass-converter was resolved to 1.5.2, which depends on sass was resolved to 3.7.4, which depends on sass-listen was resolved to 4.0.0, which depends on rb-inotify was resolved to 0.10.0, which depends on ffi
---
And last I tried:
gem install ffi -v '1.11.1' --source 'https://rubygems.org/'
which results in this error:
Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension.
current directory: /home/patrick/.gem/ruby/gems/ffi-1.11.1/ext/ffi_c /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20190829-32447-1b81k2i.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
You might have to install separate package for the ruby development environment, ruby-dev or ruby-devel for example.
extconf failed, exit code 1
Gem files will remain installed in /home/patrick/.gem/ruby/gems/ffi-1.11.1 for inspection. Results logged to /home/patrick/.gem/ruby/extensions/x86_64-linux/2.6.0/ffi-1.11.1/gem_make.out
---
Instead of typing more of those random tips from the web I hope somebody can guide me to a solution.
greetings,
P.