美文网首页
composer安装tp6引入各种包问题解决笔记!

composer安装tp6引入各种包问题解决笔记!

作者: DragonersLi | 来源:发表于2020-03-22 22:24 被阅读0次
执行composer require topthink/framework,报错,原因proc_open函数被禁用
  [Symfony\Component\Process\Exception\RuntimeException]                                   
  The Process class relies on proc_open, which is not available on your PHP installation.   
解决方法:

打开php.ini,搜索disable_functions,找到proc_open并删除即可。

image.png
执行composer require topthink/think-image报错原因:
pcntl_signal函数被禁用,同上删除该禁用,重启PHP
  [ErrorException]                                       
  pcntl_signal() has been disabled for security reasons   
执行composer require topthink/think-worker 报错:
解决方法:安装fileinfo扩展

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - topthink/think-worker v3.0.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - topthink/think-worker v3.0.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - topthink/think-worker v3.0.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - topthink/think-worker v3.0.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - topthink/think-worker v3.0.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - Installation request for topthink/think-worker ^3.0 -> satisfiable by topthink/think-worker[v3.0.0, v3.0.1, v3.0.2, v3.0.3, v3.0.4].

  To enable extensions, verify that they are enabled in your .ini files:
    - /www/server/php/73/etc/php.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.


image.png

相关文章

网友评论

      本文标题:composer安装tp6引入各种包问题解决笔记!

      本文链接:https://www.haomeiwen.com/subject/gytmyhtx.html