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

Run external binary #66

Open
mjshin opened this issue Sep 20, 2020 · 1 comment
Open

Run external binary #66

mjshin opened this issue Sep 20, 2020 · 1 comment

Comments

@mjshin
Copy link

mjshin commented Sep 20, 2020

Hello all,

I pulled openwrtorg/rootfs and ran it like this
docker run --rm -it -v /home/mjshin/MyCode:/tmp openwrtorg/rootfs

In /tmp, I tried to run my own linux based application but it could not work well.
root@ca16d6d79408:/tmp# ls -al hello
-rwxrwxr-x 1 1000 1000 16688 Sep 20 03:16 hello
root@ca16d6d79408:/tmp# ./hello
/bin/ash: ./hello: not found
root@ca16d6d79408:/tmp#

What was wrong in my case ?

Thanks,
Myungjoon

@aparcar
Copy link
Member

aparcar commented Sep 20, 2020

OpenWrt uses musl rather than glibc, are you sure you compiled your binary correctly? Generally it is possible to run binaries like that.

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