question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FreeBSD install error cannot execute binary file: Exec format error

See original GitHub issue

following 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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
seccommented, Nov 5, 2021
1reaction
wfurtcommented, Nov 5, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found