无法加载动态库 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll'
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24984913/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll'
提问by bigcoder995
I am attempting to connect from an android app to mySQL database within the WAMP server. I am getting this error consistently throughout my php_error log:
我正在尝试从 android 应用程序连接到 WAMP 服务器中的 mySQL 数据库。我在整个 php_error 日志中始终收到此错误:
PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll'
The specified module could not be found.
in Unknown on line 0
When I click on the Apache>Version>2.4.9 I get the 2 following errors as pop ups:
当我单击 Apache>Version>2.4.9 时,弹出窗口出现以下 2 个错误:
The program cant start because icuuc51.dll is missing from your computer.
Try reinstalling the program to fix this problem
and
和
PHP startup: unable to load dynamic library 'c/wamp/bin/php/php5.5.12/ext/php_intl.dll'
The specified module could not be found.
Does anyone know what is causing this or any potential solutions?
有谁知道是什么导致了这个或任何潜在的解决方案?
回答by RiggsFolly
This can be corrected very simply as follows.
这可以非常简单地纠正如下。
Using the wampmanager menus do the following :-
使用 wampmanager 菜单执行以下操作:-
left click wampmanager -> Apache -> Version
and then click the version number, probably 2.4.9
然后点击版本号,大概 2.4.9
This will cause WAMPServer to rebuild of all the SYMLINK's in the apache2.4.9/bin folder and that will put the correct symlinks in there for these 2 extensions.
这将导致 WAMPServer 重建 apache2.4.9/bin 文件夹中的所有 SYMLINK,并将为这两个扩展放置正确的符号链接。
TO CORRECT THE SECOND ISSUE
纠正第二个问题
Edit the \wamp\script\config.inc.php
file and find the code that sets this variable $phpDllToCopy
and replace it with this code.
编辑\wamp\script\config.inc.php
文件并找到设置此变量的代码$phpDllToCopy
并将其替换为此代码。
$phpDllToCopy = array (
'icudt52.dll', //[modif oto] - Ajouts pour éviter unknown error PHP 5.6.a2
'icuin52.dll',
'icuio52.dll',
'icule52.dll',
'iculx52.dll',
'icutest52.dll',
'icutu52.dll',
'icuuc52.dll',
'icudt51.dll', //[modif oto] - Ajouts pour éviter unknown error PHP 5.5.6
'icuin51.dll',
'icuio51.dll',
'icule51.dll',
'iculx51.dll',
'icutest51.dll',
'icutu51.dll',
'icuuc51.dll',
'icudt50.dll', //[modif oto] - Ajouts pour éviter unknown error PHP 5.5
'icuin50.dll',
'icuio50.dll',
'icule50.dll',
'iculx50.dll',
'icutest50.dll',
'icutu50.dll',
'icuuc50.dll',
'icudt49.dll', //[modif oto] - Ajouts pour éviter unknown error PHP 5.3/5.4
'icuin49.dll',
'icuio49.dll',
'icule49.dll',
'iculx49.dll',
'icutest49.dll',
'icutu49.dll',
'icuuc49.dll',
'libeay32.dll',
'libsasl.dll', //[modif oto] - Ajout pour éviter unknown error
'libintl.dll',
'php5isapi.dll',
'php5nsapi.dll',
'ssleay32.dll',
'php5ts.dll',
'fribidi.dll', //[modif oto] - Ci-contre et dessous pour PHP 5.2.x
'fdftk.dll', // Peuvent être supprimés pour PHP 5.3.0 ou plus
'libmcrypt.dll',
'libmhash.dll',
'libmysql.dll',
'libmysqli.dll',
'msql.dll',
'ntwdblib.dll',
'php5activescript.dll',
);
回答by corentingi
You simply need to install Visual C++ Redistributable for Visual Studio 2012 Update 4
您只需要为 Visual Studio 2012 Update 4安装Visual C++ Redistributable
Explaination here : https://www.devside.net/wamp-server/unable-to-load-or-find-php-extension-php_intl-dll
这里的解释:https: //www.devside.net/wamp-server/unable-to-load-or-find-php-extension-php_intl-dll
回答by Avinash Babu
I think you have to copy these files
我想你必须复制这些文件
icudt.dll
icudt46.dll
icuin.dll
icuin46.dll
icuio.dll
icuio46.dll
icule.dll
icule46.dll
iculx.dll
iculx46.dll
icutest.dll
icutest46.dll
icutu.dll
icutu46.dll
icuuc.dll
icuuc46.dll
to the location <wamp_installation_path>/bin/apache/apache2.2.22/bin/
.
到地点<wamp_installation_path>/bin/apache/apache2.2.22/bin/
。
See herefor details.
有关详细信息,请参见此处。
回答by Virgil
First check if the mentioned file (php_intl.dll) is under c:\wamp\bin\php5.5.12\ext folder.
If so, open the following file with notepad:
c:\wamp\bin\php5.5.12\php.ini
and check if you can find the following line (important: should not have ; sign before the word 'extension'):
extension=php_intl.dll
首先检查提到的文件(php_intl.dll)是否在 c:\wamp\bin\php5.5.12\ext 文件夹下。
如果是这样,请用记事本打开以下文件:
c:\wamp\bin\php5.5.12\php.ini
并检查是否可以找到以下行(重要:不应在“扩展名”一词前签名):
扩展名=php_intl.dll