[openstreetmap/openstreetmap-website] NodeJS versions are out of sync again (Issue #5010)
Emin Kocan
notifications at github.com
Wed Jul 24 10:01:52 UTC 2024
Attempted to use Ubuntu 24.04 on Docker, but encountered the following issue when running `bundle install`:
```
46.83 Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
46.83 current directory:
46.83 /var/lib/gems/3.2.0/gems/mini_racer-0.9.0/ext/mini_racer_extension
46.83 /usr/bin/ruby3.2 -I/usr/lib/ruby/vendor_ruby extconf.rb
46.83 checking for -lpthread... yes
46.83 checking for whether -Wl,--exclude-libs=ALL is accepted as LDFLAGS... no
46.83 creating Makefile
46.83 current directory:
46.83 /var/lib/gems/3.2.0/gems/mini_racer-0.9.0/ext/mini_racer_extension
46.83 make DESTDIR\= sitearchdir\=./.gem.20240724-6-5fxsmr sitelibdir\=./.gem.20240724-6-5fxsmr clean
46.83 current directory:
46.83 /var/lib/gems/3.2.0/gems/mini_racer-0.9.0/ext/mini_racer_extension
46.83 make DESTDIR\= sitearchdir\=./.gem.20240724-6-5fxsmr sitelibdir\=./.gem.20240724-6-5fxsmr
46.83 compiling mini_racer_extension.cc
46.83 linking shared-object mini_racer_extension.so
46.83 /usr/bin/ld: cannot find
46.83 /var/lib/gems/3.2.0/gems/libv8-node-18.19.0.0-aarch64-linux/vendor/v8/aarch64-linux-gnu/libv8/obj/libv8_monolith.a:
46.83 No such file or directory
46.83 collect2: error: ld returned 1 exit status
46.83 make: *** [Makefile:265: mini_racer_extension.so] Error 1
46.83 make failed, exit code 2
```
Tried addressing this issue but couldn't find a solution. At this point, downgrading to eslint 8 seems to be the most practical approach.
I was able to downgrade to eslint 8 and update the eslint config format accordingly since it won't work out of the box when downgrading. The changes are reflected on this branch: [node-version-sync](https://github.com/kcne/openstreetmap-website/tree/node-version-sync)
I can open a PR to discuss this further if you think this might be a good approach. @gravitystorm
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5010#issuecomment-2247454781
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/5010/2247454781 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240724/c5870ef1/attachment-0001.htm>
More information about the rails-dev
mailing list