如何在Windows上为PHP 7编译ibm_db2 tar? [英] How do I compile ibm_db2 tar for PHP 7 on Windows?

查看:98
本文介绍了如何在Windows上为PHP 7编译ibm_db2 tar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7的XAMP中运行PHP 7,需要使用IBM DB2驱动程序来安装PHP

I am running PHP 7 in XAMP on Windows 7 and need to use the IBM DB2 driver for PHP

https://pecl.php.net/package/ibm_db2

仅DLL驱动程序适用于PHP 5,因此请根据针对PHP7的php_ibm_db2.dll扩展名Windows?我需要编译tar文件以创建自己的驱动程序。问题是:我该怎么办?

The DLL drivers only work for PHP 5 so according to php_ibm_db2.dll extension for PHP7 on Windows? I need to compile the tar file to create my own driver. Question is: how do I do that?

推荐答案

IBM在2017年8月发布了针对Windows 32位的预构建ibm_db ,需要Windows上的32位PHP和32位Db2客户端-这不是我的目标。

IBM distributed in August-2017 a pre-built ibm_db for Windows 32-bit, requiring a 32-bit PHP, and a 32-bit Db2-client on Windows - which was not my target.

如果您有32位环境(即32位PHP,32位ibm_db预先构建和32位Db2客户端)也许您可以尝试?

If you have a 32-bit environment (i.e. 32-bit PHP, 32-bit ibm_db pre-built, and 32-bit Db2-client) maybe you can try that?

IBM可能会在某个时候为Windows提供ibm_db的64位二进制文​​件,如果他们还没有这样做的话。

It's possible IBM may deliver 64-bit binaries of ibm_db for Windows at some point, if they've not done it already.

在2017年8月,我尝试了64位版本的PHP 7.1.10和ibm_db2 v2.0.0。编译完成,没有错误,但是使用ibm_db时崩溃了。
我没有时间解决崩溃问题。从那时起,PHP-7和ibm_db均已更新为更高版本,这可能会解决问题。

In August-2017, I tried a 64-bit build of PHP 7.1.10 and ibm_db2 v2.0.0. The compile completed without errors but I got crashes when using ibm_db. I did not have time to resolve the crashes. Since that time both PHP-7 and ibm_db have been refreshed to higher versions, which may resolve matters.

您的里程可能会有所不同。

Your mileage may vary.

我遵循以下链接的提示:

I followed tips at the links below:

https://github.com/php/pecl-database-ibm_db2

https://pecl.php.net/package/ibm_db2

< a href = https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2 rel = nofollow noreferrer> https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2

http ://www.php.net/manual/zh-CN/install.windows.php#install.windows.build

这篇关于如何在Windows上为PHP 7编译ibm_db2 tar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