Shashikant Kulkarni
Shashikant Kulkarni

Reputation: 177

Building custom RPM with required PHP version installation fails

I have created my application's RPM file and trying to install it on CentOS 6.6. My Application requires PHP >= 5.4 which I mentioned as Requires: php >= 5.4 in the SPEC file of RPM. But when I try to install the RPM, I get the following error

Error: Package: myApp-1.0-1.x86_64 (myapp)

           Requires: php >= 5.4
           Available: php-5.3.3-40.el6_6.x86_64 (base)
               php = 5.3.3-40.el6_6
           Available: php-5.3.3-46.el6_6.x86_64 (updates)
               php = 5.3.3-46.el6_6

The server where I am installing this does not have any PHP installed before.

[root@license /]# php --version
-bash: php: command not found

So I am not able to find the root cause. Can someone please help.

Thanks.

Upvotes: 1

Views: 550

Answers (1)

msuchy
msuchy

Reputation: 5427

This just means that on CentOS 6 there is no php in version 5.4 or higher. Just version 5.3.3.

You either have to use CentOS 7. Or use SoftwareCollection: https://www.softwarecollections.org/en/scls/rhscl/php55/

Upvotes: 1

Related Questions