Can't install any of the three WMQ gems

Hello Team,

I tried this on *JRUBY *forum first. But I want to expand my chances that
someone might see this and help:

My environment:*jruby -v*
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on IBM J9 VM
pap6470sr4fp1-20130325_01 (SR4 FP1) +indy [AIX-ppc64]

Attempting to install any of the following gems generate basically the
same errors:
*rubywmq-2.0.2.gem
ferocia-rubywmq-2.0.6.gem
ekaranto-rubywmq-2.0.2.gem*
Regardless of the gem, I get basically the same errors. For instance,
here is one of them.

Any assistance will be greatly appreciated.

*jgem install ekaranto-rubywmq-2.0.2.gem*
Building native extensions. This could take a while...
ERROR: Error installing ekaranto-rubywmq-2.0.2.gem:
        ERROR: Failed to build gem native extension.

        /opt/jruby/bin/jruby extconf.rb
/opt/jruby/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and
deprecated Config.
checking for cmqc.h... no
checking for main() in -lmqm... no
Errno::ENOENT: ENOENT - /opt/mqm/inc/cmqc.h
     initialize at org/jruby/RubyFile.java:333
           open at org/jruby/RubyIO.java:1179
  extract_const at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:6
    reason_case at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:26
     wmq_reason at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:70
           each at org/jruby/RubyArray.java:1613
     wmq_reason at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:68
       generate at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:224
           open at org/jruby/RubyIO.java:1183
       generate at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:224
         (root) at extconf.rb:27
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/opt/jruby/bin/jruby
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include
        --without-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib

Gem files will remain installed in
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2 for inspection.
Results logged to
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/gem_make.out

Thank you

···

--
Ruby Student

Hello Team,

I tried this on JRUBY forum first. But I want to expand my chances that someone might see this and help:

My environment:
jruby -v
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on IBM J9 VM pap6470sr4fp1-20130325_01 (SR4 FP1) +indy [AIX-ppc64]

Attempting to install any of the following gems generate basically the
same errors:

rubywmq-2.0.2.gem
ferocia-rubywmq-2.0.6.gem
ekaranto-rubywmq-2.0.2.gem

Regardless of the gem, I get basically the same errors. For instance, here is one of them.

Any assistance will be greatly appreciated.

jgem install ekaranto-rubywmq-2.0.2.gem
Building native extensions. This could take a while...
ERROR: Error installing ekaranto-rubywmq-2.0.2.gem:
        ERROR: Failed to build gem native extension.

        /opt/jruby/bin/jruby extconf.rb
/opt/jruby/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete and deprecated Config.
checking for cmqc.h... no
checking for main() in -lmqm... no
Errno::ENOENT: ENOENT - /opt/mqm/inc/cmqc.h

It's been many years since I worked with IBM's MQSeries (later renamed WebSphere MQ), but it seem like the attempt to build native extensions is unable to find the C header file(s) that is(are) needed.

Do you actually have the source for a message queue manager installed?

-Rob

Rob Biedenharn
rob.biedenharn@gmail.com

···

On 2013-Oct-7, at 12:36 , Ruby Student wrote:

     initialize at org/jruby/RubyFile.java:333
           open at org/jruby/RubyIO.java:1179
  extract_const at /opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:6
    reason_case at /opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:26
     wmq_reason at /opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:70
           each at org/jruby/RubyArray.java:1613
     wmq_reason at /opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:68
       generate at /opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:224
           open at org/jruby/RubyIO.java:1183
       generate at /opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:224
         (root) at extconf.rb:27
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/opt/jruby/bin/jruby
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include
        --without-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib

Gem files will remain installed in /opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2 for inspection.
Results logged to /opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/gem_make.out

Thank you

--
Ruby Student

Hi Ruby Student,

Upon closer look at your setup I can see that your environment is
incompatible with the rubywmq gem.

Reid Morrison states in the README


file that the rubywmq gem ONLY works with Ruby MRI.

For JRuby users he provides a link to his jruby-jms gem:

I hope this points you in the right direction

Regards
Evan

···

--
Posted via http://www.ruby-forum.com/.

Yes, I do have the source for the installed QM, which is very heavily used.

···

On Mon, Oct 7, 2013 at 3:55 PM, Rob Biedenharn <rob.biedenharn@gmail.com>wrote:

On 2013-Oct-7, at 12:36 , Ruby Student wrote:

Hello Team,

I tried this on *JRUBY *forum first. But I want to expand my chances that
someone might see this and help:

My environment:*jruby -v*
jruby 1.7.3 (1.9.3p385) 2013-02-21 dac429b on IBM J9 VM pap6470sr4fp1-20130325_01 (SR4 FP1) +indy [AIX-ppc64]

Attempting to install any of the following gems generate basically the
same errors:
*rubywmq-2.0.2.gem
ferocia-rubywmq-2.0.6.gem
ekaranto-rubywmq-2.0.2.gem*
Regardless of the gem, I get basically the same errors. For instance, here is one of them.

Any assistance will be greatly appreciated.

*jgem install ekaranto-rubywmq-2.0.2.gem*
Building native extensions. This could take a while...
ERROR: Error installing ekaranto-rubywmq-2.0.2.gem:
        ERROR: Failed to build gem native extension.

        /opt/jruby/bin/jruby extconf.rb
/opt/jruby/lib/ruby/shared/mkmf.rb:14: Use RbConfig instead of obsolete
and deprecated Config.
checking for cmqc.h... no
checking for main() in -lmqm... no
Errno::ENOENT: ENOENT - /opt/mqm/inc/cmqc.h

It's been many years since I worked with IBM's MQSeries (later renamed
WebSphere MQ), but it seem like the attempt to build native extensions is
unable to find the C header file(s) that is(are) needed.

Do you actually have the source for a message queue manager installed?

-Rob

Rob Biedenharn
rob.biedenharn@gmail.com

     initialize at org/jruby/RubyFile.java:333
           open at org/jruby/RubyIO.java:1179
  extract_const at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:6
    reason_case at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:26
     wmq_reason at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:70
           each at org/jruby/RubyArray.java:1613
     wmq_reason at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:68
       generate at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:224
           open at org/jruby/RubyIO.java:1183
       generate at
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/generate/generate_reason.rb:224
         (root) at extconf.rb:27
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/opt/jruby/bin/jruby
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include
        --without-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib

Gem files will remain installed in
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2 for inspection.
Results logged to
/opt/jruby/lib/ruby/gems/shared/gems/ekaranto-rubywmq-2.0.2/ext/gem_make.out

Thank you

--
Ruby Student

--
Ruby Student

It does, and I thank you for taking the time to reply.

···

On Sun, Oct 27, 2013 at 8:44 PM, Evan Karantonis <lists@ruby-forum.com>wrote:

Hi Ruby Student,

Upon closer look at your setup I can see that your environment is
incompatible with the rubywmq gem.

Reid Morrison states in the README
GitHub - reidmorrison/rubywmq: Ruby interface into WebSphere MQ
file that the rubywmq gem ONLY works with Ruby MRI.

For JRuby users he provides a link to his jruby-jms gem:
GitHub - reidmorrison/jruby-jms: Complete JRuby API into Java Messaging Specification (JMS)

I hope this points you in the right direction

Regards
Evan

--
Posted via http://www.ruby-forum.com/\.

--
Ruby Student