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.
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
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?
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.
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
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?
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.
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