zcutil/build.sh Error !

[root@myzcash zcash]# ./zcutil/build.sh -j 4

  • LCOV_ARG=

  • HARDENING_ARG=–enable-hardening

  • TEST_ARG=

  • ‘[’ x-j = x–enable-lcov ‘]’

  • ‘[’ x-j = x–disable-tests ‘]’

  • MINING_ARG=

  • ‘[’ x-j = x–disable-mining ‘]’

  • PROTON_ARG=–enable-proton=no

  • ‘[’ x-j = x–enable-proton ‘]’
    ++ pwd

  • PREFIX=/data/zcash/depends/x86_64-unknown-linux-gnu/

  • eval make --version
    ++ make --version
    GNU Make 3.82
    Built for x86_64-redhat-linux-gnu
    Copyright © 2010 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

  • eval gcc --version
    ++ gcc --version
    gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
    Copyright © 2014 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  • eval g++ --version
    ++ g++ --version
    g++ (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6)
    Copyright © 2014 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

  • as --version
    GNU assembler version 2.25.1-32.base.el7_4.1
    Copyright © 2014 Free Software Foundation, Inc.
    This program is free software; you may redistribute it under the terms of
    the GNU General Public License version 3 or later.
    This program has absolutely no warranty.
    This assembler was configured for a target of `x86_64-redhat-linux’.

  • ld -v
    GNU ld version 2.25.1-32.base.el7_4.1

  • HOST=x86_64-unknown-linux-gnu

  • BUILD=x86_64-unknown-linux-gnu

  • NO_PROTON=–enable-proton=no

  • make -j 4 -C ./depends/ V=1
    make: Entering directory /data/zcash/depends' mkdir -p /data/zcash/depends/sources/download-stamps /data/zcash/depends/sources rm -f /data/zcash/depends/sources/download-stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash touch /data/zcash/depends/sources/download-stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash cd /data/zcash/depends/sources/download-stamps; (test -f /data/zcash/depends/sources/ccache-3.3.1.tar.bz2 || ( mkdir -p /data/zcash/depends/work/download/native_ccache-3.3.1 && echo Fetching native_ccache... && ( curl --location --fail --connect-timeout 10 --retry 3 -o "/data/zcash/depends/work/download/native_ccache-3.3.1/ccache-3.3.1.tar.bz2.temp" "https://z.cash/depends-sources/ccache-3.3.1.tar.bz2" || curl --location --fail --connect-timeout 10 --retry 3 -o "/data/zcash/depends/work/download/native_ccache-3.3.1/ccache-3.3.1.tar.bz2.temp" "https://www.samba.org/ftp/ccache/ccache-3.3.1.tar.bz2" ) && echo "cb6e4bafbb19ba0a2ec43386b123a5f92a20e1e3384c071d5d13e0cb3c84bf73 /data/zcash/depends/work/download/native_ccache-3.3.1/ccache-3.3.1.tar.bz2.temp" > /data/zcash/depends/work/download/native_ccache-3.3.1/.ccache-3.3.1.tar.bz2.hash && sha256sum -c /data/zcash/depends/work/download/native_ccache-3.3.1/.ccache-3.3.1.tar.bz2.hash && mv /data/zcash/depends/work/download/native_ccache-3.3.1/ccache-3.3.1.tar.bz2.temp /data/zcash/depends/sources/ccache-3.3.1.tar.bz2 && rm -rf /data/zcash/depends/work/download/native_ccache-3.3.1 )) Fetching native_ccache... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 337k 100 337k 0 0 738k 0 --:--:-- --:--:-- --:--:-- 737k /data/zcash/depends/work/download/native_ccache-3.3.1/ccache-3.3.1.tar.bz2.temp: OK cd /data/zcash/depends/sources; sha256sum ccache-3.3.1.tar.bz2 >> /data/zcash/depends/sources/download-stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash; touch /data/zcash/depends/sources/download-stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash echo Extracting native_ccache... Extracting native_ccache... mkdir -p /data/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-8b0ad5e0a69 cd /data/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-8b0ad5e0a69; mkdir -p /data/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-8b0ad5e0a69 && echo "cb6e4bafbb19ba0a2ec43386b123a5f92a20e1e3384c071d5d13e0cb3c84bf73 /data/zcash/depends/sources/ccache-3.3.1.tar.bz2" > /data/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-8b0ad5e0a69/.ccache-3.3.1.tar.bz2.hash && sha256sum -c /data/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-8b0ad5e0a69/.ccache-3.3.1.tar.bz2.hash && tar --strip-components=1 -xf /data/zcash/depends/sources/ccache-3.3.1.tar.bz2 /data/zcash/depends/sources/ccache-3.3.1.tar.bz2: OK tar (child): lbzip2: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error is not recoverable: exiting now make: *** [/data/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-8b0ad5e0a69/.stamp_extracted] Error 2 make: Leaving directory/data/zcash/depends’

Looks like your machine is missing some dependencies, for Ubuntu you need to install:

sudo apt-get install \ build-essential pkg-config libc6-dev m4 g++-multilib \ autoconf libtool ncurses-dev unzip git python python-zmq \ zlib1g-dev wget curl bsdmainutils automake

follow the guide here: https://zcash.readthedocs.io/en/latest/rtd_pages/user_guide.html

1 Like