LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rpmbuild missing dependencies problem - what to do ? (https://www.linuxquestions.org/questions/linux-software-2/rpmbuild-missing-dependencies-problem-what-to-do-4175525953/)

dlugasx 11-20-2014 01:59 AM

rpmbuild missing dependencies problem - what to do ?
 
Hi All,

I have a "question for 100 points". Person which help me to solve it, will get virtual beer from me :).

On RedHat 5 I`m trying to build a Zabbix(monitoring) binary packages.
I have downloaded latest src.rpm package and extracted with "rpm -i".

Afterwards I executed command(see below) and I got missing dependencies problem.

Code:

-bash-3.2$ rpmbuild -bb ./zabbix.spec
error: Failed build dependencies:
        libssh2-devel >= 1 is needed by zabbix-2.4.2-1redhat.x86_64
-bash-3.2$

It seems that to build Zabbix binaries I need to have libssh2-devel installed with version higher than 1. The problem is that in Red Hat repo, the latest version is 0.6.18 and I`m not allowed to use packages from external repos. What should I do in this case ?

Is it possible to build rpm package without updating libssh2-devel (using external repos) to version >1 ? If yes, how to do it ?

In Zabbix repo I saw packages for Red Hat 5 builded using libssh2-devel. It seems that somebody connected some how that dependencies and build the package. But how ?


Anybody knows ?

knudfl 11-20-2014 05:24 AM

`libssh2-devel' is available from a number of repositories.

http://rpm.pbone.net/index.php3/stat/2/simple/2
→ tick EL5, CentOS5, SL5 ... and hit Search →

pramberger.repo, repoforge.repo, etc. etc.

John VV 11-20-2014 02:48 PM

please post the output of
Code:

su -
cat /etc/redhat-release

---- and ---
yum repolist all

for rhel5 the thirdparty repos ARE !!! POISON!!!!!
you do NEED to install and configure "yum-priorites" plugin!!!


in the older 5 THIS IS A VERY BIG PROBLEM
one that was mostly fixed in 6

but on a older 5 install you might want to use "yum - protectbase"
protect base WILL prevent third party repos from REPLACING CIRCUITAL SYSTEM FILES !!!


All times are GMT -5. The time now is 04:08 PM.