2012-11-28 4 views
0

의 build.xml개미 RPM 빌드로 인해 알 수없는 옵션 '-bs'

<?xml version="1.0"?> 
<project default="main" basedir="."> 
<echo message="pulling in property files" /> 
<property file="axis_bujava.properties" /> 

<echo message="calling the RPM Build Ant" /> 
<target name="main"> 
    <rpm specfile="example.spec" topdir="${basedir}" command="-bs" /> 
</target> 
</project> 

example.spec에 실패

Summary: xxx 

Name: cdplayer 

Version: 1.0 

Release: 1 

Copyright: xxx 

Group: Applications/Sound 

Source: xxx.tgz 

URL: http://xxx.html 

Distribution: xxxx 

Vendor:xxx. 

Packager: xxx 

%description 
xxxx 
%build 
make 
%install 
make install 

출력 :

Buildfile: /home/user1/workspace/antdemo/build.xml 
    [echo] pulling in property files 

    [echo] calling the RPM Build Ant 

main: 

     [rpm] Building the RPM based on the example.spec file 

     [rpm] -bs: unknown option 

     [rpm] 'rpm' failed with exit code 1 

BUILD SUCCESSFUL 

Total time: 848 milliseconds 
+0

는 소리? –

답변

3

내가 너무이 문제를 가지고 있었다. 제 경우 OS에는 'rpmbuild'명령이 설치되지 않았으므로 개미 작업이 Aaron이 제안한 것처럼 'rpm'을 대신 호출하고있었습니다. 대신`rpmbuild`의`rpm` 실행 파일로 전송처럼

+1

yum install rpm-build는 필요한 rpm을 설치합니다. – praveen