Giter VIP home page Giter VIP logo

ruby-czmq-ffi's Introduction

# ruby-czmq-ffi

ruby-czmq-ffi provides low-level Ruby bindings for the CZMQ library. ruby-czmq-ffi leverages the FFI mechanism, and thus should work on all the main Ruby VMs: YARV/MRI, JRuby, and Rubinius.

The ruby-czmq-ffi library was not designed to be used directly by applications, but instead to provide functions for higher-level gems such as ruby-czmq.

Installation

Stable version

You can get the stable version of ruby-czmq-ffi by installing the czmq-ffi gem from RubyGems:

gem install czmq-ffi

Development version

If you want to try the development version of ruby-czmq-ffi, instead, just place this line:

gem 'czmq-ffi', git: 'https://github.com/mtortonesi/ruby-czmq-ffi.git'

in your Gemfile and run:

bundle install

License

MIT

ruby-czmq-ffi's People

Contributors

mtortonesi avatar

Stargazers

Stefano Borini avatar

Watchers

 avatar James Cloos avatar

ruby-czmq-ffi's Issues

`rake test` fails with FFI::NotFoundError

Hi

I'm thinking about using this gem. Looking through the code, I saw quite a few TODOs and when running rake test, I get this:

$ rake test
/Users/paddor/.rubies/ruby-2.2.3/bin/ruby -I"lib:test"  "/Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb" "test/zframe_test.rb"
/Users/paddor/.gem/ruby/2.2.3/gems/ffi-1.9.10/lib/ffi/library.rb:261:in `attach_function': Function 'zmsg_dump' not found in [/usr/local/lib/libczmq.dylib] (FFI::NotFoundError)
    from /Users/paddor/ruby-czmq-ffi/lib/czmq-ffi/libczmq.rb:152:in `<module:LibCZMQ>'
    from /Users/paddor/ruby-czmq-ffi/lib/czmq-ffi/libczmq.rb:3:in `<top (required)>'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/paddor/ruby-czmq-ffi/lib/czmq-ffi.rb:4:in `<top (required)>'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/paddor/ruby-czmq-ffi/test/test_helper.rb:4:in `<top (required)>'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/paddor/ruby-czmq-ffi/test/zframe_test.rb:1:in `<top (required)>'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb:15:in `block in <main>'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `select'
    from /Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb:4:in `<main>'
rake aborted!
Command failed with status (1): [ruby -I"lib:test"  "/Users/paddor/.rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_test_loader.rb" "test/zframe_test.rb" ]

Tasks: TOP => test
(See full trace by running task with --trace)

Seems like zmsg_dump doesn't exist anymore (I'm using the most recent version of CZMQ, version 3.0.2).

So, in other words, is this project production ready?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.