无法加载动态库 '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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 17:34:50  来源:igfitidea点击:

Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_intl.dll'

phpmysqlwamp

提问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.phpfile and find the code that sets this variable $phpDllToCopyand 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 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