Option 1 - download pre-compiled TON binaries
You can find pre-compiled binaries for
lite-client in the repo https://github.com/ton-defi-org/ton-binaries
Download the binaries from the Releases page of this repo - make sure to select the correct version according to the operating system you're using and install the additional dependencies
After download, make sure the downloaded binaries are executable by changing their permissions (ie by running
chmod +x fift). It's also useful to place these binaries in your path (or copy them to
/usr/local/bin) to make sure you can access them from anywhere.
To check that everything was installed correctly, run in terminal
fift -V && func -V && lite-client -V
If you plan to use
fift, also download fiftlib.zip, open the zip in some directory on your machine (like
/usr/local/lib/fiftlib) and set the environment variable
FIFTPATHto point to this directory.
Option 2 - compile by yourself
If you don't want to rely on pre-compiled binaries and prefer to compile the binaries by yourself, you can follow the official instructions. This is of course the most secure option, but it takes more effort.
The gist of the instructions for Linux (Ubuntu / Debian) is provided below:
sudo apt update
sudo apt install git make cmake g++ libssl-dev zlib1g-dev wget
cd ~ && git clone https://github.com/ton-blockchain/ton.git
cd ~/ton && git submodule update --init
mkdir ~/ton/build && cd ~/ton/build && cmake .. -DCMAKE_BUILD_TYPE=Release && make -j 4
Option 3 - other sources for binaries
The core team provides automatic builds for several operating systems as GitHub Actions.
Click on the link above, choose the workflow on the left relevant to your operating system, click on a recent green passing build and under "Artifacts" download