First off, I'm not a programmer. I am a network administrator who was asked to compile PHP for our web designer with SSH2 enabled.
I followed this walkthrough to compile PHP for Windows:
https://wiki.php.net/internals/windows/stepbystepbuild
To compile, I use: Microsoft Visual C ++ Studio 2008 Express Microsoft Windows SDK 6.1
I downloaded all the required libraries and libraries required for SSH2. I extracted them and put them in the "deps" folder. I also downloaded the SSH2 extension code and placed it in the "pecl" folder created in the "x86" directory.
It seems that the compiler does not find the libraries that I added. Any help would be greatly appreciated! Thank!
Here are some of the errors that occur when trying to compile with the following command:
C:\php-sdk\php53dev\vc9\x86\php5.3-201107071830>configure --enable-cli --with-ss
h2
Checking for library libjpeg_a.lib;libjpeg.lib ... <not found>
WARNING: gd not enabled; libraries and headers not found
Checking for zlib.h ... <not found>
Checking for zlib.h ... <not found>
WARNING: zip not enabled; libraries and headers not found
Checking for library libiconv_a.lib ... <not found>
Checking for library libiconv.lib ... <not found>
Checking for library iconv_a.lib ... <not found>
Checking for library iconv.lib ... <not found>
WARNING: iconv support can't be enabled, libraries or headers are missing
Checking for library zlib_a.lib;zlib.lib ... <not found>
WARNING: zlib support can't be enabled, zlib is missing
Checking for library libssh2_a.lib;libssh2.lib ... <not found>
WARNING: ssh2 not enabled: libraries or headers not found
Checking for library libxml2_a_dll.lib;libxml2_a.lib ... ..\deps\libxml2-2.7.3.w
in32\lib\libxml2_a_dll.lib
Checking for library libiconv_a.lib;iconv_a.lib;libiconv.lib;iconv.lib ... <not
found>
WARNING: libxml support can't be enabled, iconv or libxml are missing
WARNING: simplexml not enabled; libraries and headers not found
WARNING: xml support can't be enabled, libraries or headers are missing
WARNING: dom support can't be enabled, libxml is not enabled
source
share