Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash cannot find vdhcoapp file? #228

Open
democraz20 opened this issue Jun 15, 2024 · 10 comments
Open

bash cannot find vdhcoapp file? #228

democraz20 opened this issue Jun 15, 2024 · 10 comments

Comments

@democraz20
Copy link

"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
Copy link
Member

paulrouget commented Jun 17, 2024

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
Copy link
Author

Yes, I am on an ARM computer

@paulrouget
Copy link
Member

Yes, I am on an ARM computer

Can you do this for me:

file ./vdhcoapp
uname -a

@democraz20
Copy link
Author

./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
Copy link
Member

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
Copy link
Author

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
Copy link
Author

any updates?

@paulrouget
Copy link
Member

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
Copy link
Author

democraz20 commented Jul 6, 2024

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
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants