Trouble installing rubywmq under AIX

Hello Team,

I am experiencing a problem instally a ruby gem, rubywmq under the IBM
flavor, AIX.
To start, let me give you all the details of my platform.

ruby -v

ruby 1.9.2p290 (2011-07-09 revision 32553) [powerpc-aix6.1.3.0]

gem -v




Architecture = 64 bits

I know what the problem is, but I don’t know how to fix it so it will
complete and build the gem.
The first issue is that the script,, assumes that my version
UNIX, which is AIX, uses /opt/mqm for the installation of wmq. In AIX
default location for wmq is /usr/mqm.
This is what’s in the script: ruby extconf.rb
–with-mqm-include=/opt/mqm/inc --with-mqm-lib=/opt/mqm/lib

Also, the config file, extconf.rb, points to /opt
I changed /opt to /usr and ./lib to ./lib64.
I also changed the extconf_client.rb to reflect /usr and ./lib64.

I then proceed to manually execute the script and this time
goes a bit further, but then it crashes again.

These are the new errors:

*./ *

checking for cmqc.h… yes
checking for main() in -lmqm… yes
Generated wmq_reason.c
Generated wmq_const_admin.rb
Generated wmq_const.rb
Generated wmq_structs.c
creating Makefile
gcc -I. -I/usr/local/include/ruby-1.9.1/powerpc-aix6.1.3.0
-I/usr/local/include/ruby-1.9.1 -I. -DHAVE_CMQC_H -D_LARGE_FILES=1 -O3
-Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith
-Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -o
wmq_mq_load.o -c wmq_mq_load.c
wmq_mq_load.c: In function ‘Queue_manager_mq_free’:
wmq_mq_load.c:214: error: ‘MQ_RELEASE’ undeclared (first use in this
wmq_mq_load.c:214: error: (Each undeclared identifier is reported only
wmq_mq_load.c:214: error: for each function it appears in.)
wmq_mq_load.c:215: error: expected ‘;’ before ‘pqm’
make: 1254-004 The error code from the last command is 1.


I know that I am very close, but, not close enough.
Any help is greatly appreciated.

*************************************** The following was the original
errors when running the gem install **********************************

gem install rubywmq

Building native extensions. This could take a while…
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/ext/builder.rb:48: warning:
Insecure world writable dir /usr/local/bin in PATH, mode 0240777
ERROR: Error installing rubywmq:
ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb

checking for cmqc.h… yes
checking for main() in -lmqm… yes
*** 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:
initialize': No such file or directory - /opt/mqm/inc/cmqc.h (Errno::ENOENT) from /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:6:inopen’
extract_const' from /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:26:inreason_case’
block in wmq_reason' from /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:82:ineach’
wmq_reason' from /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:237:inblock in generate’
open' from /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:237:ingenerate’
from extconf.rb:39:in `’

Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1 for inspection.
Results logged to

Thank you