【问题标题】:rpm can't find configure no such filerpm 找不到配置没有这样的文件
【发布时间】:2013-05-14 07:27:39
【问题描述】:

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

...

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 \

...

【问题讨论】:

    标签: configure rpmbuild rpm-spec


    【解决方案1】:

    我对@9​​87654321@不熟悉,但是你确认当你解压分发包时,在顶层目录中有一个configure文件吗?如果没有,您需要添加步骤才能到达那里。

    【讨论】:

    • 如果您为其他有类似问题的人提供您的解决方案,例如我,那就太好了
    猜你喜欢
    • 1970-01-01
    • 2022-10-22
    • 2020-10-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-26
    • 2014-09-13
    • 2017-03-07
    相关资源
    最近更新 更多