mac xampp php 7 intl extension

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

mac xampp php 7 intl extension

Postby gigamike » 14. December 2016 03:40

Hi,

Anyone successfully install mac xampp php 7 intl extension/.so ?

Thanks in advance,

Mike
gigamike
 
Posts: 1
Joined: 14. December 2016 03:37
XAMPP version: 7.0.13
Operating System: mac

Re: mac xampp php 7 intl extension

Postby crsss » 23. January 2017 13:33

Hi,

you have to build intl-extension from php source code on your own. If you have some experiences using the terminal it won't be hard to do.

First make sure you installed Xcode and started it at least once to finish installation and accept license agreement.
Download latest version of autoconf from http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.gz. Its a prerequisite to build php modules which is not shipped with macOS.
Extract the file and open a terminal in macOS and open the extracted folder using cd command.
Afterwards use commands:
./configure
make
sudo make install (your password is required, make sure you are an admin user in macOS)

Download the version of php you use in xampp from php.net.
Extract it and open the extracted folder in a terminal using cd.
Change to subfolder ext/intl.
Run these commands to build the extension:
/Applications/XAMPP/bin/phpize
./configure --enable-intl --with-php-config=/Applications/XAMPP/bin/php-config --with-icu-dir=/Applications/XAMPP/xamppfiles/
make
sudo make install (password required)
Delete all files you downloaded and also the extracted folders.
Add to php.ini file in xampp/etc folder line
extension="intl.so"

Since intl-extension has to be compiled anew each time you installed a new version of xampp I wrote a shell script to do this for me.

Regards,
Chris
crsss
 
Posts: 7
Joined: 02. February 2016 02:27
XAMPP version: 7.1.7
Operating System: macOS, Debian


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 9 guests