2013-05-14 4 views
0

사양 파일에 문제가 있습니다. rpmbuild로 실행할 때 ./configure 같은 파일이나 디렉토리를 찾을 수 없다고합니다. 다음은 내 사양 파일의 코드 일부입니다. 누군가 나를 도울 수 있습니까?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

응답 해 주셔서 감사합니다. 그러나 나는 그것을 모두 해결했습니다. –

+2

나와 비슷한 문제가있는 다른 사람들을 위해 솔루션을 제공하면 좋을 것입니다. – 0xAffe