Bitcoin Forum
May 09, 2024, 09:11:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [TUTORIAL] Build 0.16.2 Bitcoin with one console command  (Read 319 times)
kzv (OP)
Legendary
*
Offline Offline

Activity: 1722
Merit: 1285

OpenTrade - Open Source Cryptocurrency Exchange


View Profile WWW
August 17, 2018, 03:23:44 PM
Merited by suchmoon (7), BitMaxz (1)
 #1

Instruction

This console command will build last (0.16.2) version Bitcoin clients for Linux 64 bit, Windows 64 bit and Windows 32 bit.

Has been tested on the clean server with Ubuntu 16 (64 bit 4GB RAM)


Code:
cd ~ && sudo apt-get update && apt-get upgrade -y && apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev -y && apt-get update -y && add-apt-repository ppa:bitcoin/bitcoin && apt-get update -y && apt-get install libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev g++-mingw-w64-i686 mingw-w64-i686-dev g++-mingw-w64-x86-64 mingw-w64-x86-64-dev curl -y && update-alternatives --config x86_64-w64-mingw32-g++ &&  wget https://github.com/bitcoin/bitcoin/archive/v0.16.2.tar.gz && tar -xvzf v0.16.2.tar.gz && cd bitcoin-0.16.2/depends && make download && make && cd .. && ./autogen.sh && ./configure --enable-glibc-back-compat --prefix=`pwd`/depends/x86_64-pc-linux-gnu LDFLAGS="-static-libstdc++" && make clean && make && make install && cd depends && make HOST=x86_64-w64-mingw32 -j4 && cd .. && ./configure --prefix=`pwd`/depends/x86_64-w64-mingw32 && make clean && make && make install && cd depends && make HOST=i686-w64-mingw32 -j4 && cd .. && ./configure --prefix=`pwd`/depends/i686-w64-mingw32 && make clean && make && make install

First you will asked

Quote
Press [ENTER] to continue or ctrl-c to cancel adding it

you should to press Enter

After some time you will asked

Quote
  Selection    Path                                   Priority   Status
------------------------------------------------------------
* 0            /usr/bin/x86_64-w64-mingw32-g++-win32   60        auto mode
  1            /usr/bin/x86_64-w64-mingw32-g++-posix   30        manual mode
  2            /usr/bin/x86_64-w64-mingw32-g++-win32   60        manual mode

Press <enter> to keep the current choice
  • , or type selection number:
select "1" for switching to posix and press Enter

After this you will asked

Quote
  Selection    Path                                 Priority   Status
------------------------------------------------------------
* 0            /usr/bin/i686-w64-mingw32-g++-win32   60        auto mode
  1            /usr/bin/i686-w64-mingw32-g++-posix   30        manual mode
  2            /usr/bin/i686-w64-mingw32-g++-win32   60        manual mode

Press <enter> to keep the current choice
  • , or type selection number:
Again select "1" for switching to posix and press Enter

When command will complete working, Linux binaries will be in this folder ~/bitcoin-0.16.2/depends/x86-64-pc-linux-gnu/bin

Windows binaries will be in this folders:

~/bitcoin-0.16.2/depends/x86-64-w64-mingw32 (Windows 64 bit binaries)

~/bitcoin-0.16.2/depends/i686-w64-mingw32 (Windows 32 bit binaries)

Note

If process will killed then may be you have not enough RAM. You can increase it or use this coomand instead

Code:
sudo fallocate -l 4G /swapfile && sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile

OpenTrade - Open Source Cryptocurrency Exchange
1715289093
Hero Member
*
Offline Offline

Posts: 1715289093

View Profile Personal Message (Offline)

Ignore
1715289093
Reply with quote  #2

1715289093
Report to moderator
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715289093
Hero Member
*
Offline Offline

Posts: 1715289093

View Profile Personal Message (Offline)

Ignore
1715289093
Reply with quote  #2

1715289093
Report to moderator
1715289093
Hero Member
*
Offline Offline

Posts: 1715289093

View Profile Personal Message (Offline)

Ignore
1715289093
Reply with quote  #2

1715289093
Report to moderator
1715289093
Hero Member
*
Offline Offline

Posts: 1715289093

View Profile Personal Message (Offline)

Ignore
1715289093
Reply with quote  #2

1715289093
Report to moderator
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
August 17, 2018, 04:32:42 PM
Merited by BitMaxz (1)
 #2

I haven't used Windows in a while, but I highly doubt it supports "sudo", "apt-get" and "tar.gz".

Actually, it's been quite a while since you can enable the Windows Subsystem for Linux. Here you can find an official tutorial. I haven't tested it much, but I remember that the commands you mentioned were working.
seoincorporation
Legendary
*
Offline Offline

Activity: 3150
Merit: 2933


Top Crypto Casino


View Profile
August 20, 2018, 01:19:19 PM
 #3

Quote
This console command will build last (0.16.2) version Bitcoin clients for Linux 64 bit, Windows 64 bit and Windows 32 bit.

Nop, this will only work for UBUNTU 64 bit

This will not work for other distros like Arch, fedora, centos, slack, etc...

But great tutorial for the ubuntu users  Grin is awesome when someone bring this kind of solutions, i mean the 1 command line solution. I used to do the same in past that makes lot of people happy because we know linux sometimes can be a pain in the ass.

By the way i see mingw32 in your commands, it remember me the old times, i used that command in past to compile and .exe on linux.

So, thanks again for the knowledge sharing, that's always welcome.

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!