Pages:
Author

Topic: bitcoind: command not found (Read 352 times)

HCP
legendary
Activity: 2086
Merit: 4361
October 29, 2021, 04:56:08 PM
#26
It seems that your system is still finding the older version of libstdc++.so.6, rather than the newer one that is required (and has GLIBCXX_3.4.20 and GLIBCXX_3.4.21)...

But this seems to indicate that you got Boost compiled:
UPD

export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64

./b2 install --prefix=/opt/boost --with=all

done
If so, then you should be able to return to your step 4)... and start following the gist again to get it compiled... or is it still complaining that it cannot find Boost libraries? Huh

newbie
Activity: 15
Merit: 4
October 26, 2021, 02:00:36 PM
#25
why doesn't this work?


[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.

As I already said, it is because the ./configure  command failed with an error (check the log output above).

The error says your version of GCC compiler is too old. If you are on CentOS 7 it is probably 4.8.5. This is a really old version of GCC.

As I also said above, you need to download and install a newer version of GCC.

1) old /opt/bicoin-v0.16 rename *_old
2) old /root/bitcoin rename *_old
3)
Quote
wget https://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-8.5.0/gcc-8.5.0.tar.gz
tar zxf gcc-8.5.0.tar.gz
cd gcc-8.5.0
yum -y install bzip2
./contrib/download_prerequisites
./configure --disable-multilib --enable-languages=c,c++
make -j 2
make install
done
4) https://gist.github.com/cdljsj/180e705fad8647590ee0ecc1f6182f43
v22.0
checking for boostlib >= 1.64.0 (106400)... configure: We could not detect the boost libraries (version 1.64.0 or higher). If you have a staged boost library (still not installed) please specify $BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in . See http://randspringer.de/boost for more documentation.
configure: error: Boost is not available!

[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.

5) update bootslib

yum update
yum install epel-release
yum install boost boost-thread boost-devel

wget 1_77_0 version
tar -xzf boost_1_77_0.*
cd boost_1_77_0
./bootstrap.sh --prefix=/opt/boost
./b2 install --prefix=/opt/boost --with=all
[root@localhost boost_1_77_0]# ./b2 install --prefix=/opt/boost --with=all
./b2: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by ./b2)
./b2: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./b2)

strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH

I can not find instructions on how to set up


UPD

export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64

./b2 install --prefix=/opt/boost --with=all

done

[root@localhost bitcoin]# strings /usr/lib64/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH

fail Sad
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
October 22, 2021, 09:26:21 AM
#24
why doesn't this work?


