Why the codes of building zcash wallet different from github guide?

From github.com, the latest guide shows it should input “./zcutil/build.sh -j$(nproc)”, however one thread in a forum suggested “./zcutil/build.sh -j4”.
I am novice to linux, using VMware on win10 and created a virtual machine of Ubuntu on my T440s laptop. It seems the codes echoed are different from what the forum.

What should I input to build zcash wallet then?

The -j parameter specifies how many CPU cores to use. In the case of -j$(nproc), your computer will automatically choose the number of available cores. In the case of -j4, you’re explicitly telling the build process to try to use 4 cores. If in doubt, use -j($nproc). The output should be the same either way.

1 Like

Thanks. Maybe I need to wait for the building process is over and check if it is successful or not. Now it is still running.

1 Like

The compiling process is completed with the following errors:

Makefile:4059: recipe for target ‘libbitcoin_server_a-main.o’ failed
make[2]: *** [libbitcoin_server_a-main.o] Error 4
make[2]: Leaving directory ‘/home/soge/zcash/src’
Makefile:7493: recipe for target ‘all-recursive’ failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory ‘/home/soge/zcash/src’
Makefile:676: recipe for target ‘all-recursive’ failed
make: *** [all-recursive] Error 1

Is it normal?

No, there aren’t supposed to be errors. What OS and version are you using? How much memory does your system have?

Now I reinstall Ubuntu in VMware installed on Win10, with memory of 8G. This time I follow the video step by step and see if it will be ok or not.

Maybe that’s the problem as I typed
~$ sudo apt-get update

Reading package lists… Done
N: Skipping acquire of configured file ‘main/binary-i386/Packages’ as repository ‘https://apt.z.cash jessie InRelease’ doesn’t support architecture ‘i386’

I think you have to have a 64-bit system to build and use zcash. Your VM appears to be 32-bit.

You are right. Thanks.

So I installed Ubuntu OS on one partition. This time it works. However it cannot generate t-addr. The error msg is below:

:~/zcash$ ./src/zcash-cli getnewaddress
error: couldn’t connect to server

finally get it down. the server should be running