我尝试在新创建的 Amazon EC2 实例上安装 php-dom 扩展,但没有成功,但无论我尝试什么,都失败了...
我尝试了以下命令(以及其他命令):
sudo yum install php-dom
sudo yum install php-xml
这是我每次得到的:
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core | 3.7 kB 00:00
202 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php-xml.x86_64 0:5.4.16-46.amzn2.0.2 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-46.amzn2.0.2 for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24)(64bit) for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.22)(64bit) for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18)(64bit) for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13)(64bit) for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11)(64bit) for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Processing Dependency: libxslt.so.1()(64bit) for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Processing Dependency: libexslt.so.0()(64bit) for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Running transaction check
---> Package libxslt.x86_64 0:1.1.28-5.amzn2.0.2 will be installed
---> Package php-xml.x86_64 0:5.4.16-46.amzn2.0.2 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-46.amzn2.0.2 for package: php-xml-5.4.16-46.amzn2.0.2.x86_64
--> Finished Dependency Resolution
据我了解,php-xml(包括php-dom)需要包php-common版本5.4.16(?!),但我正在运行PHP版本7.3,这可能是冲突的原因?
我对 AWS 相当陌生,甚至对终端命令还很陌生,因此非常感谢这里的任何帮助!如果您需要有关服务器的更多信息,我很乐意提供给您,我只是不知道此时什么可能有用......
谢谢。
胡子哥哥