<p></p>
<p dir="auto">Ubuntu 22.04, ruby 3.0.6 installed with rbenv</p>
<pre class="notranslate"><code class="notranslate">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
</code></pre>
<p dir="auto">Works fine after <code class="notranslate">gem update --system</code>.</p>
<p dir="auto">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.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/4364#issuecomment-1824357682">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJVA45SDVU5DSB36B3YF47H5AVCNFSM6AAAAAA7WQNCY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUGM2TONRYGI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLFA3ZCL4EUY6AKGZTYF47H5A5CNFSM6AAAAAA7WQNCY6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTMXV6TE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/issues/4364/1824357682</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/4364#issuecomment-1824357682",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4364#issuecomment-1824357682",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>