Bitcoin Forum
May 04, 2024, 10:08:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: bitcoind: command not found  (Read 309 times)
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 12, 2021, 01:17:12 PM
Merited by HCP (2), ABCbits (1), Pmalek (1)
 #1

good day

centos 7 system
worked bitcoin core 0.16
decided to update to 0.21.1

now the console is writing
[bitcoin @ localhost rpcauth] $ bitcoind
-bash: bitcoind: command not found

in processes pid 4261 bitcoin launched
File: /home/bitcoin/.bitcoin/bitcoin.conf
daemon = 1
server = 1
maxmempool = 50
mempoolexpiry = 2
rpcauth = лгн @
dbcache = 2048
banscore = 10
datadir = / home / bitcoin / .bitcoin /


the person who updated quit, tell me how to set it up so that it works again
1714860505
Hero Member
*
Offline Offline

Posts: 1714860505

View Profile Personal Message (Offline)

Ignore
1714860505
Reply with quote  #2

1714860505
Report to moderator
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714860505
Hero Member
*
Offline Offline

Posts: 1714860505

View Profile Personal Message (Offline)

Ignore
1714860505
Reply with quote  #2

1714860505
Report to moderator
1714860505
Hero Member
*
Offline Offline

Posts: 1714860505

View Profile Personal Message (Offline)

Ignore
1714860505
Reply with quote  #2

1714860505
Report to moderator
1714860505
Hero Member
*
Offline Offline

Posts: 1714860505

View Profile Personal Message (Offline)

Ignore
1714860505
Reply with quote  #2

1714860505
Report to moderator
BitMaxz
Legendary
*
Online Online

Activity: 3248
Merit: 2965


Block halving is coming.


View Profile WWW
October 12, 2021, 01:56:34 PM
 #2

Can you try this command?

Code:
./bitcoind -daemon

Or go to the directory where your bitcoind is installed then open the terminal on that directory then use that command again.

If it doesn't work use this command

Code:
chmod +x bitcoind
Then try the above command again.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 12, 2021, 04:25:26 PM
 #3

Can you try this command?

Code:
./bitcoind -daemon

Or go to the directory where your bitcoind is installed then open the terminal on that directory then use that command again.

[root@localhost /]# ./bitcoind -daemon
-bash: ./bitcoind: Heт тaкoгo фaйлa или кaтaлoгa (No such file or directory )
Quote

If it doesn't work use this command

Code:
chmod +x bitcoind
Then try the above command again.
[root@localhost /]# chmod +x bitcoind
chmod: нeвoзмoжнo пoлyчить дocтyп к «bitcoind»: Heт тaкoгo фaйлa или кaтaлoгa (unable to access "bitcoind": No such file or directory)


[root@localhost bitcoind]# cd bitcoind
[root@localhost bitcoind]# ls
deps  downloads
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
October 13, 2021, 01:35:15 AM
Merited by ABCbits (1)
 #4

decided to update to 0.21.1
how exactly did you "update" bitcoin core? It sounds like the location of the bitcoind binary is no longer included in your PATH.

Do you know where the bitcoind binary is located? Huh

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
October 13, 2021, 07:20:55 AM
 #5

in processes pid 4261 bitcoin launched
Can you also confirm the Bitcoin services is launched by executing and post the output of:

Code:
$ ps -fwwp <PID>

In your case, the PID should be 4261 or just change it, if it has a new one.
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 13, 2021, 07:22:03 AM
Last edit: October 13, 2021, 07:51:23 AM by scndsn
 #6

decided to update to 0.21.1
how exactly did you "update" bitcoin core? It sounds like the location of the bitcoind binary is no longer included in your PATH.

Do you know where the bitcoind binary is located? Huh

I can’t tell who did it doesn’t pick up the phone


Litecoin is running on the server
path / root / litecoin

bitcoin
path / home / bitcoin / bitcoin

went through the instructions

https://gist.github.com/cdljsj/180e705fad8647590ee0ecc1f6182f43

sudo ln -s /opt/bitcoin-v0.16.1/bin/bitcoind /usr/bin/bitcoind
[root@localhost bin]# sudo ln -s /opt/bitcoin-v0.16.1/bin/bitcoind /usr/bin/bitcoind
ln: нe yдaлocь coздaть cимвoльнyю ccылкy «/usr/bin/bitcoind»: Фaйл cyщecтвyeт
could not create symlink '/ usr / bin / bitcoind': File exists

sudo ln -s /opt/bitcoin-${BITCOIN_TAG}/bin/bitcoin-cli /usr/bin/bitcoin-cli
same as above
vv181
Legendary
*
Offline Offline

Activity: 1932
Merit: 1273


View Profile
October 13, 2021, 08:41:48 AM
Merited by Husna QA (2), ABCbits (1)
 #7

