xnd-project / libxnd

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

Ruby wrapper #36

Open v0dro opened 5 years ago

v0dro commented 5 years ago

Ruby wrapper for XND.

mrkn commented 5 years ago

@skrah I sent two pull-requests, #37 and #38, to the ruby-wrapper branch. These changes are important for the ruby wrapper, so please merge them to the ruby-wrapper branch before merging this pull-request to the master branch.

v0dro commented 5 years ago

@mrkn merged.

skrah commented 5 years ago

This is the strange load error:

$ /home/stefan/rel/bin/irb
irb(main):001:0> require "ndtypes"
=> true
irb(main):002:0> require "xnd"
Traceback (most recent call last):
        9: from /home/stefan/rel/bin/irb:11:in `<main>'
        8: from (irb):2
        7: from /home/stefan/rel/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
        6: from /home/stefan/rel/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
        5: from /home/stefan/rel/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
        4: from /home/stefan/rel/lib/ruby/gems/2.6.0/gems/xnd-0.2.0dev5/lib/xnd.rb:32:in `<top (required)>'
        3: from /home/stefan/rel/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
        2: from /home/stefan/rel/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
        1: from /home/stefan/rel/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
LoadError (libruby.so.2.4: cannot open shared object file: No such file or directory - /home/stefan/rel/lib/ruby/gems/2.6.0/gems/xnd-0.2.0dev5/lib/ruby_xnd.so)
irb(main):003:0> 
irb(main):004:0> 
$ 
$ 
$ ls /home/stefan/rel/lib/ruby/gems/2.6.0/gems/xnd-0.2.0dev5/lib/ruby_xnd.so
/home/stefan/rel/lib/ruby/gems/2.6.0/gems/xnd-0.2.0dev5/lib/ruby_xnd.so
skrah commented 5 years ago

Perhaps an RPATH issue.

v0dro commented 5 years ago

@skrah can you please try gem install xnd --pre again? I've just pushed a new version.