我正試圖在我的Web服務器上進行系統範圍的PEAR安裝。當我在命令行PHP的安裝目錄執行go-pear.bat
我收到以下錯誤窗口彈出:爲什麼PHP PEAR報告它無法在Windows上找到某些DLL?
---------------------------
php.exe - Unable To Locate Component
---------------------------
This application has failed to start because php_mbstring.dll was not found.
Re-installing the application may fix this problem.
---------------------------
php.exe - Unable To Locate Component
---------------------------
This application has failed to start because php_pdo.dll was not found.
Re-installing the application may fix this problem.
我也看到腳本在命令行窗口中發出如下警告:
PHP Warning: PHP Startup: Unable to load dynamic library './ext/php_exif.dll' - The specified modul
e could not be found.
in Unknown on line 0
所有這些模塊都配置在php.ini
文件(位於php安裝文件夾c:\php
)中。
它們也可以通過php_info()
正確報告。
我正在運行PHP 5.2.6 Windows非線程安全建立在IIS6上的FastCGI上。
更新:
我也試過(由acrosman的建議)設置extension_dir=c:\php
和extension_dir=c:\php\ext
但沒有成功。
我也記得在每個php.ini
修改後強制重新讀取,以消除php-cgi.exe
進程(FastCGI保持活動狀態)。
更新2:
這看起來像一個PHP問題,而不是一個問題,梨,在命令行中運行php.exe
產生同樣的錯誤。
這實際上讓事情更多因爲我認爲PHP將ext/module.dll附加到該路徑。 – Kev 2009-07-03 13:14:26