sudo ln -s /opt/bitcoin-v0.16.1/bin/bitcoind /usr/bin/bitcoind
[root@localhost bin]# sudo ln -s /opt/bitcoin-v0.16.1/bin/bitcoind /usr/bin/bitcoind
ln: нe yдaлocь coздaть cимвoльнyю ccылкy «/usr/bin/bitcoind»: Фaйл cyщecтвyeт
could not create symlink '/ usr / bin / bitcoind': File exists

sudo ln -s /opt/bitcoin-${BITCOIN_TAG}/bin/bitcoin-cli /usr/bin/bitcoin-cli
same as above

Yep as @HCP suspects, the bitcoind binary isn't on your PATH. But since the bitcoind binary is located on /usr/bin/ I think somehow your whole Bash PATH is misconfigured, the location should be listed as default Bash PATH. Try to run "echo $PATH", the output should be like:
Code: (https://serverfault.com/a/838552)
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
#or
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin


Anyway, as a temporary fix run below command:
Code:
$ export PATH=$PATH:/usr/bin

After that, you probably now can run the bitcoind command. Try to check its version by running bitcoind --version.
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 13, 2021, 09:13:30 AM
 #8

sudo ln -s /opt/bitcoin-v0.16.1/bin/bitcoind /usr/bin/bitcoind
[root@localhost bin]# sudo ln -s /opt/bitcoin-v0.16.1/bin/bitcoind /usr/bin/bitcoind
ln: нe yдaлocь coздaть cимвoльнyю ccылкy «/usr/bin/bitcoind»: Фaйл cyщecтвyeт
could not create symlink '/ usr / bin / bitcoind': File exists

sudo ln -s /opt/bitcoin-${BITCOIN_TAG}/bin/bitcoin-cli /usr/bin/bitcoin-cli
same as above

Yep as @HCP suspects, the bitcoind binary isn't on your PATH. But since the bitcoind binary is located on /usr/bin/ I think somehow your whole Bash PATH is misconfigured, the location should be listed as default Bash PATH. Try to run "echo $PATH", the output should be like:
Code: (https://serverfault.com/a/838552)
/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:.
#or
/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin


Anyway, as a temporary fix run below command:
Code:
$ export PATH=$PATH:/usr/bin

After that, you probably now can run the bitcoind command. Try to check its version by running bitcoind --version.


[root@localhost ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin
[root@localhost ~]# export PATH=$PATH:/usr/bin
[root@localhost ~]# bitcoind --version
-bash: bitcoind: кoмaндa нe нaйдeнa (command not found )
[root@localhost ~]#
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 13, 2021, 09:41:56 AM
 #9

[root@localhost ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/var/lib/snapd/snap/bin:/root/bin
[root@localhost ~]# export PATH=$PATH:/usr/bin
[root@localhost ~]# bitcoind --version
-bash: bitcoind: кoмaндa нe нaйдeнa (command not found )
[root@localhost ~]#

Can you run this command to see whether bitcoind is exist on /usr/bin with correct permission?

Code:
ls -lha /usr/bin | grep bitcoin

P.S. if the result is empty, it means bitcoind isn't exist on /usr/bin
[root@localhost ~]# ls -lha /usr/bin | grep bitcoin
lrwxrwxrwx.   1 root root       39 oкт 15  2018 bitcoin-cli -> /home/bitcoind/bitcoind/bin/bitcoin-cli
lrwxrwxrwx.   1 root root       36 oкт 15  2018 bitcoind -> /home/bitcoind/bitcoind/bin/bitcoind


[root@localhost bin]# ls -ahl bitcoind (this command entered directly into / usr / bin) )
lrwxrwxrwx. 1 root root 36 oкт 15  2018 bitcoind -> /home/bitcoind/bitcoind/bin/bitcoind
[root@localhost bin]# ls -ahl bitcoin-cli
lrwxrwxrwx. 1 root root 39 oкт 15  2018 bitcoin-cli -> /home/bitcoind/bitcoind/bin/bitcoin-cli
ABCbits
Legendary
*
Offline Offline

Activity: 2870
Merit: 7464


Crypto Swap Exchange


View Profile
October 13, 2021, 09:47:23 AM
Merited by HCP (5)
 #10

[root@localhost ~]# ls -lha /usr/bin | grep bitcoin
lrwxrwxrwx.   1 root root       39 oкт 15  2018 bitcoin-cli -> /home/bitcoind/bitcoind/bin/bitcoin-cli
lrwxrwxrwx.   1 root root       36 oкт 15  2018 bitcoind -> /home/bitcoind/bitcoind/bin/bitcoind

Looks alright, how about /home/bitcoind/bitcoind/bin/?

Code:
ls -lha /home/bitcoind/bitcoind/bin/

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 13, 2021, 09:51:55 AM
 #11

[root@localhost ~]# ls -lha /usr/bin | grep bitcoin
lrwxrwxrwx.   1 root root       39 oкт 15  2018 bitcoin-cli -> /home/bitcoind/bitcoind/bin/bitcoin-cli
lrwxrwxrwx.   1 root root       36 oкт 15  2018 bitcoind -> /home/bitcoind/bitcoind/bin/bitcoind

Looks alright, how about /home/bitcoind/bitcoind/bin/?

Code:
ls -lha /home/bitcoind/bitcoind/bin/
[root@localhost bitcoind]# ls -lha
итoгo 0
drwxrwxr-x 4 bitcoind bitcoind  64 oкт 13 10:47 .
drwx------ 3 bitcoind bitcoind 118 ceн  8 00:06 ..
lrwxrwxrwx 1 root     root      33 oкт 13 10:47 bitcoind -> /opt/bitcoin-v0.16.1/bin/bitcoind
drwxrwxr-x 6 bitcoind bitcoind  71 ceн  7 22:06 deps
drwxrwxr-x 4 bitcoind bitcoind  75 ceн 19 20:40 downloads



[root@localhost //]# cd opt/bitcoin-v0.16.1/bin
[root@localhost bin]# ls
bench_bitcoin  bitcoin-cli  bitcoind  bitcoin-tx  test_bitcoin
[root@localhost bin]# ls -lha
итoгo 314M
drwxr-xr-x. 2 root root   95 oкт 15  2018 .
drwxr-xr-x. 6 root root   72 oкт 15  2018 ..
-rwxr-xr-x. 1 root root  82M oкт 15  2018 bench_bitcoin
-rwxr-xr-x. 1 root root 8,6M oкт 15  2018 bitcoin-cli
-rwxr-xr-x. 1 root root  77M oкт 15  2018 bitcoind
-rwxr-xr-x. 1 root root  18M oкт 15  2018 bitcoin-tx
-rwxr-xr-x. 1 root root 131M oкт 15  2018 test_bitcoin
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 13, 2021, 12:14:45 PM
Last edit: October 13, 2021, 12:26:37 PM by scndsn
 #12

Looks alright, how about /home/bitcoind/bitcoind/bin/?
Code:
ls -lha /home/bitcoind/bitcoind/bin/
[root@localhost bitcoind]# ls -lha
итoгo 0
drwxrwxr-x 4 bitcoind bitcoind  64 oкт 13 10:47 .
drwx------ 3 bitcoind bitcoind 118 ceн  8 00:06 ..
lrwxrwxrwx 1 root     root      33 oкт 13 10:47 bitcoind -> /opt/bitcoin-v0.16.1/bin/bitcoind
drwxrwxr-x 6 bitcoind bitcoind  71 ceн  7 22:06 deps
drwxrwxr-x 4 bitcoind bitcoind  75 ceн 19 20:40 downloads



[root@localhost //]# cd opt/bitcoin-v0.16.1/bin
[root@localhost bin]# ls
bench_bitcoin  bitcoin-cli  bitcoind  bitcoin-tx  test_bitcoin
[root@localhost bin]# ls -lha
итoгo 314M
drwxr-xr-x. 2 root root   95 oкт 15  2018 .
drwxr-xr-x. 6 root root   72 oкт 15  2018 ..
-rwxr-xr-x. 1 root root  82M oкт 15  2018 bench_bitcoin
-rwxr-xr-x. 1 root root 8,6M oкт 15  2018 bitcoin-cli
-rwxr-xr-x. 1 root root  77M oкт 15  2018 bitcoind
-rwxr-xr-x. 1 root root  18M oкт 15  2018 bitcoin-tx
-rwxr-xr-x. 1 root root 131M oкт 15  2018 test_bitcoin

I can't think what's the problem, the permission/owner-ship is correct and the symbolic link seems fine. If you don't mind shortcut (rather than neat solution), try adding /opt/bitcoin-v0.16.1/bin/ to your $PATH.

can i delete bq?
to re-install. the system is disabled and is not required at the moment. i can remove and install everything correctly


cd '/usr/local/bin' && rm -f bitcoind bitcoin-cli bitcoin-tx bitcoin-wallet test_bitcoin bench_bitcoin bitcoin-qt test_bitcoin-qt
cd '/usr/local/include' && rm -f bitcoinconsensus.h
rm -f '/usr/local/lib/libbitcoinconsensus.la'
cd '/usr/local/share/man/man1' && rm -f bitcoind.1 bitcoin-qt.1 bitcoin-cli.1 bitcoin-tx.1 bitcoin-wallet.1
cd '/usr/local/lib/pkgconfig' && rm -f libbitcoinconsensus.pc

is that all need to delete?
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
October 13, 2021, 12:47:40 PM
Merited by ABCbits (1)
 #13

Make sure that bitcoind is in your PATH environment variable and restart the shell (by restarting the operating system or running a new "bash" shell).

Code:
# Find the directory that bitcoind binary is located and run:
export PATH="/home/bitcoind/folder/bin:${PATH}" >> ~/.bashrc
# replace "/home/bitcoind/folder/bin" with the correct folder

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 13, 2021, 04:30:16 PM
 #14

Make sure that bitcoind is in your PATH environment variable and restart the shell (by restarting the operating system or running a new "bash" shell).

Code:
# Find the directory that bitcoind binary is located and run:
export PATH="/home/bitcoind/folder/bin:${PATH}" >> ~/.bashrc
# replace "/home/bitcoind/folder/bin" with the correct folder
Wouldn't it be correct to uninstall and reinstall everything so that there are no such problems in the future?

NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
October 13, 2021, 04:37:30 PM
Merited by HCP (5), ABCbits (2), Pmalek (1), vv181 (1)
 #15

Wouldn't it be correct to uninstall and reinstall everything so that there are no such problems in the future?

In this case, it is not necessary. [You only need to do that if you want to make bitcoind installed in /usr folder instead of /opt/bitcoin-v0.16.1]

I believe your bitcoind is installed in /opt/bitcoin-v0.16.1/bin/ .

So you just need to add that folder to your "PATH" environment variable.

By the way, 0.16 is quite an old version, shouldn't you install the latest 22.0 version instead?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 13, 2021, 04:54:04 PM
 #16

Wouldn't it be correct to uninstall and reinstall everything so that there are no such problems in the future?

In this case, it is not necessary. [You only need to do that if you want to make bitcoind installed in /usr folder instead of /opt/bitcoin-v0.16.1]

I believe your bitcoind is installed in /opt/bitcoin-v0.16.1/bin/ .

So you just need to add that folder to your "PATH" environment variable.

By the way, 0.16 is quite an old version, shouldn't you install the latest 22.0 version instead?
entered the command
export PATH = "/ opt / bitcoin-v0.16.1 / bin /: $ {PATH}" >> ~ / .bashrc
then fixed bitcoin.conf to / opt / ...
[root @ localhost ~] # bitcoind
Bitcoin server starting

thank you .
 

about the update, do not tell me the instructions for the correct update of the client on centos?

running version 0.16.1 :/
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
October 13, 2021, 05:28:28 PM
Merited by ABCbits (1)
 #17

entered the command
export PATH = "/ opt / bitcoin-v0.16.1 / bin /: $ {PATH}" >> ~ / .bashrc
then fixed bitcoin.conf to / opt / ...
[root @ localhost ~] # bitcoind
Bitcoin server starting

thank you .
 

about the update, do not tell me the instructions for the correct update of the client on centos?

running version 0.16.1 :/

On the first line of your script:

https://gist.github.com/cdljsj/180e705fad8647590ee0ecc1f6182f43

Change BITCOIN_TAG="v0.18.0" to BITCOIN_TAG="v22.0", and uninstall the old Bitcoin Core version and run it again.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 13, 2021, 05:55:36 PM
 #18

entered the command
export PATH = "/ opt / bitcoin-v0.16.1 / bin /: $ {PATH}" >> ~ / .bashrc
then fixed bitcoin.conf to / opt / ...
[root @ localhost ~] # bitcoind
Bitcoin server starting

thank you .
 

about the update, do not tell me the instructions for the correct update of the client on centos?

running version 0.16.1 :/

On the first line of your script:

https://gist.github.com/cdljsj/180e705fad8647590ee0ecc1f6182f43

Change BITCOIN_TAG="v0.18.0" to BITCOIN_TAG="v22.0", and uninstall the old Bitcoin Core version and run it again.


how to uninstall the old Bitcoin Core version?
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
October 14, 2021, 01:12:05 AM
 #19

how to uninstall the old Bitcoin Core version?
Theoretically, it should be as simple as deleting the "/opt/bitcoin-v0.16.1" folder and everything in it... (this assumes that your block data and wallets are being stored in "/home/.bitcoin" and are not also in the "/opt/bitcoin-v0.16.1" folder tree.)

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
October 14, 2021, 10:18:24 AM
Merited by ABCbits (1)
 #20

Does it apply if you install compile Bitcoin Core from source code and install using command sudo make install? Because that's what script (which mentioned by OP) do.
I believe so... this guide (which essentially follows the same flow of make and sudo make install says in the "Extra Guidance" section:

How To Recompile/Update Bitcoin Core

Recompiling Bitcoin Core and updating Bitcore Core are essentially the same procedure. We’re going to delete or rename the Bitcoin install directory, and then just reinstall Bitcoin all over again with the newer version.

Ideally, as they suggest, you should probably rename the folder initially to something like "bitcoin-OLD", rather than deleting it... so if anything goes wrong, you can simply change the folder name back and you should still have it.

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Pages: [1] 2 »  All
  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!