2013-05-14 42 views
0

我的规格文件有问题。当我用rpmbuild运行它时,它说它找不到./configure没有这样的文件或目录。这是我的spec文件的一部分代码。有人能帮我吗?rpm无法找到配置没有这样的文件

...

BuildRequires: gd-devel > 1.8, mailx, libjpeg-devel, libpng-devel 

Requires: httpd php53 gcc 

%description 
Nagios is a program that will monitor hosts and services on your 
network. 
%package common 
Group: Applications/System 
Summary: Provides common directories, uid and gid among nagios-related packages 
Requires(pre): shadow-utils 
Requires(post): shadow-utils 
Provides: user(nagios) 
Provides: group(nagios) 

%description common 
Provides common directories, uid and gid among nagios-related packages. 

%prep 
%setup -q -n %{name}-%{version} 
%build 
%configure \ 
--prefix=%{_datadir}/%{name} \ 
--exec-prefix=%{_localstatedir}/lib/%{name} \ 
--with-init-dir=%{_initrddir} \ 
--with-cgiurl=/%{name}/cgi-bin/ \ 
--with-htmlurl=/%{name} \ 
--with-lockfile=%{_localstatedir}/run/%{name}.pid \ 
--libdir=%{_libdir}/%{name} \ 
--with-nagios-user=nagios \ 
--with-nagios-grp=nagios \ 
--bindir=%{_sbindir} \ 
--libexecdir=%{_libdir}/%{name}/plugins \ 
--sysconfdir=%{_sysconfdir}/%{name} \ 
--localstatedir=%{_localstatedir}/log/%{name} \ 
--datadir=%{_datadir}/%{name}/html \ 
--with-gd-lib=%{_libdir} \ 
--with-gd-inc=%{_includedir} \ 
--enable-embedded-perl \ 
--with-perlcache \ 

...

回答

0

我不熟悉nagios,但你证实,当你解压分发包,有一个configure文件中的顶级目录?如果没有,你需要添加步骤到达那里。

+0

感谢您的答复,但我已经解决了它。 – 2013-05-27 13:25:27

+2

如果您为其他人提供解决方案并且与我有类似问题,那将会很好 – 0xAffe 2014-01-22 09:30:32

相关问题