Home > php教程 > php手册 > mac os x 10.9.4安装pecl

mac os x 10.9.4安装pecl

WBOY
Release: 2016-06-06 20:13:17
Original
1139 people have browsed it

mac os x上面没有ubuntu里面的apt-get工具,安装扩展又不想手动编译,只好来安装这个php 自己的扩展管理工具。 cd /usr/lib/phpsudo php install-pear-nozlib.phar 编辑/etc/php.ini文件,如果没有的话就把当前目录下面的 php.ini.default复制过来, 如果编辑

mac os x上面没有ubuntu里面的apt-get工具,安装扩展又不想手动编译,只好来安装这个php 自己的扩展管理工具。

cd /usr/lib/php
sudo php install-pear-nozlib.phar
Copy after login

编辑/etc/php.ini文件,如果没有的话就把当前目录下面的 php.ini.default复制过来,

如果编辑的过程中提示无法编辑,执行chmod 777 php.ini文件改成可编辑状态,改完再回复回去。

include_path = “.:/php/includes”
修改为:
include_path = “.:/usr/lib/php/pear”

sudo pear channel-update pear.php.net
sudo pecl channel-update pecl.php.net
sudo pear upgrade-all
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template