[英]MAMP PRO install extension intl doesn't work
I use version 2.2 of MAMP PRO with PHP 5.5.3. 我使用PHP 5.5.3的MAMP PRO版本2.2。 I use port to install the packages.
我使用port来安装软件包。 I installed php5-intl and I copied the file intl.so in /Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212.
我安装了php5-intl,并将文件intl.so复制到/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212中。 I called the extension in the php.ini file via> Edit config> php> php5.5.3.ini because I have the pro version of mamp.
我通过>编辑配置> php> php5.5.3.ini在php.ini文件中调用了扩展名,因为我有mamp的专业版。 After restarting servers and display phpinfo () the extension is not loaded.
重新启动服务器并显示phpinfo()后,不会加载扩展名。 I tried to call the extension directly in php.ini like this "extension = '/ Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts-20121212 /intl.so' but it does not work.
我试图像这样“直接在php.ini中调用扩展名:“扩展名='/ Applications / MAMP / bin / php / php5.5.3 / lib / php / extensions / no-debug-non-zts-20121212 /intl.so”但它不起作用。
I do not see why extension is not loaded could you help me please ? 我不明白为什么扩展没有加载你能帮我吗?
Best regards, 最好的祝福,
Step 1: 第1步:
With the terminal execute the following command: 终端执行以下命令:
curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5
Once done go to the folder: 完成后转到文件夹:
/usr/local/php5 <version-number> /lib/php/extensions/no-debug-non-zts- <version-number>
Copy the file intl.so and pasted it in the folder of MAMP for me: 复制文件intl.so并将其粘贴到MAMP的文件夹中为我:
/Applications/MAMP/bin/php/php5.5.3/lib/php/extensions/no-debug-non-zts- <version-number>
Step 2: 第2步:
Edit php.ini the following path: 编辑php.ini以下路径:
/Applications/MAMP/bin/php/php5.5.3/conf/
Once opened with textEdit search part : 一旦用textEdit搜索部分打开:
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
Add the following line JUST BEFORE: 在此之前添加以下行:
extension=intl.so
which should include: 其中应包括:
; Extensions
extension=apc.so
extension=imap.so
extension=yaz.so
extension=mcrypt.so
extension=gettext.so
extension=pgsql.so
extension=pdo_pgsql.so
extension=pdo_mysql.so
extension=intl.so
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
Step 3: 第3步:
Restart your MAMP server. 重新启动MAMP服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.