./zcutil/build.sh: line 89: make: command not found

Issue with building on windows using ubuntu.

Is this possible??

how can i fix this

here is the full output:

+++ readlink -f ./zcutil/build.sh
++ dirname /mnt/c/Windows/System32/zcash/zcutil/build.sh
+ cd /mnt/c/Windows/System32/zcash/zcutil/..
+ LCOV_ARG=
+ HARDENING_ARG=--enable-hardening
+ TEST_ARG=
+ '[' x--disable-rust = x--enable-lcov ']'
+ '[' x--disable-rust = x--disable-tests ']'
+ MINING_ARG=
+ '[' x--disable-rust = x--disable-mining ']'
+ RUST_ARG=
+ '[' x--disable-rust = x--disable-rust ']'
+ RUST_ARG=--enable-rust=no
+ shift
++ pwd
+ PREFIX=/mnt/c/Windows/System32/zcash/depends/x86_64-unknown-linux-gnu/
+ HOST=x86_64-unknown-linux-gnu
+ BUILD=x86_64-unknown-linux-gnu
+ NO_RUST=--enable-rust=no
+ make -j12 -C ./depends/ V=1
./zcutil/build.sh: line 89: make: command not found

1 Like

If you're building in the Bash on Ubuntu on Windows subsystem, you need to follow all the instruction in the user guide at https://github.com/zcash/zcash/wiki/1.0-User-Guide just like it was an Ubuntu system. It looks like you haven't installed all the dependencies. Last I knew it DID build on there, but it requires some tweaks to the standard config (buried in a post on this forum somewhere :frowning: )

If you aren't 100% married to the idea of building from source (or have access to an native linux machine to cross-compile on), you can run my port to Windows.

Latest command-line binary is at: https://zcash.dl.mercerweiss.com/zcash-win-v1.0.8-1.zip
Version with GUI wallet is linked from: https://zcash4win.com

If you want to build the command line binaries yourself by cross compiling on a Debian linux machine ( only Debian Jessie is supported), the latest source is at:


You install all the normal linux dependencies for Debian, plus these packages:

binutils-mingw-w64-x86-64
g++-mingw-w64-x86-64 
gcc-mingw-w64-base 
gcc-mingw-w64-x86-64
mingw-w64-common 
mingw-w64-x86-64-dev

and then instead of ./zcutil/build.sh run ./zcutil/build-win.sh and the exe's will be in the src/ dir when its done.

-David Mercer
Tucson, AZ

ok looks like i was missing some dependencies. I did the install command again in the guide and it added a bunch more stuff. weird. now it starts to build but i get a new error

