yum install php dependency errors

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I'm trying to install php 5.4 or 5.6 on an Amazon Linux 2 server using this command:

yum install php54

This is the output:

Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
170 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php54.x86_64 0:2.1-4.el7.remi will be installed
--> Processing Dependency: php54-runtime(x86-64) = 2.1-4.el7.remi for package: php54-2.1-4.el7.remi.x86_64
--> Processing Dependency: php54-php-pear >= 1:1.10 for package: php54-2.1-4.el7.remi.x86_64
--> Processing Dependency: php54-php-common(x86-64) >= 5.4.45 for package: php54-2.1-4.el7.remi.x86_64
--> Processing Dependency: php54-runtime for package: php54-2.1-4.el7.remi.x86_64
--> Processing Dependency: php54-php-cli(x86-64) for package: php54-2.1-4.el7.remi.x86_64
--> Running transaction check
---> Package php54-php-cli.x86_64 0:5.4.45-15.el7.remi will be installed
--> Processing Dependency: libtinfo.so.5()(64bit) for package: php54-php-cli-5.4.45-15.el7.remi.x86_64
--> Processing Dependency: libncurses.so.5()(64bit) for package: php54-php-cli-5.4.45-15.el7.remi.x86_64
---> Package php54-php-common.x86_64 0:5.4.45-15.el7.remi will be installed
---> Package php54-php-pear.noarch 1:1.10.6-1.el7.remi will be installed
--> Processing Dependency: php54-php-xml for package: 1:php54-php-pear-1.10.6-1.el7.remi.noarch
--> Processing Dependency: php54-php-posix for package: 1:php54-php-pear-1.10.6-1.el7.remi.noarch
---> Package php54-runtime.x86_64 0:2.1-4.el7.remi will be installed
--> Processing Dependency: environment-modules for package: php54-runtime-2.1-4.el7.remi.x86_64
--> Running transaction check
---> Package environment-modules.x86_64 0:3.2.10-0.el7.remi will be installed
--> Processing Dependency: libtcl8.5.so()(64bit) for package: environment-modules-3.2.10-0.el7.remi.x86_64
---> Package php54-php-cli.x86_64 0:5.4.45-15.el7.remi will be installed
--> Processing Dependency: libtinfo.so.5()(64bit) for package: php54-php-cli-5.4.45-15.el7.remi.x86_64
--> Processing Dependency: libncurses.so.5()(64bit) for package: php54-php-cli-5.4.45-15.el7.remi.x86_64
---> Package php54-php-process.x86_64 0:5.4.45-15.el7.remi will be installed
---> Package php54-php-xml.x86_64 0:5.4.45-15.el7.remi will be installed
--> Finished Dependency Resolution
Error: Package: environment-modules-3.2.10-0.el7.remi.x86_64 (remi-safe)
           Requires: libtcl8.5.so()(64bit)
Error: Package: php54-php-cli-5.4.45-15.el7.remi.x86_64 (remi-safe)
           Requires: libncurses.so.5()(64bit)
Error: Package: php54-php-cli-5.4.45-15.el7.remi.x86_64 (remi-safe)
           Requires: libtinfo.so.5()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

The output suggests that it knows which packages contain the dependencies that the errors mention, yet it doesn't install them.

I've previously installed the epel and remi repositories, since amazon-linux-extras does not have php version lower than 7.1.

When I execute:

yum list installed | grep "php"

I get not results, so I don't think there's a conflict with existing packages.

I also tried:

yum install php54 --disablerepo="*" --enablerepo="remi"

to make sure that there are no repository conflicts.

EDIT: I've also tried other versions of the command:

yum install php70
yum install php71
yum install php72

And they all had similar errors regarding the same "lib*" requirements.

Any idea why this is happening and how to fix this?

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.