我試圖創建一個RPM(redhat)包來在redhat系統上安裝nagios。一切順利,但是當我嘗試安裝包我得到通過安裝自制rpm包失敗的依賴關係
依賴失敗:
的Perl(網:: SNMP)通過的nagios-1-1.x86_64
我需要甚至不知道爲什麼它需要這個,它不看起來是一個必要的包。以前有過這個問題的人嗎?
這裏是代表.spec
%define debug_package %{nil}
%define _prefix /usr/local/nagios
Summary: Nagios blabla
Name: nagios
Version: 1
Release: 1
License: PROPRIETARY
Group: Applications/Accessories
Source: nagios-1.tar.gz
Packager: Nicholas Lievens <[email protected]>
Requires: gcc gcc-c++ glibc glibc-common glibc-devel gd gd-devel php53 php53-cli php53-mysql php53-gd php53-pdo graphviz httpd libdbi-dbd-mysql libdbi-devel mysql mysql-server mysql-devel git
%description
Nagios!
%prep
%setup
%build
make all
%install
make install
make install-init
make install-config
make install-commandmode
make install-webconf
make install-devel
htpasswd -b -c /usr/local/nagios/etc/htpasswd.user nagiosadmin nagiosadmin
%files
%{_prefix}/var
%{_prefix}/var/spool/checkresults
%{_prefix}/etc
%{_prefix}/bin
%{_prefix}/sbin
%{_prefix}/libexec
%{_prefix}/lib
%{_prefix}/include/nagios
%{_prefix}/share
你的規格文件是什麼樣的?你如何試圖安裝你的RPM? 'yum'或'rpm - [ui] vh'? – Ewan 2013-05-10 11:21:00
我將在週末後發佈規範,我試圖使用rpm -i – Nicholas 2013-05-10 14:57:26