本文介绍了PHP intl.so失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经尝试使用PHP安装MongoDB

I recently was trying to install MongoDB for PHP, I used

 brew install homebrew/php/php55-mongodb

这安装了其他要求的全部负载,现在PHP的intl.so已损坏.每当我运行composer update时,都会出现上述错误,并且我需要intl.so的库现在断开并说它不存在.

This installed a whole load of other requirements and now intl.so for PHP is broken. I get the above error whenever I run composer update and the libs I have that need intl.so now break and say its not present.

我认为这与问题有关,但没有提供解决方案 https://github .com/Homebrew/homebrew-php/issues/2544

I believe this is related to the issue but it offers no solution https://github.com/Homebrew/homebrew-php/issues/2544

我该如何消除这种混乱?

How can I undo this mess?

推荐答案

进行更多挖掘后,我删除了该文件,然后使用pecl安装了intl,这似乎已经奏效.我还删除了icu4c,然后重新安装了它,因为这是导致此问题的相关软件包;

After more digging I removed, then installed intl using pecl and this seems to have worked. I also removed and then reinstalled icu4c as this is a related package that causes the issue;

sudo pecl remove intl
brew unlink icu4c
brew remove icu4c
brew install icu4c
sudo pecl install intl

这篇关于PHP intl.so失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 18:42