Bitcoin Forum
December 12, 2024, 08:09:57 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: bitcoind: command not found  (Read 361 times)
scndsn (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 4


View Profile
October 22, 2021, 01:22:55 PM
 #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
NotATether
Legendary
*
Offline Offline

Activity: 1820
Merit: 7476


Top Crypto Casino


View Profile WWW
October 22, 2021, 02:02:13 PM
Merited by ABCbits (2)
 #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.

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

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


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

Activity: 15
Merit: 4


View Profile
October 22, 2021, 02:04:03 PM
 #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.


NotATether
Legendary
*
Offline Offline

Activity: 1820
Merit: 7476


Top Crypto Casino


View Profile WWW
October 22, 2021, 02:26:21 PM
 #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.

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

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


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

Activity: 15
Merit: 4


View Profile
October 26, 2021, 07:00:36 PM
Last edit: October 27, 2021, 06:27:18 AM by scndsn
 #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 <boost/version.hpp>. 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
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
October 29, 2021, 09: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


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
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!