Having problem installing rubywmq

I a, opening a new thread with my old problem. The other got too
convoluted. The problem changed just a little bit. Now it looks like I am
passed the *cmqc.h* issue. Now, it appears that the issue is with the *lmqm*
.

The *mkmf.log* shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe
-IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement
-Wimplicit-function-declaration -Wdeprecated-declarations
-Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23-x64/lib -L.
-lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32 -liphlpapi -limagehlp
-lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

*AND*

"x86_64-w64-mingw32-gcc -o conftest.exe
-IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement
-Wimplicit-function-declaration -Wdeprecated-declarations
-Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23-x64/lib -L.
-lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32 -liphlpapi -limagehlp
-lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

*The build attempt shows:*

*C:\>gem install rubywmq --platform=ruby --
'--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'*
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere
MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb
extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`initialize': No such file or directory @ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/generate/generate_reason.rb:222:in
`block in generate'
        from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:222:in
`open'
        from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/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

Any help, please.

Thank you

I a, opening a new thread with my old problem. The other got too
convoluted. The problem changed just a little bit. Now it looks like I am
passed the *cmqc.h* issue. Now, it appears that the issue is with the
*lmqm*.

The *mkmf.log* shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe
-IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement
-Wimplicit-function-declaration -Wdeprecated-declarations
-Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23-x64/lib -L.
-lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32 -liphlpapi -limagehlp
-lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe:
cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

*AND*

"x86_64-w64-mingw32-gcc -o conftest.exe
-IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement
-Wimplicit-function-declaration -Wdeprecated-declarations
-Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23-x64/lib -L.
-lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32 -liphlpapi -limagehlp
-lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

*The build attempt shows:*

*C:\>gem install rubywmq --platform=ruby --
'--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'*

This isn't the command you want. It is close, but only tells the install
where to find the include dir. You need:

'--with-mqm-dir="C:\IBM\WebSphere MQ\Tools\c"'

Which is what I recommended the first time.

-Rob

···

On Fri, Aug 19, 2016, 17:25 Ruby Student <ruby.student@gmail.com> wrote:

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere
MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb
extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`initialize': No such file or directory @ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/generate/generate_reason.rb:222:in
`block in generate'
        from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:222:in
`open'
        from
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/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

Any help, please.

Thank you

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

Rob, I tried exactly the way you suggested, when you suggested. I also
tried again today with the same unwanted outcome.

Anyway, I am frustrated with Ruby. It is a beautiful language but
everything is difficult in it. I'll go back to Java.

Thank you

···

On Fri, Aug 19, 2016 at 10:17 PM, Rob Biedenharn <rob.biedenharn@gmail.com> wrote:

On Fri, Aug 19, 2016, 17:25 Ruby Student <ruby.student@gmail.com> wrote:

I a, opening a new thread with my old problem. The other got too
convoluted. The problem changed just a little bit. Now it looks like I am
passed the *cmqc.h* issue. Now, it appears that the issue is with the
*lmqm*.

The *mkmf.log* shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers
-Wunused-variable -Wpointer-arith -Wwrite-strings
-Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.
7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

*AND*

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers
-Wunused-variable -Wpointer-arith -Wwrite-strings
-Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

*The build attempt shows:*

*C:\>gem install rubywmq --platform=ruby --
'--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'*

This isn't the command you want. It is close, but only tells the install
where to find the include dir. You need:

'--with-mqm-dir="C:\IBM\WebSphere MQ\Tools\c"'

Which is what I recommended the first time.

-Rob

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere
MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb
extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/
generate/generate_reason.rb:6:in `initialize': No such file or directory
@ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/
generate/generate_reason.rb:222:in `block in generate'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/
generate/generate_reason.rb:222:in `open'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/
generate/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

Any help, please.

Thank you

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

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

--
Ruby Student

Give jruby a look, then; if you can use a library from java you should be
able to use it from jruby.

martin

···

On Mon, Aug 22, 2016 at 5:26 AM, Ruby Student <ruby.student@gmail.com> wrote:

Rob, I tried exactly the way you suggested, when you suggested. I also
tried again today with the same unwanted outcome.

Anyway, I am frustrated with Ruby. It is a beautiful language but
everything is difficult in it. I'll go back to Java.

Thank you

On Fri, Aug 19, 2016 at 10:17 PM, Rob Biedenharn <rob.biedenharn@gmail.com > > wrote:

On Fri, Aug 19, 2016, 17:25 Ruby Student <ruby.student@gmail.com> wrote:

I a, opening a new thread with my old problem. The other got too
convoluted. The problem changed just a little bit. Now it looks like I am
passed the *cmqc.h* issue. Now, it appears that the issue is with the
*lmqm*.

The *mkmf.log* shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/
../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

*AND*

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

*The build attempt shows:*

*C:\>gem install rubywmq --platform=ruby --
'--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'*

This isn't the command you want. It is close, but only tells the install
where to find the include dir. You need:

'--with-mqm-dir="C:\IBM\WebSphere MQ\Tools\c"'

Which is what I recommended the first time.

-Rob

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere
MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb
extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`initialize': No such file or directory @ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/generate/generate_reason.rb:222:in `block in
generate'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:222:in `open'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/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

