[openstreetmap/openstreetmap-website] Some developers will need to upgrade their rubygems (Issue #4364)
Anton Khorev
notifications at github.com
Thu Nov 23 12:35:10 UTC 2023
Ubuntu 22.04, ruby 3.0.6 installed with rbenv
```
Installing mini_racer 0.8.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/tony/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/mini_racer-0.8.0/ext/mini_racer_extension
/home/tony/.rbenv/versions/3.0.6/bin/ruby -I /home/tony/.rbenv/versions/3.0.6/lib/ruby/3.0.0 -r ./siteconf20231123-6495-iz864j.rb extconf.rb
checking for -lpthread... yes
*** 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=/home/tony/.rbenv/versions/3.0.6/bin/$(RUBY_BASE_NAME)
--with-pthread-dir
--without-pthread-dir
--with-pthread-include
--without-pthread-include=${pthread-dir}/include
--with-pthread-lib
--without-pthread-lib=${pthread-dir}/lib
--with-pthreadlib
--without-pthreadlib
--enable-debug
--disable-debug
--enable-asan
--disable-asan
/home/tony/.rbenv/versions/3.0.6/lib/ruby/3.0.0/psych.rb:457:in `parse_stream': undefined method `parse' for #<Psych::Parser:0x000056046bb5e238
@handler=#<Psych::Handlers::DocumentStream:0x000056046bb5e350 @stack=[], @last=nil, @root=nil, @start_line=nil, @start_column=nil, @end_line=nil, @end_column=nil, @block=#<Proc:0x000056046bb5e288
/home/tony/.rbenv/versions/3.0.6/lib/ruby/3.0.0/psych.rb:391>>, @external_encoding=0> (NoMethodError)
from /home/tony/.rbenv/versions/3.0.6/lib/ruby/3.0.0/psych.rb:391:in `parse'
from /home/tony/.rbenv/versions/3.0.6/lib/ruby/3.0.0/psych.rb:280:in `unsafe_load'
from /home/tony/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/libv8-node-18.16.0.0-x86_64-linux/ext/libv8-node/location.rb:21:in `block in load!'
from /home/tony/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/libv8-node-18.16.0.0-x86_64-linux/ext/libv8-node/location.rb:20:in `open'
from /home/tony/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/libv8-node-18.16.0.0-x86_64-linux/ext/libv8-node/location.rb:20:in `load!'
from /home/tony/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/gems/libv8-node-18.16.0.0-x86_64-linux/lib/libv8/node.rb:8:in `configure_makefile'
from extconf.rb:77:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/tony/.rbenv/versions/3.0.6/lib/ruby/gems/3.0.0/extensions/x86_64-linux/3.0.0/mini_racer-0.8.0/mkmf.log
extconf failed, exit code 1
```
Works fine after `gem update --system`.
I had to do something with psych before but I don't remember if it was on this machine or on another one, also Ubuntu 22.04, ruby 3.0.2, don't remember if it's system default ruby.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4364#issuecomment-1824357682
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4364/1824357682 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231123/2ec13170/attachment-0001.htm>
More information about the rails-dev
mailing list