Problems compiling PHP with the CCH2 extension for Windows

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
+5
source share
3 answers

For SSH2: (updated URL, we place all releases there under pecl / snaps, some snapshot assemblies can also be found).

http://windows.php.net/downloads/pecl/releases/ssh2/

For an error in your assembly, you are missing all the default files. But if all you want is ssh2, use:

configure --disable-all --enable-cli --with-ss2 = shared

(zts or nts may also require the zts option)

+2
source

: http://downloads.php.net/pierre/, .

- , IRC: # php.pecl @efnet. , .

, ssh2 , CTRL + F .

0

You do not need dependencies, namely libssh2 . You will have to compile it first, and then put it in the include path and the lib file in the lib path. It is accordingly for the PHP SDK deps/liband deps/include.

Then run configureagain.

0
source

All Articles