Any help, please.

Thank you

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

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

--
Ruby Student

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

Rob, I tried exactly the way you suggested, when you suggested. I also tried again today with the same unwanted outcome.

Did you try adding to your previous command an --with-mqm-lib="C:\IBM\WebSphere MQ\Tools\c\lib" to see if that solves it?

Anyway, I am frustrated with Ruby. It is a beautiful language but everything is difficult in it. I'll go back to Java.

To be fair, you haven't even gotten to Ruby with this as your problem has been getting a native-extension gem to install properly on your Windows system. (And I haven't used a Windows system in about 10 years or so, but the troubleshooting is pretty much universal.)

-Rob

···

On 2016-Aug-22, at 08:26 , Ruby Student <ruby.student@gmail.com> wrote:

Thank you

On Fri, Aug 19, 2016 at 10:17 PM, Rob Biedenharn <rob.biedenharn@gmail.com <mailto:rob.biedenharn@gmail.com>> wrote:

On Fri, Aug 19, 2016, 17:25 Ruby Student <ruby.student@gmail.com <mailto:ruby.student@gmail.com>> wrote:
I a, opening a new thread with my old problem. The other got too convoluted. The problem changed just a little bit. Now it looks like I am passed the cmqc.h issue. Now, it appears that the issue is with the lmqm.

The mkmf.log shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32 -IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward -IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

AND

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32 -IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward -IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L. -LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

The build attempt shows:

C:\>gem install rubywmq --platform=ruby -- '--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'

This isn't the command you want. It is close, but only tells the install where to find the include dir. You need:

'--with-mqm-dir="C:\IBM\WebSphere MQ\Tools\c"'

Which is what I recommended the first time.

-Rob

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in `initialize': No such file or directory @ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/generate/generate_reason.rb:222:in `block in generate'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:222:in `open'
        from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/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

Any help, please.

Thank you

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

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

--
Ruby Student

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

Martin,

I installed JRuby 9.1.2.0 and ran an mq sample program. That worked on the
first shot.
This is actually the best of both worlds as it will let me combine Ruby &
Java.

Thank you

···

On Mon, Aug 22, 2016 at 1:46 PM, Martin DeMello <martindemello@gmail.com> wrote:

Give jruby a look, then; if you can use a library from java you should be
able to use it from jruby.

martin

On Mon, Aug 22, 2016 at 5:26 AM, Ruby Student <ruby.student@gmail.com> > wrote:

Rob, I tried exactly the way you suggested, when you suggested. I also
tried again today with the same unwanted outcome.

Anyway, I am frustrated with Ruby. It is a beautiful language but
everything is difficult in it. I'll go back to Java.

Thank you

On Fri, Aug 19, 2016 at 10:17 PM, Rob Biedenharn < >> rob.biedenharn@gmail.com> wrote:

On Fri, Aug 19, 2016, 17:25 Ruby Student <ruby.student@gmail.com> wrote:

I a, opening a new thread with my old problem. The other got too
convoluted. The problem changed just a little bit. Now it looks like I am
passed the *cmqc.h* issue. Now, it appears that the issue is with the
*lmqm*.

The *mkmf.log* shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/
../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

*AND*

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

*The build attempt shows:*

*C:\>gem install rubywmq --platform=ruby --
'--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'*

This isn't the command you want. It is close, but only tells the install
where to find the include dir. You need:

'--with-mqm-dir="C:\IBM\WebSphere MQ\Tools\c"'

Which is what I recommended the first time.

-Rob

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere
MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb
extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`initialize': No such file or directory @ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/generate/generate_reason.rb:222:in `block
in generate'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:222:in `open'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/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

Any help, please.

Thank you

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

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

--
Ruby Student

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

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

--
Ruby Student

awesome :slight_smile: welcome to the ruby world!

martin

···

On Mon, Aug 22, 2016 at 11:50 AM, Ruby Student <ruby.student@gmail.com> wrote:

Martin,

I installed JRuby 9.1.2.0 and ran an mq sample program. That worked on the
first shot.
This is actually the best of both worlds as it will let me combine Ruby &
Java.

Thank you

On Mon, Aug 22, 2016 at 1:46 PM, Martin DeMello <martindemello@gmail.com> > wrote:

Give jruby a look, then; if you can use a library from java you should be
able to use it from jruby.

martin

On Mon, Aug 22, 2016 at 5:26 AM, Ruby Student <ruby.student@gmail.com> >> wrote:

Rob, I tried exactly the way you suggested, when you suggested. I also
tried again today with the same unwanted outcome.

Anyway, I am frustrated with Ruby. It is a beautiful language but
everything is difficult in it. I'll go back to Java.

Thank you

On Fri, Aug 19, 2016 at 10:17 PM, Rob Biedenharn < >>> rob.biedenharn@gmail.com> wrote:

On Fri, Aug 19, 2016, 17:25 Ruby Student <ruby.student@gmail.com> >>>> wrote:

I a, opening a new thread with my old problem. The other got too
convoluted. The problem changed just a little bit. Now it looks like I am
passed the *cmqc.h* issue. Now, it appears that the issue is with the
*lmqm*.

The *mkmf.log* shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/
../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

*AND*

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

*The build attempt shows:*

*C:\>gem install rubywmq --platform=ruby --
'--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'*

This isn't the command you want. It is close, but only tells the
install where to find the include dir. You need:

'--with-mqm-dir="C:\IBM\WebSphere MQ\Tools\c"'

Which is what I recommended the first time.

-Rob

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere
MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb
extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`initialize': No such file or directory @ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/generate/generate_reason.rb:222:in `block
in generate'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:222:in `open'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/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

Any help, please.

Thank you

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

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

--
Ruby Student

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

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

--
Ruby Student

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

BTW, I was able to install Rubywmq after I copied the MQ files from my
installation location to the default location. I tried all combinations for
changing the *extconf.rb* file, without success. So now I have the
JRuby/Java version and the *Rubywmq* version.

Thank you all for your suggestions.

···

On Mon, Aug 22, 2016 at 2:50 PM, Ruby Student <ruby.student@gmail.com> wrote:

Martin,

I installed JRuby 9.1.2.0 and ran an mq sample program. That worked on the
first shot.
This is actually the best of both worlds as it will let me combine Ruby &
Java.

Thank you

On Mon, Aug 22, 2016 at 1:46 PM, Martin DeMello <martindemello@gmail.com> > wrote:

Give jruby a look, then; if you can use a library from java you should be
able to use it from jruby.

martin

On Mon, Aug 22, 2016 at 5:26 AM, Ruby Student <ruby.student@gmail.com> >> wrote:

Rob, I tried exactly the way you suggested, when you suggested. I also
tried again today with the same unwanted outcome.

Anyway, I am frustrated with Ruby. It is a beautiful language but
everything is difficult in it. I'll go back to Java.

Thank you

On Fri, Aug 19, 2016 at 10:17 PM, Rob Biedenharn < >>> rob.biedenharn@gmail.com> wrote:

On Fri, Aug 19, 2016, 17:25 Ruby Student <ruby.student@gmail.com> >>>> wrote:

I a, opening a new thread with my old problem. The other got too
convoluted. The problem changed just a little bit. Now it looks like I am
passed the *cmqc.h* issue. Now, it appears that the issue is with the
*lmqm*.

The *mkmf.log* shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/
../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

*AND*

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

*The build attempt shows:*

*C:\>gem install rubywmq --platform=ruby --
'--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'*

This isn't the command you want. It is close, but only tells the
install where to find the include dir. You need:

'--with-mqm-dir="C:\IBM\WebSphere MQ\Tools\c"'

Which is what I recommended the first time.

-Rob

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere
MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb
extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`initialize': No such file or directory @ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/generate/generate_reason.rb:222:in `block
in generate'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:222:in `open'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/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

