Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-2521

[ruby] unable to import qpid_proton library on rhel7

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 2.9.0.B1
    • amqp-ruby-client
    • None
    • False
    • False
    • Undefined

      # rpm -q rubygem-qpid_proton qpid-proton-c
      rubygem-qpid_proton-0.33.0-3.el7_9.x86_64
      qpid-proton-c-0.33.0-3.el7_9.x86_64
      # cat test_cproton_import.rb
      require 'qpid_proton'
      # ruby test_cproton_import.rb
      /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- cproton (LoadError)
       from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
       from /usr/share/gems/gems/qpid_proton-0.33.0/lib/qpid_proton.rb:19:in `<top (required)>'
       from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:135:in `require'
       from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
       from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:144:in `require'
       from test_cproton_import.rb:1:in `<main>'
      
      

      by comparison of the 0.33 and 0.32 rpms, I noticed that the library path has changed the following way:

      /usr/share/gems/gems/qpid_proton-0.32.0/lib/cproton.so -> /usr/lib64/gems/ruby/qpid_proton-0.33.0/cproton.so
      
      

      Only RHEL7 package is affected, RHEL8 does not suffer from this issue.

      Using 2.8.0, import works well

      # rpm -q rubygem-qpid_proton qpid-proton-c
      rubygem-qpid_proton-0.32.0-2.el7.x86_64
      qpid-proton-c-0.32.0-2.el7.x86_64
      # ruby test_cproton_import.rb
      

              iboverma Irina Boverman (Inactive)
              pematous Petr Matousek
              Petr Matousek Petr Matousek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: