WinXP - PHP启动:无法加载动态库php_ibm_db2.dll [英] WinXP - PHP Startup: Unable to load dynamic library php_ibm_db2.dll

查看:225
本文介绍了WinXP - PHP启动:无法加载动态库php_ibm_db2.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行Windows XP Professional SP 3



PHP版本5.3.14



Zend Server版本5.6.0



Apache / 2.2.22(Win32)mod_ssl / 2.2.22


PHP警告:PHP启动:无法加载动态库'C:\Program
Files \Zend\ZendServer\lib\phpext\php_ibm_db2.dll' - 指定的
过程不能被发现。在未知的第0行


这是我的路径变量中的所有内容。



C:\app\adam\product\11.2.0\client_1
; C:\app\adam\product\11.2 .0\client_1\bin
;%SystemRoot%\system32
;%SystemRoot%
;%SystemRoot%\System32\Wbem
; C:\ PROGRA〜1\IBM\CLIENT〜1
; C:\PROGRA〜1\IBM\CLIENT〜1\Shared
; C:\PROGRA〜1\IBM\\ \\ CLIENT〜1\Emulator
; C:\PHP
; C:/ PHP
; C:\Program Files\Zend\ZendServer\bin
; C:\Program Files\Zend\ZendServer\share\ZendFramework\bin
; C:\PROGRA〜1\IBM\SQLLIB\BIN
; C: \PROGRA〜1\IBM\SQLLIB\FUNCTION

文件属性:

  C:\Program Files\Zend\ZendServer\lib\phpext\php_ibm_db2.dll 
大小: 51.5 KB(52,736字节)
创建时间:2012年7月1日,星期日,12:18:48
修改:2011年6月7日,星期二,3:43:00 PM

我的PHP.ini文件位于C:\PHP


extension_dir =C:\PHP\ext



extension = php_ibm_db2.dll




针对我的整个C:\驱动器搜索php_ibm_db2.dll,找出:



如果有其他细节可以提供,请让我知道。我很困惑,为什么它不能找到这个文件。



感谢任何帮助



- 7月30日更新 -



仍然没有解决方案,但我可能发现了一个问题:



在此页面左侧: http://windows.php.net/download /



我选择哪个版本?
如果您使用apache.org的Apache 1或Apache2,您需要使用VC6版本的PHP



由于我们使用Apache2,根据上述说法,我们需要使用VC6版本的PHP。



PHP 5.4和PHP 5.3是VC9。 PHP 5.2是唯一上市的VC6。 PHP 5.2下载php-5.2.17-nts-Win32-VC6-x86.msi没有包含php_ibm_db2.dll文件。



我试过使用.DLL文件从5.3与PHP 5.2,但也得到相同的错误消息。

解决方案

使其与PHP5一起工作的步骤。 5 / apache2.4.9 / mysql5.5在Windows上:



根据您的操作系统,所有库必须一致,如果您使用32位下载32位库,使用64位,不要混合。



1)安装iSeries客户端库( https://www-01.ibm.com/marketing/iwm/iwm/web/preLogin.do?source=swg- idsdpds ),您将需要一个IBM ID才能下载,如果您没有注册。



2)配置您的WAMP服务器并创建一个 phpinfo()脚本检查编译器线程安全字段。



3)打开你的php.ini和添加/修改:
extension_dir = C:\wamp\bin\php\php5.5.12\ext\\ \\
扩展名 = php_ibm_db2.dll



4)下载ibm_db2的PECL( https: //pecl.php.net/package/ibm_db2/1.9.7/windows ),并使用编译器线程查看它安全的步骤2),在我的情况下 5.5线程安全(TS)x64 ,当我下载文件的名称是 php_ibm_db2-1.9.7-5.5-ts-vc11-x64 表示编译器 VC11, TS (Thread Safe),64位1.9.7版本。



5)解压文件并复制 php_ibm_db2.dll 到你的php extension_dir ,在我的情况下C:\wamp\bin\php\php5.5.12\\ 6,重新启动Apache,



7)运行<?php echo phpinfo()?> ,如果您看到 ibm_db2 部分它可以工作。


Running Windows XP Professional SP 3

PHP Version 5.3.14

Zend Server Version 5.6.0

Apache/2.2.22 (Win32) mod_ssl/2.2.22

PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\Zend\ZendServer\lib\phpext\php_ibm_db2.dll' - The specified procedure could not be found. in Unknown on line 0

Here is everything in my "Path" variable.

C:\app\adam\product\11.2.0\client_1
;C:\app\adam\product\11.2.0\client_1\bin
;%SystemRoot%\system32
;%SystemRoot%
;%SystemRoot%\System32\Wbem
;C:\PROGRA~1\IBM\CLIENT~1
;C:\PROGRA~1\IBM\CLIENT~1\Shared
;C:\PROGRA~1\IBM\CLIENT~1\Emulator
;C:\PHP
;C:/PHP
;C:\Program Files\Zend\ZendServer\bin
;C:\Program Files\Zend\ZendServer\share\ZendFramework\bin
;C:\PROGRA~1\IBM\SQLLIB\BIN
;C:\PROGRA~1\IBM\SQLLIB\FUNCTION

File properties:

C:\Program Files\Zend\ZendServer\lib\phpext\php_ibm_db2.dll
Size: 51.5 KB (52,736 bytes)
Created: Sunday, July 01, 2012, 12:18:48 PM
Modified: Tuesday, June 07, 2011, 3:43:00 PM

My PHP.ini file is in C:\PHP

extension_dir = "C:\PHP\ext"

extension=php_ibm_db2.dll

A search against my entire C:\ drive for php_ibm_db2.dll comes up with:

If there is any other detail i can provide please let me know. I'm baffled as to why it "cant find" this file.

Thanks for any help

-- Jul 30 Update --

Still dont have a solution, but I may have found an issue:

On the left of this page: http://windows.php.net/download/

"Which version do I choose? If you are using PHP with Apache 1 or Apache2 from apache.org you need to use the VC6 versions of PHP"

Since we are using Apache2, according to the above statement, we need to use the VC6 version of PHP.

PHP 5.4 and PHP 5.3 are VC9. PHP 5.2 is the only VC6 listed. PHP 5.2 download "php-5.2.17-nts-Win32-VC6-x86.msi" did not include the php_ibm_db2.dll file.

I've tried using the .DLL file from 5.3 with PHP 5.2, but also get the same error message.

解决方案

Steps to make it work with PHP5.5/apache2.4.9/mysql5.5 on Windows:

All libraries must be consistent according to your OS, if you work with 32 bits download 32 bits libraries, the same with 64 bits, don't mix.

1) Install iSeries client libraries (https://www-01.ibm.com/marketing/iwm/iwm/web/preLogin.do?source=swg-idsdpds) you will need an IBM ID to download, if you dont have it just sign up.

2) Configure your WAMP server and create a phpinfo() script to check the Compiler and Thread Safe fields.

3) Open your php.ini and add/modify: extension_dir = "C:\wamp\bin\php\php5.5.12\ext\" extension=php_ibm_db2.dll

4) Download the PECL for ibm_db2 (https://pecl.php.net/package/ibm_db2/1.9.7/windows) and check it out with the Compiler and Thread Safe of the step 2), in my case 5.5 Thread Safe (TS) x64, when I downloaded the name of the file was php_ibm_db2-1.9.7-5.5-ts-vc11-x64 that indicates Compiler VC11, TS (Thread Safe), 64 bits 1.9.7 version.

5) Unzip the file and copy php_ibm_db2.dll to your php extension_dir, in my case "C:\wamp\bin\php\php5.5.12\ext\".

6) Restart Apache,

7) Run "<?php echo phpinfo()?>", if you see the ibm_db2 section it works.

这篇关于WinXP - PHP启动:无法加载动态库php_ibm_db2.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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