Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-20-2014, 02:59 AM   #1
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
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.

-bash-3.2$ rpmbuild -bb ./zabbix.spec
error: Failed build dependencies:
	libssh2-devel >= 1 is needed by zabbix-2.4.2-1redhat.x86_64
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 ?
Old 11-20-2014, 06:24 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,494

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
`libssh2-devel' is available from a number of repositories.
→ tick EL5, CentOS5, SL5 ... and hit Search →

pramberger.repo, repoforge.repo, etc. etc.
Old 11-20-2014, 03:48 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,615

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
please post the output of
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!!!

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 !!!


dependencies, problem, rpmbuild, version

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Dependencies niiiro Linux - Newbie 5 11-11-2010 05:21 PM
Kernel update problem in 10.3. Missing dependencies. and068 SUSE / openSUSE 2 07-12-2008 01:58 AM
Missing dependencies problem vieraci Linux - Software 2 07-08-2007 09:43 PM
rpmbuild dependencies edgjerp Linux - Software 3 02-15-2006 04:54 AM
Missing Dependencies WanabeLinus Mandriva 9 02-09-2004 02:52 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration