2

Try to install v8js extension by command:

sudo pecl install v8js-0.1.5

but at the end of installation I got:

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

Also at the middle of installation I got question:

Please provide the installation prefix of libv8 [autodetect] :

What I have to answer?

2
  • What distro do you use, and which version of php? Commented Dec 26, 2014 at 19:44
  • I use ubuntu 14.04 and php 5.5.9 Commented Dec 26, 2014 at 19:58

1 Answer 1

3

Install libv8-dev package first.

sudo apt-get install libv8-dev 

pecl installer should discover path but if not. provide /usr/lib when it asked.

1
  • Thanks. I'm sorry, not enough reputation to vote. I'm absolutely sure libv8-dev was installed right before... but your solution works. Commented Dec 26, 2014 at 22:28

Not the answer you're looking for? Browse other questions tagged .