Giter VIP home page Giter VIP logo

Comments (3)

gravitystorm avatar gravitystorm commented on June 22, 2024

@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.

gravitystorm avatar gravitystorm commented on June 22, 2024

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.

AntonKhorev avatar AntonKhorev commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.