Forum: Ruby Can't install any of the three WMQ gems

64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2013-10-07 18:37
(Received via mailing list)
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
9570b2f45e7de7a24d8f3bf4b2517192?d=identicon&s=25 Rob Biedenharn (Guest)
on 2013-10-07 21:56
(Received via mailing list)
On 2013-Oct-7, at 12:36 , Ruby Student wrote:

>
> 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
64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2013-10-08 16:45
(Received via mailing list)
Yes, I do have the source for the installed QM, which is very heavily
used.
19f2500e92231ddd2e406137de8d318f?d=identicon&s=25 Evan Karantonis (evan_k)
on 2013-10-28 01:44
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
https://github.com/reidmorrison/rubywmq#compatibility
file that the rubywmq gem ONLY works with Ruby MRI.

For JRuby users he provides a link to his jruby-jms gem:
https://github.com/reidmorrison/jruby-jms


I hope this points you in the right direction


Regards
Evan (ekaranto-rubywmq)
64a808c19ac542b14c4021dcb9484a37?d=identicon&s=25 Ruby Student (rubystudent66)
on 2013-10-28 13:42
(Received via mailing list)
It does, and I thank you for taking the time to reply.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.