0

I am trying to install sdr++, but I dont think that matters. after installing the nightly apt package on my rpi 4, I attempted to run the main bianary sdrpp but got a file not found error:

pi@sdr:~ $ /usr/bin/sdrpp
-bash: /usr/bin/sdrpp: No such file or directory
pi@sdr:~ $ ls -li /usr/bin/sdrpp
43166 -rwxr-xr-x 1 pi pi 8144 Jul 23 23:58 /usr/bin/sdrpp
  • As far as I can tell there arent any strange chars (ѕ vs s, diffrent chars but look alike)
  • These two commands were exicuted shortly after one another, so its not like the file was suddenly created
  • Still happens after a restart
  • I think I got this same bug a long time ago trying to run rust in a replit, I never fixed it.
  • File reports it as a ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=c4fea3dbc91de8553d404ed70b214efe2a234f39, for GNU/Linux 3.2.0, not stripped and im pretty sure that's accurate

Other info:

pi@sdr:~ $ uname -a
Linux sdr 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
pi@sdr:~ $ whereis sdrpp
sdrpp: /usr/bin/sdrpp /usr/lib/sdrpp /usr/share/sdrpp
pi@sdr:~ $ ls -li /usr/bin/sdrpp /usr/lib/sdrpp /usr/share/sdrpp
 43166 -rwxr-xr-x 1 pi pi 8144 Jul 23 23:58 /usr/bin/sdrpp

/usr/lib/sdrpp:
[...]

/usr/share/sdrpp:
[...]
pi@sdr:~ $

( [...] indicates the output was manualy trimmed by me )

makerio
  • 26
  • 5
  • 3
    Does this answer your question? [No such file or directory? But the file exists!](https://askubuntu.com/questions/133389/no-such-file-or-directory-but-the-file-exists) – MechMK1 Aug 23 '23 at 21:40
  • 1
    I think this is relevant, because you are trying to run a 32-bit executable in a 64-bit system. – MechMK1 Aug 23 '23 at 21:41
  • i will try this – makerio Aug 23 '23 at 22:11
  • @MechMK1 i suspect this may be an issue on part of sdrpp, as they ship a 32-bit exe that has mandatory 64-bit dependencies. – makerio Aug 23 '23 at 22:39
  • What does `/lib/ld-linux-armhf.so.3 /usr/bin/sdrpp` do? If it says `/lib/ld-linux-armhf.so.3` is not found, then you do not have 32-bit support. – rando Aug 23 '23 at 22:39
  • 1
    @makerio Would compiling it yourself from source be an option? – MechMK1 Aug 23 '23 at 22:44
  • 1
    @makerio I would highly recommend compiling from source. The nightly build never worked for me, and it only took ≈ 20 mins on my system. However, I think this question belongs on the Raspberry Pi Stack Exchange. – rando Aug 23 '23 at 22:47
  • @rando I'm so used to posting to Ubuntu i didn't even realize there was a rpi stack exchange. plus, I've been having even more trouble installing sdrpp on 32bit raspbian. did you use 32 or 64 bit raspbian? – makerio Aug 24 '23 at 01:37
  • 64-bit Raspberry Pi OS – rando Aug 24 '23 at 02:40
  • @rando thank you! – makerio Aug 24 '23 at 03:08
  • As it seems you've solved your problem, please close this question. – rando Aug 24 '23 at 13:10

1 Answers1

0

to those coming from google, sorry as i don't have an answer for you.

this problem was circumvented by abandoning sdrpp for a similar program.

  • thank you to @rando for noting that i may have been missing a library (and i suspect that that was the issue), suggesting that i compile from source.
  • thank you to @MechMk1 for noting that i had attempted to run a 32 bit executable on a 64 bit machine.
makerio
  • 26
  • 5