[DRE-maint] Bug#954865: ruby: Ruby update to 2.7 broke all native extensions, including ones needed for gem pristine
Calum McConnell
calumlikesapplepie at gmail.com
Thu Mar 26 15:39:06 GMT 2020
* 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.
Okay, fair enough.
> 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.
Thanks for the solution! My gem directories were auto-generated by
Bundler, and given how rarely I use ruby, I don't think its worth the
time to try and mess with the defaults. I'm perfectly willing to rm
-rf ~/gems once yearly instead. You may want to mention the gem-
breaking in the news file, though: many people (okay, at least this
person) don't remember that native-extensions are version dependent and
require rebuilds.
Thanks for the quick assistance,
Calum
(you can close this bug, if you havent already)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20200326/6d701c14/attachment.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list