我想在我的项目上安装maatwebsite/excel软件包,但在linux上安装这些软件包时出错,当我运行:composer update/install或composer require maatwebsite/excel时,我发现了此错误
Your requirements could not be resolved to an installable set of packages.
Problem 1
- maatwebsite/excel[3.1.27, ..., 3.2.x-dev] require phpoffice/phpspreadsheet ^1.16 -> satisfiable by phpoffice/phpspreadsheet[1.16.0, 1.17.0, 1.17.1].
- maatwebsite/excel 3.1.26 requires phpoffice/phpspreadsheet ^1.15 -> satisfiable by phpoffice/phpspreadsheet[1.15.0, 1.16.0, 1.17.0, 1.17.1].
- maatwebsite/excel[3.1.20, ..., 3.1.25] require phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.0, ..., 1.17.1].
- maatwebsite/excel[3.1.18, ..., 3.1.19] require phpoffice/phpspreadsheet ^1.10 -> satisfiable by phpoffice/phpspreadsheet[1.10.0, ..., 1.17.1].
- maatwebsite/excel[3.1.7, ..., 3.1.17] require phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, ..., 1.17.1].
- maatwebsite/excel[3.1.0, ..., 3.1.6] require phpoffice/phpspreadsheet ^1.4 -> satisfiable by phpoffice/phpspreadsheet[1.4.0, ..., 1.17.1].
- maatwebsite/excel[3.1.28, ..., 3.1.x-dev] require phpoffice/phpspreadsheet 1.16.* -> satisfiable by phpoffice/phpspreadsheet[1.16.0].
- phpoffice/phpspreadsheet[1.4.0, ..., 1.17.1] require ext-gd * -> it is missing from your system. Install or enable PHP's gd extension.
- Root composer.json requires maatwebsite/excel ^3.1 -> satisfiable by maatwebsite/excel[3.1.0, ..., 3.2.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/7.4/cli/php.ini
- /etc/php/7.4/cli/conf.d/10-mysqlnd.ini
- /etc/php/7.4/cli/conf.d/10-opcache.ini
- /etc/php/7.4/cli/conf.d/10-pdo.ini
- /etc/php/7.4/cli/conf.d/15-xml.ini
- /etc/php/7.4/cli/conf.d/20-bcmath.ini
- /etc/php/7.4/cli/conf.d/20-calendar.ini
- /etc/php/7.4/cli/conf.d/20-ctype.ini
- /etc/php/7.4/cli/conf.d/20-dom.ini
- /etc/php/7.4/cli/conf.d/20-exif.ini
- /etc/php/7.4/cli/conf.d/20-ffi.ini
- /etc/php/7.4/cli/conf.d/20-fileinfo.ini
- /etc/php/7.4/cli/conf.d/20-ftp.ini
- /etc/php/7.4/cli/conf.d/20-gettext.ini
- /etc/php/7.4/cli/conf.d/20-iconv.ini
- /etc/php/7.4/cli/conf.d/20-json.ini
- /etc/php/7.4/cli/conf.d/20-mbstring.ini
- /etc/php/7.4/cli/conf.d/20-mysqli.ini
- /etc/php/7.4/cli/conf.d/20-pdo_mysql.ini
- /etc/php/7.4/cli/conf.d/20-pdo_pgsql.ini
- /etc/php/7.4/cli/conf.d/20-pgsql.ini
- /etc/php/7.4/cli/conf.d/20-phar.ini
- /etc/php/7.4/cli/conf.d/20-posix.ini
- /etc/php/7.4/cli/conf.d/20-readline.ini
- /etc/php/7.4/cli/conf.d/20-shmop.ini
- /etc/php/7.4/cli/conf.d/20-simplexml.ini
- /etc/php/7.4/cli/conf.d/20-sockets.ini
- /etc/php/7.4/cli/conf.d/20-sysvmsg.ini
- /etc/php/7.4/cli/conf.d/20-sysvsem.ini
- /etc/php/7.4/cli/conf.d/20-sysvshm.ini
- /etc/php/7.4/cli/conf.d/20-tokenizer.ini
- /etc/php/7.4/cli/conf.d/20-xmlreader.ini
- /etc/php/7.4/cli/conf.d/20-xmlwriter.ini
- /etc/php/7.4/cli/conf.d/20-xsl.ini
- /etc/php/7.4/cli/conf.d/20-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions
看来ext-gd不见了。您可以使用此命令安装它。它是针对php 7.0的。如果您使用其他版本,请更改它。例如,对于php 7.3,它将是php7.3-gd。
sudo apt-get install php7.0-gd
有关更多信息,请访问此问题
我要安装bzip2这个软件包,一直出现下面这个错误: 做过很多命令,包括安装那个目录,但都没有用 我希望得到解答,谢谢各位大佬
我正在尝试在RHEL7.x上安装开源的累加器。我有两GB的交换空间。我已经安装了Java1.8、Hadoop3和Zookeeper。我已经运行了累加1.9.2的bootstrap_config.sh脚本。 我使用累加bootstrap_config.sh脚本配置Hadoop版本3。如何使“/bin/accumulo-1.9.2/bin/accumulo-init”工作?
我按照这里的步骤在ubuntu上安装。一切都按预期进行。然后我继续安装包,没有任何错误。但当我尝试加载XLConnect包时。我得到了这个错误: 加载所需的包:XL 连接对话错误:“XL 连接”的包或命名空间加载失败:“rJava”的 .onLoad 在加载命名空间中失败,详细信息:调用:dyn.load(文件,DLPATH = DLLpath,...) 错误:无法加载共享对象“/主页/sdots
问题内容: 我在VPS上很好地安装了Java 6 JRE,但是我什至无法安装EE SDK。 但是,当我尝试运行时: 但是要注意的是,我正确设置了环境变量: 我在这里拔头发,有什么想法吗? 问题答案: 您是否安装了JDK?您可能希望输入JDK附带的PATH,而不是JRE的JRE,而不是JRE。
本文向大家介绍解决python2.7用pip安装包时出现错误的问题,包括了解决python2.7用pip安装包时出现错误的问题的使用技巧和注意事项,需要的朋友参考一下 最近在使用pip安装包的的时候出现下面错误 查询资料后发现原因是pip安装python包会加载用户目录,用户目录恰好是中文的,ascii不能编码 打开对应的安装目录路径 D:\Python27\Lib\site-packages 新
问题内容: 我在设置python包时遇到了困难。应该可以使用SetupTools的EasyInstall来解决此问题,但是它们没有适用于Python 2.6的可执行文件。 例如要安装Mechanize,我只想根据INSTALL.txt将Mechanize文件夹放在C:\ Python24 \ Lib \ site- packages中,但是运行测试无效。有人可以帮忙阐明一下吗?谢谢! 问题答案: