Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Page Tree | ||||||
---|---|---|---|---|---|---|
|
Panel | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
|
4.3.1 Build instructions for Linux
Build requirements on CentOS 7:Clone the ZenCashOfficial zen repository from Github and change to the directory.
Code Block | ||||
---|---|---|---|---|
| ||||
sudogit yum -y install epel-release \ && sudo yum -y update \ && sudo yum -y install \ git pkgconfig automake autoconf ncurses-devel python python-zmq \ wget gtest-devel gcc gcc-c++ libtool patch make bzip2 |
clone https://github.com/ZencashOfficial/zen.git
cd ./zen |
For x86-64 just run the build process.
Code Block | ||||
---|---|---|---|---|
| ||||
sudo apt-get update \
&& sudo apt-get -y install \
build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python python-zmq \
zlib1g-dev wget bsdmainutils automake
|
./zcutil/build.sh -j$(nproc) |
For aarch64/arm64 some additional steps are needed.
Code Block | ||||
---|---|---|---|---|
| ||||
sudomkdir add-apt-repository ppa:ubuntu-toolchain-r/test \ && sudo apt-get update \ && sudo apt-get install g++-4.9 \ && sudo update-alternatives --installp ~/bin cd ~/bin ln -s /usr/bin/ar aarch64-unknown-linux-gnu-ar ln -s /usr/bin/g++ aarch64-unknown-linux-gnu-g++ ln -s /usr/bin/gcc aarch64-unknown-linux-gnu-gcc ln -s /usr/bin/gcc-4.9 40 \ && sudo update-alternatives --installnm aarch64-unknown-linux-gnu-nm ln -s /usr/bin/cpp cppranlib aarch64-unknown-linux-gnu-ranlib ln -s /usr/bin/cpp-4.9 40 \ && sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 40 |
strip aarch64-unknown-linux-gnu-strip
PATH=$PATH:~/bin
cd ~/zen/
./zcutil/build-arm.sh --disable-rust -j$(nproc) |
(Optional) Install built binaries to /usr/bin.
Code Block | ||||
---|---|---|---|---|
| ||||
sudo apt-get update \ && sudo apt-get -y install \ build-essential pkg-config libc6-dev m4 g++-multilib-arm-linux-gnueabihf \ autoconf libtool ncurses-dev unzip git python \ zlib1g-dev wget bsdmainutils automake install ./src/zen-cli ./src/zend /usr/bin sudo install ./zcutil/fetch-params.sh /usr/bin/zen-fetch-params |
Download the trusted setup.
Code Block | ||||
---|---|---|---|---|
| ||||
./zcutil/fetch-params.sh |
Setup minimal zen.conf credentials.
Code Block | ||||
---|---|---|---|---|
| ||||
mkdir -p ~/.zen
echo "rpcuser=zenuser" > ~/.zen/zen.conf
echo "rpcpassword=`head -c 32 /dev/urandom | base64`" >> ~/.zen/zen.conf |
Launch zend
Code Block | ||||
---|---|---|---|---|
| ||||
./src/zend |
or if you’ve installed the binaries to /usr/bin
Code Block | ||||
---|---|---|---|---|
| ||||
zend |
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|