you can ref this:http://www.phpied.com/installing-v8js-for-php-on-a-mac/
if you have no pear and pecl, you can ref this:http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/