<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear All,<br>
    <br>
    <br>
    <br>
    I am using Windows 7<br>
    ruby version :: ruby 2.1.6p336 (2015-04-13 revision 50298)
    [i386-mingw32]<br>
    gem version :: 2.2.3<br>
    <br>
    <br>
    <br>
    <br>
    I have a problem in installing  gem puma<br>
    <br>
    <pre style="padding: 9.5px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; color: rgb(51, 51, 51); border-radius: 4px; display: block; margin: 0px 0px 10px; line-height: 20px; word-break: break-all; word-wrap: break-word; white-space: pre-wrap; border: 1px solid rgba(0, 0, 0, 0.14902); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245);"><code class="bat" style="padding: 0px; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; color: inherit; border-radius: 3px; border: 0px; background-color: transparent;">PS C:\Users\VSrinivasan\mystuff\SampleApp> gem install puma
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing puma:
        ERROR: Failed to build gem native extension.

    C:/Ruby21/bin/ruby.exe extconf.rb
checking for BIO_read() in -lcrypto... no
checking for BIO_read() in -llibeay32... 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:/Ruby21/bin/ruby
        --with-puma_http11-dir
        --without-puma_http11-dir
        --with-puma_http11-include
        --without-puma_http11-include=${puma_http11-dir}/include
        --with-puma_http11-lib
        --without-puma_http11-lib=${puma_http11-dir}/lib
        --with-cryptolib
        --without-cryptolib
        --with-libeay32lib
        --without-libeay32lib

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/puma-2.13.4 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/puma-2.13.4/gem_make.out
</code></pre>
    <br>
    mkmf.log<br>
    <br>
    have_library: checking for BIO_read() in -lcrypto...
    -------------------- no<br>
    <br>
    "gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32
    -IC:/Ruby21/include/ruby-2.1.0/ruby/backward
    -IC:/Ruby21/include/ruby-2.1.0 -I. -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 conftest.c  -L. -LC:/Ruby21/lib
    -L.      -lmsvcrt-ruby210  -lshell32 -lws2_32 -liphlpapi -limagehlp
    -lshlwapi  "<br>
    checked program was:<br>
    /* begin */<br>
    1: #include "ruby.h"<br>
    2: <br>
    3: #include <winsock2.h><br>
    4: #include <windows.h><br>
    5: int main(int argc, char **argv)<br>
    6: {<br>
    7:   return 0;<br>
    8: }<br>
    /* end */<br>
    <br>
    "gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32
    -IC:/Ruby21/include/ruby-2.1.0/ruby/backward
    -IC:/Ruby21/include/ruby-2.1.0 -I. -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 conftest.c  -L. -LC:/Ruby21/lib
    -L.      -lmsvcrt-ruby210 -lcrypto  -lshell32 -lws2_32 -liphlpapi
    -limagehlp -lshlwapi  "<br>
    conftest.c: In function 't':<br>
    conftest.c:16:57: error: 'BIO_read' undeclared (first use in this
    function)<br>
    conftest.c:16:57: note: each undeclared identifier is reported only
    once for each function it appears in<br>
    conftest.c:16:32: warning: variable 'p' set but not used
    [-Wunused-but-set-variable]<br>
    checked program was:<br>
    /* begin */<br>
     1: #include "ruby.h"<br>
     2: <br>
     3: #include <winsock2.h><br>
     4: #include <windows.h><br>
     5: <br>
     6: /*top*/<br>
     7: extern int t(void);<br>
     8: int main(int argc, char **argv)<br>
     9: {<br>
    10:   if (argc > 1000000) {<br>
    11:     printf("%p", &t);<br>
    12:   }<br>
    13: <br>
    14:   return 0;<br>
    15: }<br>
    16: int t(void) { void ((*volatile p)()); p = (void
    ((*)()))BIO_read; return 0; }<br>
    /* end */<br>
    <br>
    "gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32
    -IC:/Ruby21/include/ruby-2.1.0/ruby/backward
    -IC:/Ruby21/include/ruby-2.1.0 -I. -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 conftest.c  -L. -LC:/Ruby21/lib
    -L.      -lmsvcrt-ruby210 -lcrypto  -lshell32 -lws2_32 -liphlpapi
    -limagehlp -lshlwapi  "<br>
    conftest.c: In function 't':<br>
    conftest.c:16:1: warning: implicit declaration of function
    'BIO_read' [-Wimplicit-function-declaration]<br>
    c:/devkit/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe:

    cannot find -lcrypto<br>
    collect2.exe: error: ld returned 1 exit status<br>
    checked program was:<br>
    /* begin */<br>
     1: #include "ruby.h"<br>
     2: <br>
     3: #include <winsock2.h><br>
     4: #include <windows.h><br>
     5: <br>
     6: /*top*/<br>
     7: extern int t(void);<br>
     8: int main(int argc, char **argv)<br>
     9: {<br>
    10:   if (argc > 1000000) {<br>
    11:     printf("%p", &t);<br>
    12:   }<br>
    13: <br>
    14:   return 0;<br>
    15: }<br>
    16: int t(void) { BIO_read(); return 0; }<br>
    /* end */<br>
    <br>
    --------------------<br>
    <br>
    have_library: checking for BIO_read() in -llibeay32...
    -------------------- no<br>
    <br>
    "gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32
    -IC:/Ruby21/include/ruby-2.1.0/ruby/backward
    -IC:/Ruby21/include/ruby-2.1.0 -I. -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 conftest.c  -L. -LC:/Ruby21/lib
    -L.      -lmsvcrt-ruby210 -llibeay32  -lshell32 -lws2_32 -liphlpapi
    -limagehlp -lshlwapi  "<br>
    conftest.c: In function 't':<br>
    conftest.c:16:57: error: 'BIO_read' undeclared (first use in this
    function)<br>
    conftest.c:16:57: note: each undeclared identifier is reported only
    once for each function it appears in<br>
    conftest.c:16:32: warning: variable 'p' set but not used
    [-Wunused-but-set-variable]<br>
    checked program was:<br>
    /* begin */<br>
     1: #include "ruby.h"<br>
     2: <br>
     3: #include <winsock2.h><br>
     4: #include <windows.h><br>
     5: <br>
     6: /*top*/<br>
     7: extern int t(void);<br>
     8: int main(int argc, char **argv)<br>
     9: {<br>
    10:   if (argc > 1000000) {<br>
    11:     printf("%p", &t);<br>
    12:   }<br>
    13: <br>
    14:   return 0;<br>
    15: }<br>
    16: int t(void) { void ((*volatile p)()); p = (void
    ((*)()))BIO_read; return 0; }<br>
    /* end */<br>
    <br>
    "gcc -o conftest.exe -IC:/Ruby21/include/ruby-2.1.0/i386-mingw32
    -IC:/Ruby21/include/ruby-2.1.0/ruby/backward
    -IC:/Ruby21/include/ruby-2.1.0 -I. -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 conftest.c  -L. -LC:/Ruby21/lib
    -L.      -lmsvcrt-ruby210 -llibeay32  -lshell32 -lws2_32 -liphlpapi
    -limagehlp -lshlwapi  "<br>
    conftest.c: In function 't':<br>
    conftest.c:16:1: warning: implicit declaration of function
    'BIO_read' [-Wimplicit-function-declaration]<br>
    c:/devkit/mingw/bin/../lib/gcc/i686-w64-mingw32/4.7.2/../../../../i686-w64-mingw32/bin/ld.exe:

    cannot find -llibeay32<br>
    collect2.exe: error: ld returned 1 exit status<br>
    checked program was:<br>
    /* begin */<br>
     1: #include "ruby.h"<br>
     2: <br>
     3: #include <winsock2.h><br>
     4: #include <windows.h><br>
     5: <br>
     6: /*top*/<br>
     7: extern int t(void);<br>
     8: int main(int argc, char **argv)<br>
     9: {<br>
    10:   if (argc > 1000000) {<br>
    11:     printf("%p", &t);<br>
    12:   }<br>
    13: <br>
    14:   return 0;<br>
    15: }<br>
    16: int t(void) { BIO_read(); return 0; }<br>
    /* end */<br>
    <br>
    --------------------<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    Request your help please<br>
    <br>
    Rgds<br>
    V.Srinivasan<br>
  </body>
</html>