+++ readlink -f ./zcutil/build.sh
++ dirname /mnt/c/Windows/System32/zcash/zcutil/build.sh
+ cd /mnt/c/Windows/System32/zcash/zcutil/..
+ LCOV_ARG=
+ HARDENING_ARG=--enable-hardening
+ TEST_ARG=
+ '[' x--disable-rust = x--enable-lcov ']'
+ '[' x--disable-rust = x--disable-tests ']'
+ MINING_ARG=
+ '[' x--disable-rust = x--disable-mining ']'
+ RUST_ARG=
+ '[' x--disable-rust = x--disable-rust ']'
+ RUST_ARG=--enable-rust=no
+ shift
++ pwd
+ PREFIX=/mnt/c/Windows/System32/zcash/depends/x86_64-unknown-linux-gnu/
+ HOST=x86_64-unknown-linux-gnu
+ BUILD=x86_64-unknown-linux-gnu
+ NO_RUST=--enable-rust=no
+ make -j12 -C ./depends/ V=1
make: Entering directory '/mnt/c/Windows/System32/zcash/depends'
mkdir -p /mnt/c/Windows/System32/zcash/depends/sources/download-stamps /mnt/c/Windows/System32/zcash/depends/sources
rm -f /mnt/c/Windows/System32/zcash/depends/sources/download-stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash
touch /mnt/c/Windows/System32/zcash/depends/sources/download-stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash
cd /mnt/c/Windows/System32/zcash/depends/sources/download-stamps; (test -f /mnt/c/Windows/System32/zcash/depends/sources/ccache-3.3.1.tar.b
z2 || ( mkdir -p /mnt/c/Windows/System32/zcash/depends/work/download/native_ccache-3.3.1 && echo Fetching native_ccache... && ( wget --time
out=10 --tries=3 -nv -O "/mnt/c/Windows/System32/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" || wget --timeout=10 --tries=3 -nv -O "/mnt/c/Windows/System32/zcash/depends/work/download/native_cc
ache-3.3.1/ccache-3.3.1.tar.bz2.temp" "https://www.samba.org/ftp/ccache/ccache-3.3.1.tar.bz2" ) && echo "cb6e4bafbb19ba0a2ec43386b123a5f92a
20e1e3384c071d5d13e0cb3c84bf73 /mnt/c/Windows/System32/zcash/depends/work/download/native_ccache-3.3.1/ccache-3.3.1.tar.bz2.temp" > /mnt/c
/Windows/System32/zcash/depends/work/download/native_ccache-3.3.1/.ccache-3.3.1.tar.bz2.hash && sha256sum -c /mnt/c/Windows/System32/zcash/
depends/work/download/native_ccache-3.3.1/.ccache-3.3.1.tar.bz2.hash && mv /mnt/c/Windows/System32/zcash/depends/work/download/native_ccach
e-3.3.1/ccache-3.3.1.tar.bz2.temp /mnt/c/Windows/System32/zcash/depends/sources/ccache-3.3.1.tar.bz2 && rm -rf /mnt/c/Windows/System32/zcas
h/depends/work/download/native_ccache-3.3.1 ))
Fetching native_ccache...
2017-05-12 21:33:58 URL:https://z.cash/depends-sources/ccache-3.3.1.tar.bz2 [345711/345711] -> "/mnt/c/Windows/System32/zcash/depends/work/
download/native_ccache-3.3.1/ccache-3.3.1.tar.bz2.temp" [1]
/mnt/c/Windows/System32/zcash/depends/work/download/native_ccache-3.3.1/ccache-3.3.1.tar.bz2.temp: OK
cd /mnt/c/Windows/System32/zcash/depends/sources; sha256sum ccache-3.3.1.tar.bz2 >> /mnt/c/Windows/System32/zcash/depends/sources/download-
stamps/.stamp_fetched-native_ccache-ccache-3.3.1.tar.bz2.hash;
touch /mnt/c/Windows/System32/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 /mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c
cd /mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c; mkdir -p /mnt/c/Windows/Syste
m32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c && echo "cb6e4bafbb19ba0a2ec43386b123a5f92a20e1e3384c
071d5d13e0cb3c84bf73 /mnt/c/Windows/System32/zcash/depends/sources/ccache-3.3.1.tar.bz2" > /mnt/c/Windows/System32/zcash/depends/work/buil
d/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/.ccache-3.3.1.tar.bz2.hash && sha256sum -c /mnt/c/Windows/System32/zcash/depend
s/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/.ccache-3.3.1.tar.bz2.hash && tar --strip-components=1 -xf /mnt/c/Win
dows/System32/zcash/depends/sources/ccache-3.3.1.tar.bz2
/mnt/c/Windows/System32/zcash/depends/sources/ccache-3.3.1.tar.bz2: OK
touch /mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/.stamp_extracted
echo Preprocessing native_ccache...
Preprocessing native_ccache...
mkdir -p /mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c /mnt/c/Windows/System32/
zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/.patches-e133cdbf69c
cd /mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c;
touch /mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/.stamp_preprocessed
echo Configuring native_ccache...
Configuring native_ccache...
rm -rf /mnt/c/Windows/System32/zcash/depends/x86_64-unknown-linux-gnu; mkdir -p /mnt/c/Windows/System32/zcash/depends/x86_64-unknown-linux-
gnu/lib; cd /mnt/c/Windows/System32/zcash/depends/x86_64-unknown-linux-gnu;
mkdir -p /mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/.
cd /mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/.; PKG_CONFIG_LIBDIR=/mnt/
c/Windows/System32/zcash/depends/x86_64-unknown-linux-gnu/native/lib/pkgconfig PKG_CONFIG_PATH=/mnt/c/Windows/System32/zcash/depends/x86_64
-unknown-linux-gnu/native/share/pkgconfig PATH=/mnt/c/Windows/System32/zcash/depends/x86_64-unknown-linux-gnu/native/bin:/usr/local/sbin:/u
sr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/ProgramData/Oracle/Java/javapath:/mnt/c/Program Files (x86)/I
ntel/iCLS Client:/mnt/c/Program Files/Intel/iCLS Client:/mnt/c/Windows/System32:/mnt/c/Windows:/mnt/c/Windows/System32/wbem:/mnt/c/Windows/
System32/WindowsPowerShell/v1.0:/mnt/c/Program Files (x86)/AMD/ATI.ACE/Core-Static:/mnt/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core
-Static:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Componen
ts/IPT:/mnt/c/Program Files (x86)/MySQL/MySQL Fabric 1.5 & MySQL Utilities 1.5:/mnt/c/Program Files (x86)/MySQL/MySQL Fabric 1.5 & MySQL Ut
ilities 1.5/Doctrine extensions for PHP:/mnt/c/Program Files (x86)/Brackets/command:/mnt/c/Program Files/nodejs:/mnt/c/Users/Mustafa/AppDat
a/Local/Programs/Python/Python35/Scripts:/mnt/c/Users/Mustafa/AppData/Local/Programs/Python/Python35:/mnt/c/Users/Mustafa/path:/mnt/c/Users
/Mustafa/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files (x86)/Microsoft VS Code/bin:/mnt/c/Users/Mustafa/AppData/Roaming/npm ./
configure --host=x86_64-unknown-linux-gnu --disable-dependency-tracking --prefix=/mnt/c/Windows/System32/zcash/depends/x86_64-unknown-linux
-gnu/native CC="gcc" CXX="g++" NM="nm" RANLIB="ranlib" AR="ar" CPPFLAGS="-I/mnt/c/Windows/System32/zcash/depends/x86_64-unknown-lin
ux-gnu/native/include " LDFLAGS="-L/mnt/c/Windows/System32/zcash/depends/x86_64-unknown-linux-gnu/native/lib "
/bin/sh: 1: Syntax error: "(" unexpected
funcs.mk:238: recipe for target '/mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/
./.stamp_configured' failed
make: *** [/mnt/c/Windows/System32/zcash/depends/work/build/x86_64-unknown-linux-gnu/native_ccache/3.3.1-e133cdbf69c/./.stamp_configured] E
rror 2
make: Leaving directory '/mnt/c/Windows/System32/zcash/depends'

Unfortunately I don't have my Windows system with Ubuntu for Windows available any longer, and I"m out of ideas