-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install v8js on macOS Catalina #457
Comments
I haven't gotten all the tests to pass either for php@7.4 in general, but I got it working? See below. [Catalina 10.15.7, PHP 7.4.13, Macbook Pro 16", 2019]
mkdir -p /usr/local/Cellar/v8/8.6.395.23/libexec/lib
cp /usr/local/Cellar/v8/8.6.395.23/libexec/* /usr/local/Cellar/v8/8.6.395.23/libexec/lib
Note: You can't use
Or you can run this command in the v8js folder:
Result: 2 tests skipped. Maybe due to some php@7.4 version conditional instruction to skip but we can basically say that all tests passed?
|
How to install v8js with PHP v7.4.13 on macOS CatalinaThank you @noogen, you helped me a lot!👍 In your example
The following command patches file
|
I can't install V8Js on macOS Catalina, PHP 7.4.13. I tried two ways of installation:
Both ways without success. Any ideas?
First Way Steps
Installation of the latest version of v8 with Brew:
Compilation of v8js:
cd v8js
Here I get this error:
I also tried to copy v8 files to default path with:
cp -r /usr/local/Cellar/v8/8.7.220.25/libexec/include/* /usr/local/include
,cp /usr/local/Cellar/v8/8.7.220.25/libexec/lib*.dylib /usr/local/lib/
. Then I tried some different configurations:./configure CXXFLAGS="-Wno-c++11-narrowing"
,./configure CXXFLAGS="-Wno-c++11-narrowing" LDFLAGS="-lstdc++"
, and./configure --with-v8js=/opt/v8 LDFLAGS="-lstdc++" CPPFLAGS="-DV8_COMPRESS_POINTERS"
. No luck:/Second Way Steps
Compiling older version v8:
cd v8
Here I update regex to accept newer version of SDK. macOS Catalina comes with version 11.
^MacOSX(\10\.\d+)\.sdk$
to^MacOSX(\d+\.\d+)\.sdk$
.cp -r include/* /usr/local/include
cp lib*.dylib /usr/local/lib/
Compilation of v8js:
cd v8js
Here I get bunch of warnings.
make test
Almost all tests fail.
The text was updated successfully, but these errors were encountered: