Comments (3)
@tomhughes writes
That's interesting because I couldn't reproduce it on the dev server or in a clean Ubuntu 22.04 container which both use 3.0...
Now that's also really interesting! How on earth does that work then???
from openstreetmap-website.
OK, I've also failed to reproduce this problem on other systems, including using our Vagrant image for Ubuntu.
My only guess is that there's some patch in the Ubuntu version of ruby or rubygems that accidentally fixes this. My dev system is Ubuntu 20.04 but using rbenv, so that might be what's different.
I'll close this for now, and if anyone else runs into this problem please describe your system and we can gather a better picture of who might be affected.
from openstreetmap-website.
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.
from openstreetmap-website.
Related Issues (20)
- Ideas for combating vandalism HOT 11
- Add "Like" button to diary entries HOT 2
- PUT /api/0.6/gpx/:id causes HTTP 500 Internal Server Error HOT 3
- Add original note in note reply email HOT 7
- GPS trace tiles do not load HOT 2
- Minimum/maximum supported URL length for API queries is not documented (or guaranteed fwiw), provide it via capabilities call HOT 7
- Wikipedia links with question mark HOT 2
- Address of building:part is not shown HOT 3
- Refactor usage of check_api_readable/writable HOT 2
- Refactor api_call_* filters HOT 2
- Netherlands contributor URL on Copyright page no longer valid HOT 2
- Indicate when a changrset comment is added by a moderator. HOT 3
- Note resolved email notifications are failing to return address HOT 5
- HTTP 500 when trying to open a diary entry via a link HOT 5
- Prevent page change when writing messages HOT 7
- Phantom street appears at particular zoom levels HOT 2
- Add Bezier Curves HOT 3
- Set bounding box size limits based on surface dimensions HOT 6
- Automate some code review comments HOT 2
- Wikimedia Commons links with question mark
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openstreetmap-website.