akihikodaki / cld3-ruby

cld3-ruby is an interface of Compact Language Detector v3 (CLD3) for Ruby.
Apache License 2.0
77 stars 22 forks source link

ruby 3.2.0: Could not open library libcld3.bundle' #39

Closed josh-m-sharpe closed 1 year ago

josh-m-sharpe commented 1 year ago

updating a ruby app to 3.2.0 (from 3.0.5). Gemfile has cld3 locked to 3.5.0

On invoking this library:

Could not open library '/Users/jsharpe/.rvm/gems/ruby-3.2.0@ctm3/gems/cld3-3.5.0/lib/cld3/../../ext/cld3/libcld3.bundle'

Confirmed the file libcld3.bundle is nowhere to be found. It exists in a similiar location for ruby 3.0.5

jsharpe-ctm commented 1 year ago

I think this is a broader 3.2.0 building native extensions issue. Will close if I find root cause.

josh-m-sharpe commented 1 year ago

Hmm, it appears that it's only this libcld3.bundle file. I copied the one generated with ruby 3.0.5 into the 3.2.0 path and then things work.

I also confirmed the file is generated when building with ruby 3.1.3.

So it just seems like it's 3.2.0 at this point not playing nice.

josh-m-sharpe commented 1 year ago

Possibly related: https://github.com/rubygems/rubygems/issues/6205

akihikodaki commented 1 year ago

This is a duplicate of #37.