Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Zookeeper >> mail # user >> Cannot build zookeeper 3.4.5 RPM on CentOS 6.3.


Copy link to this message
-
Cannot build zookeeper 3.4.5 RPM on CentOS 6.3.
Hello list,

I'm currently trying to build zookeeper 3.4.5 on a fresh CentOS 6.3
install (rpm 4.8.0), but it fails with this error:

----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----

rpm:
      [copy] Copying 1 file to /tmp/zkpython_build_rpm/SOURCES
       [rpm] Building the RPM based on the zkpython.spec file
       [rpm] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GV0fVi
       [rpm] + umask 022
       [rpm] + cd /tmp/zkpython_build_rpm/BUILD
       [rpm] + LANG=C
       [rpm] + export LANG
       [rpm] + unset DISPLAY
       [rpm] + tar fxz
/tmp/zkpython_build_rpm/SOURCES/ZooKeeper-0.4.linux-x86_64.tar.gz -C
/tmp/zkpython_build_rpm/BUILD
       [rpm] + exit 0
       [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZpyOvn
       [rpm] + umask 022
       [rpm] + cd /tmp/zkpython_build_rpm/BUILD
       [rpm] + LANG=C
       [rpm] + export LANG
       [rpm] + unset DISPLAY
       [rpm] + exit 0
       [rpm] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Tktc7r
       [rpm] + umask 022
       [rpm] + cd /tmp/zkpython_build_rpm/BUILD
       [rpm] + '[' /tmp/zkpython_build_rpm/BUILD '!=' / ']'
       [rpm] + rm -rf /tmp/zkpython_build_rpm/BUILD
       [rpm] ++ dirname /tmp/zkpython_build_rpm/BUILD
       [rpm] + mkdir -p /tmp/zkpython_build_rpm
       [rpm] + mkdir /tmp/zkpython_build_rpm/BUILD
       [rpm] + LANG=C
       [rpm] + export LANG
       [rpm] + unset DISPLAY
       [rpm] + /usr/lib/rpm/check-buildroot
       [rpm] shell-init: error retrieving current directory: getcwd:
cannot access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/redhat/brp-compress
       [rpm] shell-init: error retrieving current directory: getcwd:
cannot access parent directories: No such file or directory
       [rpm] chdir: error retrieving current directory: getcwd: cannot
access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
       [rpm] shell-init: error retrieving current directory: getcwd:
cannot access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
       [rpm] shell-init: error retrieving current directory: getcwd:
cannot access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
/usr/bin/objdump
       [rpm] shell-init: error retrieving current directory: getcwd:
cannot access parent directories: No such file or directory
       [rpm] + /usr/lib/rpm/brp-python-bytecompile
       [rpm] shell-init: error retrieving current directory: getcwd:
cannot access parent directories: No such file or directory
       [rpm] Processing files: zkpython-3.4.5-1.x86_64
       [rpm] error: File not found: /tmp/zkpython_build_rpm/BUILD/usr
       [rpm]     File not found: /tmp/zkpython_build_rpm/BUILD/usr
       [rpm]
       [rpm]
       [rpm] RPM build errors:

BUILD FAILED
/home/rpm/zookeeper-3.4.5/build.xml:955: The following error occurred
while executing this line:
/home/rpm/zookeeper-3.4.5/src/contrib/build.xml:75: The following error
occurred while executing this line:
/home/rpm/zookeeper-3.4.5/src/contrib/zkpython/build.xml:144:
'/usr/bin/rpmbuild' failed with exit code 1

----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----%<----

It seems that some directory is missing but why...? Since it a fresh
CentOS install, may some packages be missing?

I'm pretty new to packaging and I do not know what info could help so
don't hesitate if you need more details.

I've also tried to build 3.5.0 trunk, but it failed too.

Thank you for your help,

C�dric.
+
Cédric Lejeune 2012-12-20, 09:04
+
Patrick Hunt 2012-12-20, 17:30