Any help, please.

Thank you

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

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

--
Ruby Student

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

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

--
Ruby Student

--
Ruby Student

Thank you

···

On Mon, Aug 22, 2016 at 5:15 PM, Martin DeMello <martindemello@gmail.com> wrote:

awesome :slight_smile: welcome to the ruby world!

martin

On Mon, Aug 22, 2016 at 11:50 AM, Ruby Student <ruby.student@gmail.com> > wrote:

Martin,

I installed JRuby 9.1.2.0 and ran an mq sample program. That worked on
the first shot.
This is actually the best of both worlds as it will let me combine Ruby &
Java.

Thank you

On Mon, Aug 22, 2016 at 1:46 PM, Martin DeMello <martindemello@gmail.com> >> wrote:

Give jruby a look, then; if you can use a library from java you should
be able to use it from jruby.

martin

On Mon, Aug 22, 2016 at 5:26 AM, Ruby Student <ruby.student@gmail.com> >>> wrote:

Rob, I tried exactly the way you suggested, when you suggested. I also
tried again today with the same unwanted outcome.

Anyway, I am frustrated with Ruby. It is a beautiful language but
everything is difficult in it. I'll go back to Java.

Thank you

On Fri, Aug 19, 2016 at 10:17 PM, Rob Biedenharn < >>>> rob.biedenharn@gmail.com> wrote:

On Fri, Aug 19, 2016, 17:25 Ruby Student <ruby.student@gmail.com> >>>>> wrote:

I a, opening a new thread with my old problem. The other got too
convoluted. The problem changed just a little bit. Now it looks like I am
passed the *cmqc.h* issue. Now, it appears that the issue is with
the *lmqm*.

The *mkmf.log* shows:

have_library: checking for main() in -lmqm... -------------------- no

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
c:/rubydevkit/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/
../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmqm
collect2.exe: error: ld returned 1 exit status

*AND*

"x86_64-w64-mingw32-gcc -o conftest.exe -IC:/Ruby23-x64/include/ruby-2.3.0/x64-mingw32
-IC:/Ruby23-x64/include/ruby-2.3.0/ruby/backward
-IC:/Ruby23-x64/include/ruby-2.3.0 -I. "-IC:\IBM\WebSphere
MQ\Tools\c\include" -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501
-D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3
-fno-omit-frame-pointer -fno-fast-math -g -Wall -Wextra
-Wno-unused-parameter -Wno-parentheses -Wno-long-long
-Wno-missing-field-initializers -Wunused-variable -Wpointer-arith
-Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
-Wdeprecated-declarations -Wno-packed-bitfield-compat conftest.c -L.
-LC:/Ruby23-x64/lib -L. -lx64-msvcrt-ruby230 -lmqm -lshell32 -lws2_32
-liphlpapi -limagehlp -lshlwapi "
conftest.c:16:13: error: conflicting types for 'main'
conftest.c:8:5: note: previous definition of 'main' was here

*The build attempt shows:*

*C:\>gem install rubywmq --platform=ruby --
'--with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"'*

This isn't the command you want. It is close, but only tells the
install where to find the include dir. You need:

'--with-mqm-dir="C:\IBM\WebSphere MQ\Tools\c"'

Which is what I recommended the first time.

-Rob

Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-mqm-include="C:\IBM\WebSphere
MQ\Tools\c\include"'
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 ./siteconf20160819-14040-15em4gf.rb
extconf.rb --with-mqm-include="C:\IBM\WebSphere MQ\Tools\c\include"
checking for cmqc.h... yes
checking for main() in -lmqm... no
*** 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=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
        --with-mqm-dir
        --without-mqm-dir
        --with-mqm-include=${mqm-dir}/include
        --with-mqm-lib
        --without-mqm-lib=${mqm-dir}/lib
        --with-mqmlib
        --without-mqmlib
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:6:in
`initialize': No such file or directory @ rb_sysopen - C:\Pr
ogram Files\IBM\WebSphere MQ\tools\c\include/cmqc.h (Errno::ENOENT)
        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/generate/generate_reason.rb:222:in `block
in generate'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/generate_reason.rb:222:in `open'
        from C:/Ruby23-x64/lib/ruby/gems/2.
3.0/gems/rubywmq-2.1.0/ext/generate/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

Any help, please.

Thank you

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

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

--
Ruby Student

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

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

--
Ruby Student

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

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

--
Ruby Student