Problems with rmagik / glibc: `GLIBCXX_3.4.32' not found

Hi! I’ve spent a lot of time setting up my nix system and everything was almost working (after many battles) until I’ve run into this when setting up my dev environment:

internal:/nix/store/s5sd5dwk615m1gwk72i7rd40n40znscd-ruby-3.1.4/lib/ruby/3.1.0/rubygems/core_ext/kernel_require.rb:37:in require': /nix/store/9fy9zzhf613xp0c3jsjxbjq6yp8afrsv-gcc-12.3.0-lib/lib/libstdc++.so.6: version GLIBCXX_3.4.32’ not found (required by /nix/store/5laiqnyngxgm00vjhhd4drymbnhv3sph-libheif-1.15.2/lib/libheif.so.1) - /nix/store/sahkja71y8m6ycqjhg6ifblh0l4wdwb7-ruby3.1-rmagick-5.3.0/lib/ruby/gems/3.1.0/gems/rmagick-5.3.0/lib/RMagick2.so (LoadError)

I have installed both ruby and rmagic with devbox, so they are both nix packages. Both installed, byt rmagik fails at runtime (opening a rails console will do that). Any idea of what I might try next?

1 Like