picky icon indicating copy to clipboard operation
picky copied to clipboard

Fedora can't find and use picky gem native library

Open jsosic opened this issue 7 years ago • 1 comments

I'm using vanilla Fedora 26. This is the ruby install:

% docker run --rm -it fedora:26 /bin/bash
[root@9585814b837d /]# yum -y install ruby-devel rubygems gcc make > /dev/null
[root@9585814b837d /]# yum -y install redhat-rpm-config findutils > /dev/null
[root@9585814b837d /]# gem install picky
Fetching: 
....
....
Installing ri documentation for picky-4.31.3
Done installing documentation for concurrent-ruby, i18n, thread_safe,
tzinfo, minitest, activesupport, multi_json, url_escape, rack_fast_escape,
picky after 15 seconds
10 gems installed

Picky installs succesfully but I can't use it:

[root@9585814b837d /]# ruby -rpicky -e 'puts "works"'

Picky tried to compile its source on your system but failed.

If you are trying to develop for it, please run the specs first:
bundle exec rake
(You might need to set ulimit -n 3000 for the tests to run)

Please add an issue: https://github.com/floere/picky/issues/
and copy anything into it that you think is helpful. Thanks!

See related issue: https://github.com/floere/picky/issues/81

The problem reported by the compiler was:
cannot load such file -- /usr/local/share/gems/gems/picky-4.31.3/lib/picky/picky

If I try to find a native extension, it's here:

[root@9585814b837d /]# find /usr/local/ -name picky.so
/usr/local/lib64/gems/ruby/picky-4.31.3/picky/picky.so
/usr/local/share/gems/gems/picky-4.31.3/ext/picky/picky.so

I've got same problem on Fedora 27.

jsosic avatar Feb 16 '18 00:02 jsosic

What solves a problem for me is:

[root@9585814b837d ~]# cp   \
   /usr/local/share/gems/gems/picky-4.31.3/ext/picky/picky.so   \
   /usr/local/share/gems/gems/picky-4.31.3/lib/picky/

[root@9585814b837d ~]# ruby -rpicky -e 'puts "works"'
works

jsosic avatar Feb 16 '18 00:02 jsosic