문제

I'm trying to install rubedo cms, and get an error in the php application:

Zend\I18n\Validator component requires the intl PHP extension

These are the steps I've taken to install the extension

sudo port install php5-intl
sudo cp /opt/local/lib/php54/extensions/no-debug-non-zts-20100525/intl.so /usr/lib/php/extensions/no-debug-non-zts-20090626/
sudo pico /private/etc/php.ini

add

extension=intl.so

then

sudo apachectl restart
도움이 되었습니까?

해결책

I found the problem.

I needed the right version of intl. I'm running php 5.3, which I think is the reason that when I ran:

sudo port install php53-intl

it worked.

Significantly, the parent folder also was named the same in the src and destination in the copy.

So my final process was:

sudo port install php53-intl
sudo cp /opt/local/lib/php54/extensions/no-debug-non-zts-20090626/intl.so  /usr/lib/php/extensions/no-debug-non-zts-20090626/
sudo pico /private/etc/php.ini

add

extension=intl.so

then

sudo apachectl restart

다른 팁

Use Brew.

e.g. brew install php56-intl

That's it! :-)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top