Still can't build rubywmq.................Help PLEASE!

Rob,

Thank you for your reply, I truly appreciate it. Now, this thing is driving
me crazy, literally.

I do have the file *cmqc.h*. My desktop runs a full blown MQ environment,
meaning that it has all the necessary files. The file can be actually found
at:

*C:\IBM\WebSphere MQ\Tools\c\include\cmqc.h*

Now, the *extconf.rb * has the wrong path, *C:\Program Files
(x86)\IBM\WebSphere MQ\tools\c\include*, which I changed multiple times to
match the actual path. However, when I run the gem install command, I
noticed that the path is changed back to the wrong path. I am not sure how
to fix that. I even tried copying the *cmqc.h* to the ruby directory with
the others header files.

This is what I am getting.

*C:\Ruby23-x64\lib\ruby\gems\2.3.0\gems\rubywmq-2.1.0\ext>gem install
rubywmq --platform=ruby*

Temporarily enhancing PATH to include DevKit...

Building native extensions. This could take a while...

ERROR: Error installing rubywmq:

        ERROR: Failed to build gem native extension.

    current directory: C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext

C:/Ruby23-x64/bin/ruby.exe -r ./siteconf20160817-15160-2c82np.rb extconf.rb

        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`open'

from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`extract_const'

        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:26:in
`reason_case'

        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:72:in
`block in wmq_reason'

        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:71:in
`each'

        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:71:in
`wmq_reason'

        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/gen
erate/generate_reason.rb:222:in `block in generate'

        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/gen
erate/generate_reason.rb:222:in `open'

        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/gen
erate/generate_reason.rb:222:in `generate'

        from extconf.rb:28:in `<main>'

To see why this extension failed to compile, please check the mkmf.log
which can be found here:

  C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3
.0/rubywmq-2.1.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0
for inspection.

Results logged to C:/Ruby23-x64/lib/ruby/gems/2.
3.0/extensions/x64-mingw32/2.3.0/rubywmq-2.1.0/gem_make.out

···

--
Ruby Student

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/rubywmq-2.1.0/mkmf.log

This part is important. Seems like you're not looking at it.

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0 for inspection.
Results logged to C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.3.0/rubywmq-2.1.0/gem_make.out

Ditto

···

On Aug 18, 2016, at 05:32, Ruby Student <ruby.student@gmail.com> wrote:

Hi Ryan,

I was able to build it. I played with the configuration file by pointing to
where my WMQ libraries were located. I used all the suggested parameters to
invoke the builder. But the installer kept on looking at the default WMQ
install location. So, I ended up copying the dir containing the WMQ
libraries and it worked.

Thank you

···

On Tue, Aug 30, 2016 at 5:58 PM, Ryan Davis <ryand-ruby@zenspider.com> wrote:

> On Aug 18, 2016, at 05:32, Ruby Student <ruby.student@gmail.com> wrote:
>
> To see why this extension failed to compile, please check the mkmf.log
which can be found here:
>
> C:/Ruby23-x64/lib/ruby/gems/2.3.0/extensions/x64-mingw32/2.
3.0/rubywmq-2.1.0/mkmf.log

This part is important. Seems like you're not looking at it.

> extconf failed, exit code 1
>
> Gem files will remain installed in C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0
for inspection.
> Results logged to C:/Ruby23-x64/lib/ruby/gems/2.
3.0/extensions/x64-mingw32/2.3.0/rubywmq-2.1.0/gem_make.out

Ditto

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
Ruby Student