[DRE-maint] Bug#954865: ruby: Ruby update to 2.7 broke all native extensions, including ones needed for gem pristine

Chris Hofstaedtler zeha at debian.org
Tue Mar 24 18:14:11 GMT 2020


Hi,

thanks for your report. However ...

* Calum McConnell <calumlikesapplepie at gmail.com> [200324 16:30]:
[..]
> /usr/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in
> `require': libruby-2.5.so.2.5: cannot open shared object file: No
> such file or directory -
> /home/calum/gems/gems/psych-3.1.0/lib/psych.so (LoadError)
  ^^^^^^^^^^^^^^^^

[..]
> Further, I shouldnt need to reinstall ruby: rebuilding native extensions should
> be done by the upgrade script.

Rebuilding gems/extensions that are located in your home directory
or other random places is not something that is allowed to be be done
by the upgrade process. It also wouldn't work in multi-machine setups
and many other cases.

Please rebuild the gems in your home directory yourself, possibly by
deleting them first. I would also recommend using versioned
directories in your gem path to avoid breaking gem itself on such
occasions.

Chris



More information about the Pkg-ruby-extras-maintainers mailing list