Note The permissions of the directory before downloading the installation, you can create a new directory for the permissions
1, download Pear.phar, no permission to add sudo in front
curl -O http://pear.php.net/go-pear.phar
2, installation Pear
sudo-d detect_unicode=0 go-pear.phar
3. Testing
version
Installation is successful!
If the following error occurs after the installation is complete:
Cannot install, Php_dir for channel ' Pecl.php.net ' is not writeable by the current user
Just run the following command to set the directory
pecl config-set php_dir /path/to/new/dir
'). addclass (' pre-numbering '). Hide (); $ (this). addclass (' has-numbering '). Parent (). append ($numbering); for (i = 1; i <= lines; i++) {$numbering. Append ($ ('
'). Text (i)); }; $numbering. FadeIn (1700); }); });
The above describes the Mac installation pecl, including the mac,ecl aspects of the content, I hope the PHP tutorial interested in a friend helpful.