分享

编译zookeeper源码时出错

askf 发表于 2016-4-13 17:27:29 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 1 9494
按照zookeeper源码中提供的README_packaging.txt中提供的方法进行编译

README_packaging.txt中部分内容
Package build command
---------------------

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



有没有大神知道怎么解决。谢谢!


补充内容 (2016-4-14 15:10):
已经解决,是编译文件有bug,需要修改build.xml等文件内容,官方有给出解决方法。

已有(1)人评论

跳转到指定楼层
Alkaloid0515 发表于 2016-4-13 18:00:14
首先确保权限,都是在同一账户下编译的时候,注意网络一定要好
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条