I am trying to install webpaySWIG extension in my local but it shows some errors.
what i have done is
cd webpaySWIG-3.2
(this is the location for extesion)sudo make -f makefilePhp5
(this command is mentioned in their document)
while compiling I got the following开发者_Python百科 error
fatal error: zend.h: No such file or directory compilation terminated.
I know this is an old question but I had a similar problem recently.
You will need to update the makefilePhp5
to include the correct php include directory.
Usually it is:
PHP_INCLUDE_DIR = /usr/include/php/
However if you are running on Zend Server it's:
PHP_INCLUDE_DIR = /usr/local/zend/include/php/
If it's not in either of those do a search for zend.h
and use that directory instead.
Also i had problems with the linked library names the extension was looking for to be loaded with. Here you can find out the missing files:
root@vps:~/webpaySWIG-3.3# ldd /usr/lib/php5/20100525/libwebpayclient.so
linux-vdso.so.1 => (0x00007fff745fe000)
libssl.so.6 => not found
libcrypto.so.6 => not found
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f396b28a000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f396b008000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f396adf2000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f396aa66000)
/lib64/ld-linux-x86-64.so.2 (0x00007f396b7c6000)
then find what ever your current versions name is for each missing and create a symlink to it, in my case:
ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.6
ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/x86_64-linux-gnu/libssl.so.6
I struggled with this as well, but was able to get it successfully installed after a lot of hassle.
To save other developers time, I've put together a library to wrap around the Webpay extension. It includes a Docker container with the extension installed, and has a testsuite to check connectivity against St.George's test servers.
There is exactly one reference on the internet for "webpaySWIG" other than this question, and that's in this PDF document that seems to be an installation guide. You would do well to read it, especially the bits about required packages. It looks like you're missing the PHP development packages.
It should be noted that the guide mentions using dl()
, a function recently removed from PHP. You will need to load the extension in php.ini instead.
精彩评论