|The INTL extension may be included in PHP 5.4, PHP 5.3 is still the main PHP version installed on many production servers. Here is how you install it on a Mac.|
|Get ICU from|
|At the time of this writing, I downloaded the|
|icu4c-49_1_2-src.tgz package on|
|Unzip the file. Open a new bash window and go to the /source folder of the unzipped file.|
|In Terminal, type :|
|sudo make install|
|sudo pecl install intl|
|You now have the INTL extension on your hard drive, but you have to copy it in your PHP extensions folder. Since I’m using MAMP, i’m copying it in the MAMP extension folder (which is not the same folder as the CLI PHP extension folder). In Terminal, type :|
|cp /usr/lib/php/extensions/no-debug-non-zts-20090626/intl.so /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/intl.so|
|Edit your php.ini file. In my case, it is located in /Applications/MAMP/bin/php/php5.3.6/conf/php.ini. Add this line to the extensions section :|
I’m having trouble executing the command
I tried this solution http://stackoverflow.com/questions/11597944/install-oauth-pecl-error-cannot-install-php-dir-for-channel-pecl-php-net-is/11813232, but when I run
So obviously trying to change ownership of said directory doesn’t work. Did anybody else run into this issue?
I'm having issues at
sudo pecl install intl
during the process, i get an error:
/usr/local/include/unicode/unistr.h:3025:7: error: delegating constructors are permitted only in C++11
anyone have similar issues?
I just figured out the solution to the problem with "delegating constructors are permitted only in C++11"
It looks like the latest version of ICU uses the C++11 features that are not available in osx sierra.
I had to download 58 to get this to work.
to get intl to successfully install I had to disable SIP (http://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html)
On macos Captain
Download the ICU 59.1 source, and edit source/runConfigureICU add -std=c++11 in RELEASE_CXXFLAGS line
Second: install AutoConf
cd ~ && curl -O http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz
Download intl-3.0.0 code (https://pecl.php.net/get/intl-3.0.0.tgz)
Here, edit Makefile search CXXFLAGS line and add -std=c++11
Save changes and run
This works for me.