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
|
2022-05-31 08:56:47 +00:00
|
|
|
./configure --with-v8js=/opt/homebrew CPPFLAGS="-DV8_COMPRESS_POINTERS"
|
|
|
|
make -j4
|
2015-03-09 12:43:58 +00:00
|
|
|
make test
|
|
|
|
make install
|
|
|
|
```
|