2015-03-09 12:43:58 +00:00
|
|
|
V8Js on MacOS
|
|
|
|
=============
|
|
|
|
|
|
|
|
Installation of V8Js on MacOS is pretty much straight forward.
|
2022-05-31 08:56:47 +00:00
|
|
|
The ARM-based M1 chips also work just fine.
|
2015-03-09 12:43:58 +00:00
|
|
|
|
2022-05-31 08:56:47 +00:00
|
|
|
You can use [brew](https://brew.sh) to install `v8`. This provides
|
|
|
|
both the library as well as necessary include files in `/opt/homebrew`.
|
2015-03-09 12:43:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
Compile php-v8js itself
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
```
|
|
|
|
cd /tmp
|
2016-11-01 20:16:01 +00:00
|
|
|
git clone https://github.com/phpv8/v8js.git
|
2015-03-09 12:43:58 +00:00
|
|
|
cd v8js
|
|
|
|
phpize
|
2024-10-03 13:49:40 +00:00
|
|
|
./configure --with-v8js=/opt/homebrew CPPFLAGS="-DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX"
|
2022-05-31 08:56:47 +00:00
|
|
|
make -j4
|
2015-03-09 12:43:58 +00:00
|
|
|
make test
|
|
|
|
make install
|
|
|
|
```
|