无法使用Laradock安装SSR的v8js扩展

时间:2018-08-06 10:25:10

标签: laravel docker-compose serverside-rendering laradock v8js

我正在尝试使用需要react-laravelv8js extension管理服务器端呈现。我的工作环境是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].

我几乎整天迷路了,我失去了解决这个问题的希望。 您有什么想法吗?

Edit1

这是运行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

0 个答案:

没有答案