欢迎来到 Android人的问与答 ,在这里提问或帮助他人解答。 Question2Answer的1.6.x和1.7.x版本的中文翻译包我修改更新:

Question2answer

如何使用中文语言包

Q2A 1.6.x - Chinese Simplified (简体中文)

Q2A 1.7.x - Chinese Simplified (简体中文)


国内服务器推荐 阿里云服务器
国外服务器推荐 DigitalOcean
VPN推荐 正版Green VPN
阿里云推荐码:ldvq50

Installing PEAR on OSX

0 喜欢 0 不喜欢
378 浏览

PEAR is a poplular PHP package manager, it doesn’t come by default on OSX, how to install PEAR on OSX 10.9 Mavericks and earlier versions of OSX.

Check if you have it

pear version

If not, move into:

cd /usr/local

Get it (一定要注意啊,curl -O,这里是大写的O,不是零。)

curl -O http://pear.php.net/go-pear.phar

if you are denied permission try it with sudo

sudo curl -O http://pear.php.net/go-pear.phar

Install It

sudo php -d detect_unicode=0 go-pear.phar

Click yes a couple of times during the install

pear-mountain-lion-osx

Add PEAR to your PATH (有的时候,不需要添加这个path,因为他和系统的一起了,比如:/usr/bin/ 。这时候,你直接进入pear version,进行验证就好)

cd vi .bashrc

or

vi .bash_profile

Add to your PATH variable:

/Users/USERNAME/pear/bin

So the PATH variable line will look something like this, each path is separated by a colon and finished with the variable $PATH, in the example below the pear path is the 2nd one

export PATH="/usr/local/mysql/bin:/Users/USERNAME/pear/bin:$PATH"

Refresh

source .bash_profile

Verify

pear version

Output should be

PEAR Version: 1.9.4 PHP Version: 5.4.17 Zend Engine Version: 2.4.0 Running on: Darwin admins-MacBook.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64

 
That’s PEAR installed and ready.
 
To upgrade PEAR
 
pear upgrade pear
 
To upgrade PEAR packages either name the package name after the command or to upgrade all just run
 

pear upgrade

装完pear后,其实pecl就已经包含了。

最新提问 1月 28, 2015 分类:php | 用户: forlong401 (7,050 分)

登录 或者 注册 后回答这个问题。

...