FreeBSD install error cannot execute binary file: Exec format error
See original GitHub issuefollowing the instructions here and doing a manual install.
I get the error “error cannot execute binary file: Exec format error”
This error would suggest that im trying to run a binary from a different platform when im not. downloaded dotnet-sdk-5.0.402-linux-x64.tar.gz and dotnet-sdk-5.0.208-linux-x64.tar.gz and tried to run both on my amd64 machine and got the same error.
[root@jt ~]# DOTNET_FILE=dotnet-sdk-5.0.208-linux-x64.tar.gz
[root@jt ~]# export DOTNET_ROOT=$(pwd)/dotnet
[root@jt ~]#
[root@jt ~]# mkdir -p "$DOTNET_ROOT" && tar zxf "$DOTNET_FILE" -C "$DOTNET_ROOT"
[root@jt ~]#
[root@jt ~]# export PATH=$PATH:$DOTNET_ROOT
[root@jt ~]# dotnet
ELF binary type "3" not known.
bash: /root/dotnet/dotnet: cannot execute binary file: Exec format error
[root@jt ~]# uname -a
FreeBSD jt 12.2-RELEASE-p6 FreeBSD 12.2-RELEASE-p6 df578562304(HEAD) TRUENAS amd64
Anyone have any suggestions on how to get this to run correctly on FreeBSD
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cannot execute binary file
Hello, I got an error when executing a binary file on FreeBSD 12. Can anyone help? $ ./linux.run ELF binary type "3" not...
Read more >Solved "cannot execute binary file: Exec format error"
In my case, I was trying to run Linux AArch64 GCC binary on a 64-bit architecture. This immediately resulted into cannot execute binary...
Read more >How to handle “cannot execute binary file: Exec format error ...
If you compiled a Golang binary by running go build and then tried to run the executable on another architecture, then you'll possibly...
Read more >10
Getting the error: bash: ./program: cannot execute binary file: Exec format error · linux · bash · ubuntu.
Read more >cannot execute binary file: Exec format error
cannot execute binary file : Exec format error ... During the install I have seen successful execution of the docker binary like this:...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For FreeBSD please follow/read this https://github.com/dotnet/runtime/issues/14537#issuecomment-938220757 😃
Also you can install Linux emulation modules and avoid this particular error. But .NET did not work anyway last time I tried because of platform differences and some unsupported system calls @swannie-eire. FreeBSD is community supported at the moment so the link @sec provided is probably best option.