Bitcoin Forum
June 16, 2019, 08:09:29 PM *
News: Latest Bitcoin Core release: 0.18.0 [Torrent] (New!)
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [TUTORIAL] Build 0.16.2 Bitcoin with one console command  (Read 181 times)
kzv
Hero Member
*****
Online Online

Activity: 1260
Merit: 727


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

Open source crypto exchange https://trade.multicoins.org
Donate Marycoin project development: MS12okFu6D3FzBi2fTsmGEa6iQV9h31txe

0% MINING FEES FOR THE NEXT MONTH. GET PAID IN BTC, ETH, XMR or RVN.

www.cudominer.com Learn More
Easily run CudoOS from a USB flash drive.
Designed for rigs. Manage your mining remotely from Cudo Console.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
BitCryptex
Hero Member
*****
Online Online

Activity: 602
Merit: 765


Write @BitCryptex or quote my post to notify me


View Profile WWW
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: 1372
Merit: 1382


BtcBoss


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.

.BitDice.               ▄▄███▄▄
           ▄▄██▀▀ ▄ ▀▀██▄▄
      ▄▄█ ▀▀  ▄▄█████▄▄  ▀▀ █▄▄
  ▄▄██▀▀     ▀▀ █████ ▀▀     ▀▀██▄▄
██▀▀ ▄▄██▀      ▀███▀      ▀██▄▄ ▀▀██
██  ████▄▄       ███       ▄▄████  ██
██  █▀▀████▄▄  ▄█████▄  ▄▄████▀▀█  ██
██  ▀     ▀▀▀███████████▀▀▀     ▀  ██
             ███████████
██  ▄     ▄▄▄███████████▄▄▄     ▄  ██
██  █▄▄████▀▀  ▀█████▀  ▀▀████▄▄█  ██
██  ████▀▀       ███       ▀▀████  ██
██▄▄ ▀▀██▄      ▄███▄      ▄██▀▀ ▄▄██
  ▀▀██▄▄     ▄▄ █████ ▄▄     ▄▄██▀▀
      ▀▀█ ▄▄  ▀▀█████▀▀  ▄▄ █▀▀
           ▀▀██▄▄ ▀ ▄▄██▀▀
               ▀▀███▀▀
        ▄▄███████▄▄
     ▄███████████████▄
    ████▀▀       ▀▀████
   ████▀           ▀████
   ████             ████
   ████ ▄▄▄▄▄▄▄▄▄▄▄ ████
▄█████████████████████████▄
██████████▀▀▀▀▀▀▀██████████
████                   ████
████                   ████
████                   ████
████                   ████
████                   ████
████▄                 ▄████
████████▄▄▄     ▄▄▄████████
  ▀▀▀█████████████████▀▀▀
        ▀▀▀█████▀▀▀
▄▄████████████████████████████████▄▄
██████████████████████████████████████
█████                            █████
█████                            █████
█████                            █████
█████                            █████
█████                     ▄▄▄▄▄▄▄▄▄▄
█████                   ▄█▀▀▀▀▀▀▀▀▀▀█▄
█████                   ██          ██
█████                   ██          ██
█████                   ██          ██
██████████████████▀▀███ ██          ██
 ████████████████▄  ▄██ ██          ██
   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ██          ██
             ██████████ ██          ██
           ▄███████████ ██████▀▀██████
          █████████████  ▀████▄▄████▀
[/]
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!