0
0
mirror of https://github.com/phpv8/v8js.git synced 2025-01-03 10:21:51 +00:00

Update README.Linux.md

Added a note about adding the extension to PHP config, especially for CLI, which needs to be configured separately in some PHP7 installs.
This commit is contained in:
Alexander Hofstede 2015-11-20 22:51:18 +07:00
parent 33d2de53c7
commit 1642ce48ba

View File

@ -38,6 +38,8 @@ sudo cp -R include/* /usr/include
echo -e "create /usr/lib/libv8_libplatform.a\naddlib out/native/obj.target/tools/gyp/libv8_libplatform.a\nsave\nend" | sudo ar -M
```
Then add `extension=v8js.so` to your php.ini file. If you have a separate configuration for CLI, add it there also.
* If the V8 library is newer than 4.4.9.1 you need to pass `snapshot=off` to
`make`, otherwise the V8 library will not be usable
(see V8 [Issue 4192](https://code.google.com/p/v8/issues/detail?id=4192))