'Salt installation in rhel 5.4

I am trying to install salt-2016.11.3-2.el5.noarch.rpm in rhel5. For that I compiled python 2.6

[root@localhost bin]# ls -lrt python*
-rwxr-xr-x 1 root root    8304 Jun 11  2009 python2.4
-rwxr-xr-x 2 root root 5733122 Sep 11 11:52 python2.6
-rwxr-xr-x 2 root root 5733122 Sep 11 11:52 python
lrwxrwxrwx 1 root root      16 Sep 11 11:53 python-config -> python2.6-config
-rwxr-xr-x 1 root root    1418 Sep 11 11:53 python2.6-config

After I tried to install salt-minion which is showing this deps.

[root@localhost minion]# rpm -ivh salt-2016.11.3-2.el5.noarch.rpm
warning: salt-2016.11.3-2.el5.noarch.rpm: Header V3 RSA/SHA1 signature: NOKEY, key ID 42e589e9
error: Failed dependencies:
        **/usr/bin/python2.6 is needed by salt-2016.11.3-2.el5.noarch**
        python26-PyYAML is needed by salt-2016.11.3-2.el5.noarch
        python26-crypto >= 2.6.1 is needed by salt-2016.11.3-2.el5.noarch
        python26-jinja2 is needed by salt-2016.11.3-2.el5.noarch
        python26-msgpack > 0.3 is needed by salt-2016.11.3-2.el5.noarch
        python26-requests >= 1.0.0 is needed by salt-2016.11.3-2.el5.noarch
        python26-six is needed by salt-2016.11.3-2.el5.noarch
        python26-tornado >= 4.2.1 is needed by salt-2016.11.3-2.el5.noarch
        yum-utils is needed by salt-2016.11.3-2.el5.noarch

I already installed python and its available in PATH. Still why its showing that deps. Anyone faced the same issue??? Any suggestions are welcome.

Note:

the main issue is

/usr/bin/python2.6 is needed by salt-2016.11.3-2.el5.noarch

Why python is showing in the dependency list which is already installed???



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source