What's new

how to run a program written in go language?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

saccleo

Regular Contributor
i want to run some program written in go language ( lego, an acme client for, let's encrypt) . i download an released program (https://github.com/xenolf/lego/releases/download/v1.1.0/lego_v1.1.0_linux_armv7.tar.gz) and run it.
i got an error" illegal instructions"
i thought recompile may solve the problem. so I installed go language by using entware source(opkg install go).
when i run go in a terminal i got the same error as mentioned above.
so what's wrong with the go program?
 
If your model supports Let's Encrypt, there's already an acme client in there (acme-client).
 
If your model supports Let's Encrypt, there's already an acme client in there (acme-client).

acme-client use http-01 challenge to issue a certification. unfortunately, my ISP block port 80, so i have to use other client.
 
i have resolved the problem by recompiling the program with option GOARM=5 in a docker under debian linux.
then it can run in my router.
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top