我正在尝试使用需要v8js 扩展的 react-laravel管理服务器端渲染。我的工作环境是laradock。
我在 laradocks .env文件中启用了 V8JS 安装:
WORKSPACE_INSTALL_V8JS=true
我已经通过 docker-compose 重建了我的工作区和 php-fpm 图像
docker-compose build workspace php-fpm
docker-compose restart
当我尝试在容器中安装 react-laravel 时,我遇到了这样的错误:
Problem 1
- reactjs/react-php-v8js dev-master requires ext-v8js >=0.1.3 -> the requested PHP extension v8js is missing from your system.
- talyssonoc/react-laravel v0.11 requires reactjs/react-php-v8js dev-master -> satisfiable by reactjs/react-php-v8js[dev-master].
- Installation request for talyssonoc/react-laravel 0.11 -> satisfiable by talyssonoc/react-laravel[v0.11].
我几乎失去了一整天,我失去了解决这个问题的希望。你有什么想法有什么问题吗?
编辑1
这就是运行 php-fpm 容器产生的结果
php-fpm_1 | [06-Aug-2018 12:51:02] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'php_soap.dll' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/php_soap.dll (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/php_soap.dll: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/php_soap.dll.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/php_soap.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
php-fpm_1 | [06-Aug-2018 12:51:02] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'v8js.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/v8js.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/v8js.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/v8js.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/v8js.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
php-fpm_1 | [06-Aug-2018 12:51:02] NOTICE: fpm is running, pid 1
php-fpm_1 | [06-Aug-2018 12:51:02] NOTICE: ready to handle connections
php-fpm_1 | 172.19.0.8 - 06/Aug/2018:12:55:42 +0000 "GET /index.php" 200
php-fpm_1 | [06-Aug-2018 12:56:43] NOTICE: Terminating ...
php-fpm_1 | [06-Aug-2018 12:56:43] NOTICE: exiting, bye-bye!
php-fpm_1 | [06-Aug-2018 12:56:56] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'php_soap.dll' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/php_soap.dll (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/php_soap.dll: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/php_soap.dll.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/php_soap.dll.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
php-fpm_1 | [06-Aug-2018 12:56:56] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library 'v8js.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/v8js.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/v8js.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/v8js.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/v8js.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
php-fpm_1 | [06-Aug-2018 12:56:56] NOTICE: fpm is running, pid 1
php-fpm_1 | [06-Aug-2018 12:56:56] NOTICE: ready to handle connections