Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora can't find and use picky gem native library #148

Open
jsosic opened this issue Feb 16, 2018 · 1 comment · May be fixed by #149
Open

Fedora can't find and use picky gem native library #148

jsosic opened this issue Feb 16, 2018 · 1 comment · May be fixed by #149

Comments

@jsosic
Copy link

jsosic commented Feb 16, 2018

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
Copy link
Author

jsosic commented Feb 16, 2018

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 jsosic linked a pull request Feb 16, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant