Forums Instiki

bundling error Linux Mint 22.3

Subscribe to bundling error Linux Mint 22.3 3 posts, 2 voices

 
xabier 12 posts

I’m trying to install Instiki 0.40.0 on Linux Mint 22.3 (based on Ubuntu 24.04). This is the farthest I got. In case the cause of the error can be easily spotted by anyone better versed than me, I’d welcome any help. Thank you!

xabier@atenea:~/instiki-0.40.4bundleconfigsetlocalpathvendor/bundlexabierUnknown characteratenea:~/instiki0.40.4 bundle config set --local path 'vendor/bundle' xabier@atenea:~/instiki-0.40.4 bundle install Bundler 2.4.20 is running, but your lockfile was generated with 4.0.11. Installing Bundler 4.0.11 and restarting using that version. Fetching gem metadata from https://rubygems.org/. Fetching bundler 4.0.11 Installing bundler 4.0.11 Fetching https://github.com/distler/maruku.git Fetching gem metadata from https://rubygems.org/……… Fetching rake 13.4.2 Installing rake 13.4.2 Fetching RedCloth 4.3.4 Fetching bigdecimal 4.1.2 Fetching connection_pool 3.0.2 Fetching json 2.19.5 Fetching prism 1.9.0 Fetching activesupport 8.1.3 Fetching drb 2.2.3 Fetching logger 1.7.0 Fetching minitest 6.0.6 Fetching rails-dom-testing 2.3.0 Fetching securerandom 0.4.1 Fetching erubi 1.13.1 Fetching racc 1.8.1 Fetching nokogiri 1.19.3 (x86_64-linux-gnu) Fetching base64 0.3.0 Fetching concurrent-ruby 1.3.6 Fetching i18n 1.14.8 Fetching tzinfo 2.0.6 Fetching uri 1.1.1 Fetching builder 3.3.0 Fetching crass 1.0.6 Installing RedCloth 4.3.4 with native extensions Installing bigdecimal 4.1.2 with native extensions Fetching loofah 2.25.1 Installing json 2.19.5 with native extensions Fetching rails-html-sanitizer 1.7.0 Fetching actionview 8.1.3 Fetching rack 3.2.6 Fetching rack-session 2.1.2 Installing prism 1.9.0 with native extensions Fetching rack-test 2.2.0 Fetching useragent 0.16.11 Fetching actionpack 8.1.3 Fetching prettyprint 0.2.0 Installing racc 1.8.1 with native extensions Fetching pp 0.6.3 Fetching erb 6.0.4 Fetching date 3.5.1 Fetching stringio 3.2.0 Fetching psych 5.3.1 Fetching tsort 0.2.0 Fetching rdoc 7.2.0 Fetching io-console 0.8.2 Fetching reline 0.6.3 Fetching irb 1.18.0 Fetching rackup 2.3.1 Fetching thor 1.5.0 Fetching zeitwerk 2.7.5 Fetching railties 8.1.3 Fetching action_text-trix 2.1.19 Fetching nio4r 2.7.5 Fetching websocket-extensions 0.1.5 Fetching websocket-driver 0.8.0 Fetching actioncable 8.1.3 Installing erb 6.0.4 with native extensions Installing date 3.5.1 with native extensions Installing stringio 3.2.0 with native extensions Fetching globalid 1.3.0 Fetching activejob 8.1.3 Fetching activemodel 8.1.3 Installing io-console 0.8.2 with native extensions Fetching timeout 0.6.1 Fetching activerecord 8.1.3 Fetching marcel 1.1.0 Fetching activestorage 8.1.3 Fetching mini_mime 1.1.5 Fetching net-protocol 0.2.2 Fetching net-imap 0.6.4 Fetching net-pop 0.1.2 Fetching net-smtp 0.5.1 Installing nio4r 2.7.5 with native extensions Fetching mail 2.9.0 Fetching actionmailbox 8.1.3 Fetching actionmailer 8.1.3 Fetching actionpack-action_caching 1.2.2 Fetching actionpack-page_caching 1.2.4 Fetching actiontext 8.1.3 Fetching csv 3.3.5 Fetching daemons 1.4.1 Fetching eventmachine 1.2.7 Fetching file_signature 1.2.0 Fetching multi_xml 0.9.1 Fetching httparty 0.24.2 Fetching iconv 1.1.1 Fetching itextomml 1.6.2 Fetching syntax 1.1.0 Fetching power_assert 3.0.1 Fetching pstore 0.2.1 Fetching rails 8.1.3 Fetching rails-controller-testing 1.0.5 Fetching rails-observers 0.1.5 Fetching rexml 3.4.4 Fetching rubyzip 2.3.2 Fetching sqlite3 2.9.4 (x86_64-linux-gnu) Fetching strscan 3.1.8 Fetching test-unit 3.7.7 Installing eventmachine 1.2.7 with native extensions Fetching thin 2.0.1 Fetching webrick 1.9.2 Fetching zip-zip 0.3 Installing connection_pool 3.0.2 Installing iconv 1.1.1 with native extensions Installing activesupport 8.1.3 Installing itextomml 1.6.2 with native extensions Installing rails-dom-testing 2.3.0 Installing drb 2.2.3 Installing logger 1.7.0 Installing minitest 6.0.6 Installing securerandom 0.4.1 Installing erubi 1.13.1 Installing base64 0.3.0 Installing nokogiri 1.19.3 (x86_64-linux-gnu) Installing concurrent-ruby 1.3.6 Installing i18n 1.14.8 Installing uri 1.1.1 Installing tzinfo 2.0.6 Installing builder 3.3.0 Installing crass 1.0.6 Installing loofah 2.25.1 Installing rails-html-sanitizer 1.7.0 Installing actionview 8.1.3 Installing rack 3.2.6 Installing rack-session 2.1.2 Installing rack-test 2.2.0 Installing useragent 0.16.11 Installing actionpack 8.1.3 Installing prettyprint 0.2.0 Installing pp 0.6.3 Installing tsort 0.2.0 Installing rdoc 7.2.0 Installing reline 0.6.3 Installing irb 1.18.0 Installing rackup 2.3.1 Installing thor 1.5.0 Installing zeitwerk 2.7.5 Installing railties 8.1.3 Installing action_text-trix 2.1.19 Installing websocket-extensions 0.1.5 Installing actioncable 8.1.3 Installing globalid 1.3.0 Installing activejob 8.1.3 Installing activemodel 8.1.3 Installing timeout 0.6.1 Installing activerecord 8.1.3 Installing marcel 1.1.0 Installing activestorage 8.1.3 Installing mini_mime 1.1.5 Installing net-protocol 0.2.2 Installing net-imap 0.6.4 Installing net-pop 0.1.2 Installing net-smtp 0.5.1 Installing mail 2.9.0 Installing actionmailbox 8.1.3 Installing actionmailer 8.1.3 Installing actionpack-action_caching 1.2.2 Installing actionpack-page_caching 1.2.4 Installing actiontext 8.1.3 Installing csv 3.3.5 Installing daemons 1.4.1 Installing file_signature 1.2.0 Installing multi_xml 0.9.1 Installing httparty 0.24.2 Installing syntax 1.1.0 Installing power_assert 3.0.1 Installing pstore 0.2.1 Installing rails 8.1.3 Installing rails-controller-testing 1.0.5 Installing rails-observers 0.1.5 Installing rexml 3.4.4 Installing rubyzip 2.3.2 Installing websocket-driver 0.8.0 with native extensions Installing strscan 3.1.8 with native extensions Installing sqlite3 2.9.4 (x86_64-linux-gnu) Installing test-unit 3.7.7 Installing webrick 1.9.2 Installing zip-zip 0.3 Installing psych 5.3.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/psych-5.3.1/ext/psych /usr/bin/ruby3.2 -I/usr/lib/ruby/vendor_ruby extconf.rb checking for yaml.h… no yaml.h not found *** 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)3.2