[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.

As I already said, it is because the ./configure  command failed with an error (check the log output above).

The error says your version of GCC compiler is too old. If you are on CentOS 7 it is probably 4.8.5. This is a really old version of GCC.

As I also said above, you need to download and install a newer version of GCC.
newbie
Activity: 15
Merit: 4
October 22, 2021, 09:04:03 AM
#23
[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.


why ?

Quote
[root@localhost bitcoin]# git checkout tags/v22.0
......
checking whether g++ supports C++17 features with -std=c++17... no
checking whether g++ supports C++17 features with +std=c++17... no
checking whether g++ supports C++17 features with -h std=c++17... no
checking whether g++ supports C++17 features with -std=c++1z... no
checking whether g++ supports C++17 features with +std=c++1z... no
checking whether g++ supports C++17 features with -h std=c++1z... no
configure: error: *** A compiler with support for C++17 language features is required.
You have mail in /var/spool/mail/root
[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.
[root@localhost bitcoin]# bitcoin-qt &
[1] 10512
[root@localhost bitcoin]# -bash: bitcoin-qt: command not found

[1]+  Exit 127                bitcoin-qt
[root@localhost bitcoin]# bitcoind
-bash: bitcoind: command not found

It means you are using too old version of gcc compiler. Run GCC --version, you must have at least version 8 to have C++ 17 support.

If you are on Ubuntu you can run: apt-get install gcc-8 g++-8.

On CentOS it is a little more difficult and you need to install GCC from source.

From https://linuxhostsupport.com/blog/how-to-install-gcc-on-centos-7/:
Code:
wget https://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-8.5.0/gcc-8.5.0.tar.gz
tar zxf gcc-8.5.0.tar.gz
cd gcc-8.5.0
yum -y install bzip2
./contrib/download_prerequisites
./configure --disable-multilib --enable-languages=c,c++
make -j 2
make install

Then you can run the Bitcoin Core build process again.


why doesn't this work?


[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.


legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
October 22, 2021, 09:02:13 AM
#22
[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.


why ?

Quote
[root@localhost bitcoin]# git checkout tags/v22.0
......
checking whether g++ supports C++17 features with -std=c++17... no
checking whether g++ supports C++17 features with +std=c++17... no
checking whether g++ supports C++17 features with -h std=c++17... no
checking whether g++ supports C++17 features with -std=c++1z... no
checking whether g++ supports C++17 features with +std=c++1z... no
checking whether g++ supports C++17 features with -h std=c++1z... no
configure: error: *** A compiler with support for C++17 language features is required.
You have mail in /var/spool/mail/root
[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.
[root@localhost bitcoin]# bitcoin-qt &
[1] 10512
[root@localhost bitcoin]# -bash: bitcoin-qt: command not found

[1]+  Exit 127                bitcoin-qt
[root@localhost bitcoin]# bitcoind
-bash: bitcoind: command not found

It means you are using too old version of gcc compiler. Run GCC --version, you must have at least version 8 to have C++ 17 support.

If you are on Ubuntu you can run: apt-get install gcc-8 g++-8.

On CentOS it is a little more difficult and you need to install GCC from source.

From https://linuxhostsupport.com/blog/how-to-install-gcc-on-centos-7/:
Code:
wget https://www.mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-8.5.0/gcc-8.5.0.tar.gz
tar zxf gcc-8.5.0.tar.gz
cd gcc-8.5.0
yum -y install bzip2
./contrib/download_prerequisites
./configure --disable-multilib --enable-languages=c,c++
make -j 2
make install

Then you can run the Bitcoin Core build process again.
newbie
Activity: 15
Merit: 4
October 22, 2021, 08:22:55 AM
#21
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.

[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.


why ?

Quote
[root@localhost bitcoin]# git checkout tags/v22.0
Note: checking out 'tags/v22.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at a098814... Merge bitcoin/bitcoin#22921: Some small improvements to release notes
You have mail in /var/spool/mail/root
[root@localhost bitcoin]# ./autogen.sh
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build-aux/m4'.
libtoolize: copying file `build-aux/m4/libtool.m4'
libtoolize: copying file `build-aux/m4/ltoptions.m4'
libtoolize: copying file `build-aux/m4/ltsugar.m4'
libtoolize: copying file `build-aux/m4/ltversion.m4'
libtoolize: copying file `build-aux/m4/lt~obsolete.m4'
configure.ac:45: installing 'build-aux/config.guess'
configure.ac:45: installing 'build-aux/config.sub'
configure.ac:28: installing 'build-aux/install-sh'
configure.ac:28: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build-aux/m4'.
libtoolize: copying file `build-aux/m4/libtool.m4'
libtoolize: copying file `build-aux/m4/ltoptions.m4'
libtoolize: copying file `build-aux/m4/ltsugar.m4'
libtoolize: copying file `build-aux/m4/ltversion.m4'
libtoolize: copying file `build-aux/m4/lt~obsolete.m4'
configure.ac:32: installing 'build-aux/compile'
configure.ac:5: installing 'build-aux/config.guess'
configure.ac:5: installing 'build-aux/config.sub'
configure.ac:9: installing 'build-aux/install-sh'
configure.ac:9: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `build-aux/m4'.
libtoolize: copying file `build-aux/m4/libtool.m4'
libtoolize: copying file `build-aux/m4/ltoptions.m4'
libtoolize: copying file `build-aux/m4/ltsugar.m4'
libtoolize: copying file `build-aux/m4/ltversion.m4'
libtoolize: copying file `build-aux/m4/lt~obsolete.m4'
configure.ac:38: installing 'build-aux/config.guess'
configure.ac:38: installing 'build-aux/config.sub'
configure.ac:48: installing 'build-aux/install-sh'
configure.ac:48: installing 'build-aux/missing'
src/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
You have mail in /var/spool/mail/root
[root@localhost bitcoin]# export BDB_PREFIX='/home/code/bitcoin/db4'
[root@localhost bitcoin]# ./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports nested variables... (cached) yes
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking whether g++ supports C++17 features with -std=c++17... no
checking whether g++ supports C++17 features with +std=c++17... no
checking whether g++ supports C++17 features with -h std=c++17... no
checking whether g++ supports C++17 features with -std=c++1z... no
checking whether g++ supports C++17 features with +std=c++1z... no
checking whether g++ supports C++17 features with -h std=c++1z... no
configure: error: *** A compiler with support for C++17 language features is required.
You have mail in /var/spool/mail/root
[root@localhost bitcoin]# make
make: *** No targets specified and no makefile found.  Stop.
[root@localhost bitcoin]# sudo make install
make: *** No rule to make target `install'.  Stop.
[root@localhost bitcoin]# bitcoin-qt &
[1] 10512
[root@localhost bitcoin]# -bash: bitcoin-qt: command not found

[1]+  Exit 127                bitcoin-qt
[root@localhost bitcoin]# bitcoind
-bash: bitcoind: command not found
HCP
legendary
Activity: 2086
Merit: 4361
October 14, 2021, 05:18:24 AM
#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.
HCP
legendary
Activity: 2086
Merit: 4361
October 13, 2021, 08:12:05 PM
#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.)
newbie
Activity: 15
Merit: 4
October 13, 2021, 12: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?
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
October 13, 2021, 12:28:28 PM
#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.
newbie
Activity: 15
Merit: 4
October 13, 2021, 11:54:04 AM
#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 :/
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
October 13, 2021, 11:37:30 AM
#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?
newbie
Activity: 15
Merit: 4
October 13, 2021, 11:30:16 AM
#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?

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
October 13, 2021, 07:47:40 AM
#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
newbie
Activity: 15
Merit: 4
October 13, 2021, 07:14:45 AM
#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?
newbie
Activity: 15
Merit: 4
October 13, 2021, 04: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
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
October 13, 2021, 04:47:23 AM
#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/
newbie
Activity: 15
Merit: 4
October 13, 2021, 04: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
newbie
Activity: 15
Merit: 4
October 13, 2021, 04: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 ~]#
legendary
Activity: 1932
Merit: 1273
October 13, 2021, 03:41:48 AM
#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.
Pages:
Jump to: