简体   繁体   中英

PHP: Installing PECL Extensions

I'm on a Mac OS X 10.6 and If I type in the terminal:

Me:~ Me$ pecl install extname

Then I get this error:

-bash: pecl: command not found

How can I make the pecl command work?

According to php.net this should work, what I'm doing wrong?

hm.. mine is working:

sayaMac:~ ayik$ pecl channel-info
No channel specified
sayaMac:~ ayik$ whereis pecl
/usr/bin/pecl
sayaMac:~ ayik$

please make sure /usr/bin is in your PATH env. check with:

sayaMac:~ ayik$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/ayik/adb/tools
sayaMac:~ ayik$ 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM