# Migration 1.4.3

# For Linux Distributions using prebuild binary

Download the tar.gz file:

Copy curl -LO https://github.com/chain4energy/c4e-chain/releases/download/v1.4.3/c4ed_v1.4.3_linux_amd64.tar.gz

Verify the checksum:

Copy sha256sum c4ed_v1.4.3_linux_amd64.tar.gz

You should see the following:

Copy f6b272ae4898a03afc76ea38564b999355bfd6aeb2c92e85c151af63fc9cbf38 c4ed_v1.4.3_linux_amd64.tar.gz

Unpack the tar.gz file:

Copy tar -xvf c4ed_v1.4.3_linux_amd64.tar.gz

Move the binary to your local bin directory:

Copy mkdir -p ~/go/bin sudo mv c4ed ~/go/bin

# Install wasmvm library

Create a directory for the library

Copy mkdir ~/.c4e-chain/lib

Download the library to the directory

Copy wget https://github.com/CosmWasm/wasmvm/releases/download/v1.5.2/libwasmvm.x86_64.so -P ~/.c4e-chain/lib

Add the library to the path

Copy echo 'export LD_LIBRARY_PATH=/home/$USER/.c4e-chain/lib:$LD_LIBRARY_PATH' >> ~/.profile source ~/.profile

Check the version

Copy c4ed version

You should see the following:

Copy 1.4.3

# Add wasmvm path to cosmovisor service

Add the following line to the cosmovisor service file under the [Service] section. Remember to change user_path to your actual path

Copy Environment="LD_LIBRARY_PATH=/home/user_path/.c4e-chain/lib:$LD_LIBRARY_PATH"

Restart the cosmovisor service

Copy sudo systemctl daemon-reload sudo systemctl restart cosmovisor

# For Linux Distributions by building binary

Clone repository

Copy git clone --depth 1 --branch v1.4.3 https://github.com/chain4energy/c4e-chain.git

go to repo directory

Copy cd c4e-chain/

Build binary

Copy make install

Check the version

Copy c4ed version

You should see the following:

Copy 1.4.3

# Setup cosmovisor

Create cosmovisor upgrade dir

Copy export DAEMON_HOME=$HOME/.c4e-chain/ mkdir -p $DAEMON_HOME/cosmovisor/upgrades/v1.4.3/bin

Put binary in proper dir

Copy cp ~/go/bin/c4ed $DAEMON_HOME/cosmovisor/upgrades/v1.4.3/bin

Just to be sure check version

Copy $DAEMON_HOME/cosmovisor/upgrades/v1.4.3/bin/c4ed version