phpv8 / v8js

V8 Javascript Engine for PHP — This PHP extension embeds the Google V8 Javascript Engine
http://pecl.php.net/package/v8js
MIT License
1.84k stars 200 forks source link

checking for V8 files in default path... not found #206

Closed dotMastaz closed 8 years ago

dotMastaz commented 8 years ago

Hello,

I copy the libv8.so to /usr/ib/ , /usr/local/lib/ , /opt/v8/lib/ , /usr/local/v8/lib/

And after ' sudo pecl install v8js' :

I have this :+1: checking for V8 Javascript Engine... yes, shared checking for V8 files in default path... not found configure: error: Please reinstall the v8 distribution

Thanks for your help !

stesie commented 8 years ago

Hi,

you don't just have to copy over the libv8.so file, but at least also the libv8_libplatform.a as well as the include header files. See https://github.com/phpv8/v8js/blob/php7/README.Linux.md

If you let V8 build its own version of libicu, than that one as well (possibly including the rpath fix, see README)

Hope that helps :-)

dotMastaz commented 8 years ago

Hello,

Compil v8js OK !! Very big thank you very much !!