FS#53750 - [ruby] Installing packages with gem doesn't work

Attached to Project: Arch Linux
Opened by Martin Tournoij (Carpetsmoker) - Saturday, 22 April 2017, 08:48 GMT
Last edited by Anatol Pomozov (anatolik) - Saturday, 22 April 2017, 14:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Anatol Pomozov (anatolik)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Installing packages with gem doesn't work:

$ gem install jekyll
ERROR: Loading command: install (LoadError)
libssl.so.1.1: cannot open shared object file: No such file or directory - /usr/lib/ruby/2.4.0/x86_64-linux/openssl.so
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass

$ pacman -Q | grep ruby
ruby 2.4.1-1

$ pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
herecura 84.7 KiB 1598K/s 00:00 [##############################################] 100%
:: Starting full system upgrade...
warning: vagrant: ignoring package upgrade (1.8.5-1 => 1.9.2-1)
there is nothing to do


$ ldd /usr/lib/ruby/2.4.0/x86_64-linux/openssl.so|grep ss
libssl.so.1.1 => not found

$ ldconfig -p | grpe ssl.so
libssl.so.1.0.0 (libc6,x86-64) => /usr/lib/libssl.so.1.0.0
libssl.so.1.0.0 (libc6) => /usr/lib32/libssl.so.1.0.0
libssl.so (libc6,x86-64) => /usr/lib/libssl.so
libssl.so (libc6) => /usr/lib32/libssl.so

ruby 2.4.0 has the same problem. Looks like a recent openssl upgrade broke it(? didn't check)
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Saturday, 22 April 2017, 14:22 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.4.1-2
Comment by Aria (ar1a) - Saturday, 22 April 2017, 12:24 GMT
For the mean time, I've downgraded to ruby 2.4.0-1 and everything works fine.
Comment by Martin Tournoij (Carpetsmoker) - Saturday, 22 April 2017, 12:45 GMT
> For the mean time, I've downgraded to ruby 2.4.0-1 and everything works fine.

Strange; this didn't fix it for me, but perhaps I did something wrong.

I fixed it by downloading the Ruby package's source and built my own 2.4.1 package, which does work.
Comment by Bosco Witch (boscowitch) - Saturday, 22 April 2017, 13:16 GMT
can replicate! also downgrade to 2.4.0-1 worked for me, can install gems now!
guess package maintainer compiled against wrong libssl version.
Comment by Anatol Pomozov (anatolik) - Saturday, 22 April 2017, 13:18 GMT
Yes, can confirm it. I am recompiling it with previous version of openssl now.
Comment by Anatol Pomozov (anatolik) - Saturday, 22 April 2017, 14:04 GMT
Could you please verify that 2.4.1-2 solves your problem?
Comment by Martin Tournoij (Carpetsmoker) - Saturday, 22 April 2017, 14:11 GMT
> Could you please verify that 2.4.1-2 solves your problem?

Yup, seems to work. Thanks Anatol!

Loading...