LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-20-2014, 02:59 AM   #1
dlugasx
Member
 
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.

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 ?
 
Old 11-20-2014, 06:24 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,101

Rep: Reputation: 3488Reputation: 3488Reputation: 3488Reputation: 3488Reputation: 3488Reputation: 3488Reputation: 3488Reputation: 3488Reputation: 3488Reputation: 3488Reputation: 3488
`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.
 
Old 11-20-2014, 03:48 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,400

Rep: Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582Reputation: 2582
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 !!!
 
  


Reply

Tags
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:37 PM.

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