aclap-dev / vdhcoapp

Companion application for Video DownloadHelper browser add-on
GNU General Public License v2.0
1.56k stars 266 forks source link

bash cannot find vdhcoapp file? #228

Open democraz20 opened 1 month ago

democraz20 commented 1 month ago

"bash: ./vdhcoapp: cannot execute: required file not found" when running ./vdhcoapp install at first i thought this was a shell problem so i tried with sh and ash but both returned similar errors i looked the error up on google and apparently it's because of CRLF line endings, but the vdhcoapp file is not a script right? it's a compiled executable (FYI i have ran chmod +x vdhcoapp but the problem persists. i am using the aarch64 latest release of vdhcoapp)

paulrouget commented 1 month ago

i am using the aarch64 latest release of vdhcoapp

Are you on a ARM computer?

If not, that would explain that exact error message. Don't use aarch, but the Linux x86_64 version: https://github.com/aclap-dev/vdhcoapp/releases/tag/v2.0.19

democraz20 commented 1 month ago

Yes, I am on an ARM computer

paulrouget commented 1 month ago

Yes, I am on an ARM computer

Can you do this for me:

file ./vdhcoapp
uname -a
democraz20 commented 1 month ago
./vdhcoapp: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=4786c866c75e9a87a389393cd98b619259af30dd, for GNU/Linux 3.7.0, stripped
google-kukui:~/Desktop/vdhcoapp/vdhcoapp-2.0.19$ uname -a
Linux google-kukui 6.6.25-mt8183 #2-postmarketos-mediatek-mt8183 SMP PREEMPT Mon May  6 23:44:56  aarch64 Linux

as you can see the file IS there but bash says otherwise for some reason

paulrouget commented 1 month ago

as you can see the file IS there but bash says otherwise for some reason

The reason is because of incompatible architectures.

Can you do file /bin/ls and file ./vdhcoapp and show me how different the output is?

democraz20 commented 1 month ago

file /bin/ls shows up as symlinks so here's with /bin/bash

/bin/ls: symbolic link to /bin/busybox
google-kukui:~/Desktop/vdhcoapp/vdhcoapp-2.0.19$ file /bin/bash
/bin/bash: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-aarch64.so.1, BuildID[sha1]=5d5e4b85869bb1b478808368d2bc74ed7ee5e56d, stripped
google-kukui:~/Desktop/vdhcoapp/vdhcoapp-2.0.19$ file ./vdhcoapp 
./vdhcoapp: ELF 64-bit LSB executable, ARM aarch64, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=4786c866c75e9a87a389393cd98b619259af30dd, for GNU/Linux 3.7.0, stripped

i might be missing something but to me it looks the same (ELF 64-bit executable ARM aarch64)

democraz20 commented 1 month ago

any updates?

paulrouget commented 3 weeks ago

I think it's the difference between ELF 64-bit LSB pie executable and ELF 64-bit LSB executable. You could build the coapp yourself.

What computer are you using?

democraz20 commented 3 weeks ago

it's an ARM chromebook that i managed to install Alpine Linux on, so basically it should act just as any ARM linux distros do you happen to have any compile guides? i basically have no idea about javascript and compiling programs from it.

paulrouget commented 2 weeks ago

hm, alpine is using musl libc doesn't it? No glib.

Maybe try this https://wiki.alpinelinux.org/wiki/Running_glibc_programs

Or you can run ./build.sh and see where it goes.