Compile LitecoinQt from sources

Building Litecoin client from sources is a good way to protect yourself from visiting and downloading malicious binary file from the official website. Imagine a group of hackes attacks DNS server so litecoin.org redirects you to their website, it looks the same, it acts the same, but it contains backdoored Litecoin-Qt wallet.

You can be smarter and download and compile the client from sources. To do so, just follow some simple steps:

Make sure you have git installed on your Linux distro:

Ubuntu/Debian: sudo apt-get install git make autoconf autogen gcc g++ libdb++-dev libboost-all-devel libssl-devel openssl -y
Fedora: sudo yum install install git make autoconf autogen gcc g++ libdb++-devel libboost-all-devel libssl-devel openssl libqt4-dev libprotobuf-dev
openSUSE: zypper install git make autoconf autogen gcc g++ libdb++-devel libboost-all-devel libssl-devel openssl

Now you must download the sources from the official repository at github.com, generate some files and compile the application:

git clone https://github.com/litecoin/litecoin.git
cd litecoin
./autogen.sh
./configure --with-gui --with-incompatible-bdb
make -j3 # first time, this will take a while

On my computers I keep litecoin-qt executable files in the same directory where the wallet downloads blockchain, it’s just easier to backup and manage in the future.
If you this will be the first time you run Litecoin-Qt, run this command:

mkdir ~/.litecoin

After you compiled the client, you have three important binary files to copy to the ~/.litecoin directory

cp litecoin-qt ~/.litecoin/

Yup, it’s done.

Now just run Litecoin-Qt with:

~/.litecoin/litecoin-qt

OK. Let’s say it’s been some time since you compiled the wallet and now you want to update it.
Go to the directory where you downloaded Litecoin-Qt before, like:

cd litecoin
git pull  #download changes - update
make      #build binary files

Finished compilation?
You must copy those three files again:

cp litecoin-qt ~/.litecoin/
[Total: 0    Average: 0/5]
  • Mayshinter Metals

    Thanks