Bitcoin Forum
May 13, 2024, 04:50:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Core Linux binaries installation question  (Read 184 times)
will_k (OP)
Sr. Member
****
Offline Offline

Activity: 337
Merit: 250


View Profile
January 06, 2020, 10:49:21 AM
 #1

After extracting bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz, I see four directories,

Code:
$ tar xf bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz
$ cd bitcoin-0.19.0.1
$ ls -R
README.md bin       include   lib       share

./bin:
bitcoin-cli    bitcoin-qt     bitcoin-tx     bitcoin-wallet bitcoind       test_bitcoin

./include:
bitcoinconsensus.h

./lib:
libbitcoinconsensus.so       libbitcoinconsensus.so.0     libbitcoinconsensus.so.0.0.0

./share:
man

./share/man:
man1

./share/man/man1:
bitcoin-cli.1    bitcoin-qt.1     bitcoin-tx.1     bitcoin-wallet.1 bitcoind.1

The README.md says to run the binaries like the follow
Code:
Unpack the files into a directory and run:

- `bin/bitcoin-qt` (GUI) or
- `bin/bitcoind` (headless)

I looked around for ways to install it and I found this https://bitcoin.org/en/full-node#linux-instructions
Installing via install
Code:
sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-0.18.0/bin/*

I do recall that if I compile from source and install via
Code:
sudo make install
The files do get copied over into include, lib and share.

So my question is, what do I do with the content of include, lib, and share directories and when do I need them?


★☆★Syscoin - Decentralized Marketplace and Multisig Platform
Pay with Bitcoin, ZCash and many more
For more visit Syscoin.org ★☆★
1715575837
Hero Member
*
Offline Offline

Posts: 1715575837

View Profile Personal Message (Offline)

Ignore
1715575837
Reply with quote  #2

1715575837
Report to moderator
1715575837
Hero Member
*
Offline Offline

Posts: 1715575837

View Profile Personal Message (Offline)

Ignore
1715575837
Reply with quote  #2

1715575837
Report to moderator
1715575837
Hero Member
*
Offline Offline

Posts: 1715575837

View Profile Personal Message (Offline)

Ignore
1715575837
Reply with quote  #2

1715575837
Report to moderator
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715575837
Hero Member
*
Offline Offline

Posts: 1715575837

View Profile Personal Message (Offline)

Ignore
1715575837
Reply with quote  #2

1715575837
Report to moderator
1715575837
Hero Member
*
Offline Offline

Posts: 1715575837

View Profile Personal Message (Offline)

Ignore
1715575837
Reply with quote  #2

1715575837
Report to moderator
1715575837
Hero Member
*
Offline Offline

Posts: 1715575837

View Profile Personal Message (Offline)

Ignore
1715575837
Reply with quote  #2

1715575837
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
January 06, 2020, 10:55:10 AM
 #2

You probably don't...

Is the stuff in the share directory the same as the stuff in the bin one? They're either copies or different versions.

Dot H is a C header file which may or may not be used in the code when it's run (probabky wouldn't suggest deleting it though just to be on the safe side). And the dot so and a few others are probably just other scripts like the header file thst can be run on other devices.

(starting to think I've used the dot 1 stuff before on a certain architecture or something when the original won't run but it might have been a different piece of software I was using at the time)...
Wind_FURY
Legendary
*
Offline Offline

Activity: 2912
Merit: 1826



View Profile
January 06, 2020, 11:20:48 AM
 #3

OP, just go to the "bin" folder, open a terminal, and type "./bitcoin-qt" to run the client. Then control+C to stop it, then go to /home/"your name"/.bitcoin. Create a bitcoin.conf file, and start with, "debug=net", and "maxmempool=100" without quotes. Configure as your bandwidth allows.

Plus do you have limited disk space? Add "prune=10000".

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
will_k (OP)
Sr. Member
****
Offline Offline

Activity: 337
Merit: 250


View Profile
January 06, 2020, 09:55:14 PM
 #4

Is the stuff in the share directory the same as the stuff in the bin one? They're either copies or different versions.

I think the content of the share directory is the man files? Like what you'd see if you do "man syscoind" or "man syscoin-qt"


★☆★Syscoin - Decentralized Marketplace and Multisig Platform
Pay with Bitcoin, ZCash and many more
For more visit Syscoin.org ★☆★
will_k (OP)
Sr. Member
****
Offline Offline

Activity: 337
Merit: 250


View Profile
January 06, 2020, 09:58:22 PM
 #5

OP, just go to the "bin" folder, open a terminal, and type "./bitcoin-qt" to run the client. Then control+C to stop it, then go to /home/"your name"/.bitcoin. Create a bitcoin.conf file, and start with, "debug=net", and "maxmempool=100" without quotes. Configure as your bandwidth allows.

Plus do you have limited disk space? Add "prune=10000".

hey, I have no problem running it directly via "./bitcoin-qt"
I'm just curious about the purpose of those files outside of the bin folder that comes in the tar.gz and the proper way to install it such that I can just do "bitcoin-qt"

★☆★Syscoin - Decentralized Marketplace and Multisig Platform
Pay with Bitcoin, ZCash and many more
For more visit Syscoin.org ★☆★
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
January 06, 2020, 10:52:01 PM
 #6

Add the bin directory it to your path variable if you want it to be globally accessible. I just gave an example for an electrum user in another thread:

https://bitcointalk.org/index.php?topic=5215134.msg53539049#msg53539049
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
January 06, 2020, 11:50:28 PM
 #7

The proper way to install it is to extract everything and copy all of the files into their respective directories in /usr/ So everything in bin goes to /usr/bin; include to /usr/include; lib to /usr/lib; share to /usr/share

You don't really need everything in the bin folder, some of those are the unit test binaries. But just copy everything anyways. The include and lib folders are only needed if you want to write or use a program that is dynamically linked against the libconsensus library provided by Bitcoin Core. I don't think anyone uses that though. The share folder contains the manpages.

will_k (OP)
Sr. Member
****
Offline Offline

Activity: 337
Merit: 250


View Profile
January 08, 2020, 08:34:10 AM
 #8

The include and lib folders are only needed if you want to write or use a program that is dynamically linked against the libconsensus library provided by Bitcoin Core. I don't think anyone uses that though. The share folder contains the manpages.

Oooooh this is what I'm looking for thanks!

★☆★Syscoin - Decentralized Marketplace and Multisig Platform
Pay with Bitcoin, ZCash and many more
For more visit Syscoin.org ★☆★
micro4lpha
Newbie
*
Offline Offline

Activity: 17
Merit: 3


View Profile
January 09, 2020, 03:01:54 AM
 #9

The proper way to install it is to extract everything and copy all of the files into their respective directories in /usr/ So everything in bin goes to /usr/bin; include to /usr/include; lib to /usr/lib; share to /usr/share
It is recommended to use /usr/local/bin if the binaries were compiled by you to not mix them with system binaries in /usr/bin, just a recommendation though.
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!