Home > Article > Backend Development > Mac installation pecl ecl luminescence kit ecl developer ecl Zhang Qi
1. Download pear.phar. If you don’t have permission, add sudo in front of it
<code>curl -O http://pear<span>.php</span><span>.net</span>/go-pear<span>.phar</span></code>
2. Install pear
<code><span>sudo</span> php <span>-d</span> detect_unicode=<span>0</span> go-pear.phar</code>
3. Test
<code>pear <span>version</span></code>
installation success!
If the following error occurs after the installation is completed:
Cannot install, php_dir for channel “pecl.php.net” is not writeable by the current user
Just run the following command to set the directorypecl config-set php_dir /path/to/new/dir
The above introduces how to install pecl on mac, including mac and ecl. I hope it will be helpful to friends who are interested in PHP tutorials.