Trouble installing rubywmq under AIX

Hello Team,

I am experiencing a problem instally a ruby gem, rubywmq under the IBM
UNIX
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

1.8.5

oslevel

AIX 6.1.3.0

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, build.sh, assumes that my version
of
UNIX, which is AIX, uses /opt/mqm for the installation of wmq. In AIX
the
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 build.sh script and this time
it
goes a bit further, but then it crashes again.

These are the new errors:

*./build.sh *

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/ruby/backward
-I/usr/local/include/ruby-1.9.1 -I. -DHAVE_CMQC_H -D_LARGE_FILES=1 -O3
-g
-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
function)
wmq_mq_load.c:214: error: (Each undeclared identifier is reported only
once
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.

Stop.

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:
–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=/usr/local/bin/ruby
–with-mqmlib
–without-mqmlib
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:6:in
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’
from
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:6:in
extract_const' from /usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:26:inreason_case’
from
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:84:in
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’
from
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:82:in
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’
from
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/generate/generate_reason.rb:237:in
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
/usr/local/lib/ruby/gems/1.9.1/gems/rubywmq-1.1.1/ext/gem_make.out

Thank you