--with-libyaml-source-dir

--without-libyaml-source-dir

--with-yaml-0.1-dir

--without-yaml-0.1-dir

--with-yaml-0.1-include

--without-yaml-0.1-include=${yaml-0.1-dir}/include

--with-yaml-0.1-lib

--without-yaml-0.1-lib=${yaml-0.1-dir}/lib

--with-yaml-0.1-config

--without-yaml-0.1-config

--with-pkg-config

--without-pkg-config

--with-libyaml-dir

--without-libyaml-dir

--with-libyaml-include

--without-libyaml-include=${libyaml-dir}/include

--with-libyaml-lib

--without-libyaml-lib=${libyaml-dir}/lib

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

/home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/psych-5.3.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/psych-5.3.1 for inspection. Results logged to /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux-gnu/3.2.0/psych-5.3.1/gem_make.out

/usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:119:in run' /usr/lib/ruby/vendor_ruby/rubygems/ext/ext_conf_builder.rb:28:in build’ /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:187:in build_extension' /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:221:in block in build_extensions’ /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:218:in each' /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:218:in build_extensions’ /usr/lib/ruby/vendor_ruby/rubygems/installer.rb:844:in build_extensions' /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/rubygems_gem_installer.rb:112:in build_extensions’ /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/rubygems_gem_installer.rb:30:in install' /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/source/rubygems.rb:211:in block in install’ /usr/lib/ruby/vendor_ruby/rubygems.rb:962:in time' /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/source/rubygems.rb:210:in install’ /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/installer/gem_installer.rb:68:in install' /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/installer/gem_installer.rb:17:in install_from_spec’ /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/installer/parallel_installer.rb:164:in do_install' /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/installer/parallel_installer.rb:134:in block in worker_pool’ /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/worker.rb:70:in apply_func' /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/worker.rb:65:in block in process_queue’ /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/worker.rb:56:in loop' /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/worker.rb:56:in process_queue’ /home/xabier/instiki-0.40.4/vendor/bundle/ruby/3.2.0/gems/bundler-4.0.11/lib/bundler/worker.rb:98:in `block (2 levels) in create_threads'

An error occurred while installing psych (5.3.1), and Bundler cannot continue.

In Gemfile: rails was resolved to 8.1.3, which depends on actiontext was resolved to 8.1.3, which depends on action_text-trix was resolved to 2.1.19, which depends on railties was resolved to 8.1.3, which depends on irb was resolved to 1.18.0, which depends on rdoc was resolved to 7.2.0, which depends on psych

 
distler Moderator 125 posts

Maybe

sudo apt install libyaml-dev

?

 
xabier 12 posts

This worked, thank you. It was not clear for me which yaml package was needed

Forums Instiki