简体   繁体   中英

How to install RRD PHP extension on OS X

I need the support of RRDTool http://php.net/manual/en/ref.rrd.php in my php installation. I'm used to install php extensions using Homebrew. However, this time for RRD there isn't any available.

How can I install this extension so I can use functions like rrd_fetch() etc.?

In case someone was strugling with the same, install it using pecl

pecl install rrd

You need to have php installation with PEAR: brew install php71 --with-pear .

Also, don't forget to see PEAR config notes after php installation or using brew info php71 :

✩✩✩✩ PEAR ✩✩✩✩

If PEAR complains about permissions, 'fix' the default PEAR permissions and config:

 chmod -R ug+w /usr/local/opt/php71/lib/php pear config-set php_ini /usr/local/etc/php/7.1/php.ini system 

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