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

来源: composer安装tp6引入各种包问题解决笔记! – 简书

执行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

作者:DragonersLi
链接:https://www.jianshu.com/p/17fa22374667
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

赞(0) 打赏
分享到: 更多 (0)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