0

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

...

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 \

...

4

1 回答 1

0

我不熟悉nagios,但是您是否确认当您提取分发tarball时,configure顶级目录中有一个文件?如果没有,您需要添加步骤才能到达那里。

于 2013-05-14T09:11:14.110 回答