Command to build Debian package: ant deb
Command to build RPM Package: ant rpm
我使用的是centos6.5 64位版本,使用ant rpm进行编译时出现如下错误:
rpm:
[mkdir] Created dir: /tmp/zkpython_build_root/BUILD
[mkdir] Created dir: /tmp/zkpython_build_root/RPMS
[mkdir] Created dir: /tmp/zkpython_build_root/SRPMS
[mkdir] Created dir: /tmp/zkpython_build_root/SOURCES
[mkdir] Created dir: /tmp/zkpython_build_root/SPECS
[copy] Copying 1 file to /tmp/zkpython_build_root/SOURCES
[copy] Copying 1 file to /tmp/zkpython_build_root/SPECS
[rpm] Building the RPM based on the zkpython.spec file
[rpm] error: Macro %__os_install_post has empty body
[rpm] error: line 35: Unknown tag: /usr/lib/rpm/redhat/brp-compress \
BUILD FAILED
/home/test/software/compile/zookeeper-3.4.6.2.4.0.0-169/build.xml:1041: The following error occurred while executing this line:
/home/test/software/compile/zookeeper-3.4.6.2.4.0.0-169/src/contrib/build.xml:75: The following error occurred while executing this line:
/home/test/software/compile/zookeeper-3.4.6.2.4.0.0-169/src/contrib/zkpython/build.xml:144: '/usr/bin/rpmbuild' failed with exit code 1