Bitcoin Forum
June 19, 2024, 03:24:13 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: /ur/local/bin/bitcoind not found Ubuntu Desktop for Raspberry Pi4 on: May 17, 2024, 01:52:57 PM

Does it work when you extract the bitcoin core tarball to your home folder, run chown with your user and group, and try to run that bitcoind?

I mean, I doubt this will change anything, given that the file is world-executable, but its worth a shot.

Also try checking file output of other files in /usr/bin to make sure that they match with the one you got for bitcoind.

So, I ended up upgrading my Raspberry Pi 4 to a 5 and had to start everything from scratch (installing the OS), and now I can execute those binaries without a problem. For me, what was happening is still unknown. If I have the time, I will try what you suggested and report my findings here.

Thank you for your support nevertheless Smiley
2  Bitcoin / Bitcoin Technical Support / Re: /ur/local/bin/bitcoind not found Ubuntu Desktop for Raspberry Pi4 on: May 03, 2024, 09:34:51 PM
And it still does not work?

no Sad
3  Bitcoin / Bitcoin Technical Support / Re: /ur/local/bin/bitcoind not found Ubuntu Desktop for Raspberry Pi4 on: May 02, 2024, 08:25:19 PM
What is your PATH environment variable set to? Check it with
Code:
echo $PATH

 What do you get if you do
Code:
which bitcoind
which bitcoin-cli

Output

Code:
echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games

Code:
which bitcoind
/usr/local/bin/bitcoind

Code:
which bitcoin-cli
/usr/local/bin/bitcoin-cli


Also post the output of:

Code:
file /usr/local/bin/bitcoind
stat /usr/local/bin/bitcoind

as LDD should not fail unless the file isn't actually a program.

It should say something like:

Code:
/usr/local/bin/bitcoind: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, stripped

Output

Code:
file /usr/local/bin/bitcoind
/usr/local/bin/bitcoind: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, stripped

Code:
stat /usr/local/bin/bitcoind
  File: /usr/local/bin/bitcoind
  Size: 14473240   Blocks: 28272      IO Block: 4096   regular file
Device: b302h/45826d Inode: 131453      Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2024-05-02 21:16:02.485079758 +0100
Modify: 2024-05-02 21:16:02.533078916 +0100
Change: 2024-05-02 21:16:02.533078916 +0100
 Birth: 2024-05-02 21:16:02.485079758 +0100

I also created a small bash script into /usr/local/bin, and I was able to run
4  Bitcoin / Bitcoin Technical Support / Re: /ur/local/bin/bitcoind not found Ubuntu Desktop for Raspberry Pi4 on: May 01, 2024, 11:42:33 PM
As the error suggests, the files are not in /usr/local/bin and so cannot be found to be executed. Make sure that they are there.

What commands have you specifically done in order to try to install the binaries, and what is their output?



This is an issue with your own installation, no new/alternate version of Bitcoin Core is going to fix this for you.

I know that is my installation, but I don't know what I'm doing wrong.

The files are there, this output is from running ls -la inside /usr/local/bin

Code:
-rwxr-xr-x  1 pi pi  2150424 Apr 15 17:28 bitcoin-cli
-rwxr-xr-x  1 pi pi 40236344 Apr 15 17:28 bitcoin-qt
-rwxr-xr-x  1 pi pi  3928144 Apr 15 17:28 bitcoin-tx
-rwxr-xr-x  1 pi pi  1855064 Apr 15 17:28 bitcoin-util
-rwxr-xr-x  1 pi pi  8966416 Apr 15 17:28 bitcoin-wallet
-rwxr-xr-x  1 pi pi 14473240 Apr 15 17:28 bitcoind

The commands were:

Code:
$ tar -xvf bitcoin-$VERSION-aarch64-linux-gnu.tar.gz
$ sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-27.0/bin/*

I also tried to copy all content from the tar.gz by running:

Code:
$ sudo install -m 0755 -o root -g root -t /usr/local bitcoin-27.0/*

But some folders were omitted. Then I try copying with

Code:
cp -ra bitcoin-27.0/* /usr/local
5  Bitcoin / Bitcoin Technical Support / Re: /ur/local/bin/bitcoind not found Ubuntu Desktop for Raspberry Pi4 on: May 01, 2024, 11:08:52 PM
Hello.

I'm bumping this issue because I still have this issue with Bitcoin Core version 27, and I have tried everything mentioned here.

bicoin core release: bitcoin-27.0-aarch64-linux-gnu.tar.gz

When I try to execute the binaries

Code:
$ bitcoin-cli --version # same when trying to execute bitcoind and trying to execute directly from the /usr/local/bin folder
-bash: /usr/local/bin/bitcoin-cli: No such file or directory

I also tried @NotATether approach by cp -ra all files directly to /usr/local, and it still didn't work. FYI, this approach made the files be owned by my user, not by the root.

Code:
-rwxr-xr-x  1 pi pi  2150424 Apr 15 17:28 bitcoin-cli
-rwxr-xr-x  1 pi pi 40236344 Apr 15 17:28 bitcoin-qt
-rwxr-xr-x  1 pi pi  3928144 Apr 15 17:28 bitcoin-tx
-rwxr-xr-x  1 pi pi  1855064 Apr 15 17:28 bitcoin-util
-rwxr-xr-x  1 pi pi  8966416 Apr 15 17:28 bitcoin-wallet
-rwxr-xr-x  1 pi pi 14473240 Apr 15 17:28 bitcoind

Other information:

Code:
$ ldd /usr/local/bin/bitcoind
not a dynamic executable

Code:
$ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

I'm following this tutorial https://raspibolt.org/guide/bitcoin/bitcoin-client.html

I run out of ideas :\

Any suggestions?

Thank you
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!