在php上安装libv8

尝试通过命令安装v8js扩展:

sudo pecl install v8js-0.1.5 

但在安装结束时,我得到了:

 checking for V8 files in default path... not found configure: error: Please reinstall the v8 distribution ERROR: `/tmp/pear/temp/v8js/configure --with-v8js' failed 

同样在安装过程中,我得到了问题:

 Please provide the installation prefix of libv8 [autodetect] : 

我必须回答什么?

首先安装libv8-dev软件包。

 sudo apt-get install libv8-dev 

pecl安装程序应该发现path,但如果没有。 提问时提供/ usr / lib。