In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
In order to solve the problem of how to build a bitcoin operating environment in Ubuntu, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
1. The open source library on which Bitcoin runs
(1) libraries that must be relied on
Description of libssl encryption random number generation, elliptic curve encryption algorithm libboost tool thread library, data structure and other libevent network independent of OS asynchronous network
(2) optional dependent libraries
Description of the library miniupnpcUPnP support firewall jump support libdb4.8Berkeley DB database wallet storage (required only when starting wallet) qtGUI graphical user interface GUI toolkit (only needed when starting GUI) payment in protobufGUI data exchange format for payment protocol (only needed when starting GUI) optional generation QR code in libqrencodeGUI (required only when starting GUI) univalue tools JSON parsing and encoding (bundled version default support) Unless-- with-system-univalue configuration modification) libzmq3ZMQ notification is optional, it is allowed to generate ZMQ notification 2. Memory requirements for Bitcoin operation
C++ compiler consumes memory resources, so it is recommended that the environment for compiling and installing Bitcoin Core should have at least 1.5g of memory.
3. Install the software package of the runtime environment-dependent library
(1) install prerequisite software packages
Sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3
(2) install the optional software package Boost
Sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev
(3) install BerkeleyDB. For Ubuntu, you need to install the db4.8 version of the software package, add the package to the software repository, and then install it. The command is as follows.
Sudo apt-get install software-properties-common
Sudo add-apt-repository ppa:bitcoin/bitcoin
Sudo apt-get update
Sudo apt-get install libdb4.8-dev libdb4.8++-dev
(4) install UPNP library
Sudo apt-get install libminiupnpc-dev
(5) install ZMQ library
Sudo apt-get install libzmq3-dev
(6) graphical user interface for installing qt5,bitcoin wallet
Sudo apt-get install libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler
Note: if you fail to install qt5 by executing the above command, you need to download the qt5 installation package to install it. You can refer to installing Qt5 on Ubuntu.
(7) install the QR code library
Sudo apt-get install libqrencode-dev
4. Download bitcoin source code
Git clone https://github.com/bitcoin/bitcoin.git
5. Bitcoin source code compilation and installation
. / autogen.sh
. / configure
Make
Sudo make install
After the compilation and installation is completed, the bitcoin runtime environment is built.
By running bitcoin-qt, you can download the full-node wallet through the QT graphical interface. Currently, the full-node wallet takes up more than 200g of hard disk storage space, and the whole download process will take several days.
This is the answer to the question about how to build the running environment of bitcoin in Ubuntu. I hope the above content can be of some help to you. If you still have a lot of questions to solve, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.