xnd-project / libndtypes

Subsumed into xnd
https://xnd.io/
BSD 3-Clause "New" or "Revised" License
25 stars 17 forks source link

Resolve rpath #53

Closed mrkn closed 6 years ago

mrkn commented 6 years ago

This pull-request fixes the following load error occurred on macOS.

[1] pry(main)> require 'ndtypes'
LoadError: dlopen(/Users/mrkn/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ndtypes-0.2.0dev4/lib/ruby_ndtypes/ruby_ndtypes.bundle, 9): Library not loaded: @rpath/libndtypes.0.dylib
  Referenced from: /Users/mrkn/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ndtypes-0.2.0dev4/lib/ruby_ndtypes/ruby_ndtypes.bundle
  Reason: image not found - /Users/mrkn/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/ndtypes-0.2.0dev4/lib/ruby_ndtypes/ruby_ndtypes.bundle
from /Users/mrkn/.rbenv/versions/2.5.1/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

Note that I tested this only on macOS High Sierra.