Skip to content

Cannot execute dotnet on Debian 8.7 #467

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

Closed
TheRealPiotrP opened this issue Feb 6, 2017 · 17 comments
Closed

Cannot execute dotnet on Debian 8.7 #467

TheRealPiotrP opened this issue Feb 6, 2017 · 17 comments

Comments

@TheRealPiotrP
Copy link
Contributor

Moving from https://github.com/dotnet/cli/issues/5586 on behalf of @jinhale
CLI is Yet Another NetCore App, and underlying platform support is tied to dotnet core as a whole.


Steps to reproduce

Install Debian version 8.7 Linux (debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt9-2 (2015-04-13) i686 GNU/Linux)
Run the steps from https://www.microsoft.com/net/core#linuxdebian, but use su -c "#command" in place of sudo #command.

Expected behavior

dotnet new should initialize a "Hello world!" CLI application.

Actual behavior

bash: /usr/local/bin/dotnet: cannot execute binary file: Exec format error

Environment data

dotnet --info output:
bash: /usr/local/bin/dotnet: cannot execute binary file: Exec format error

@Petermarcu
Copy link
Member

@gkhanna79, @janvorli , Can someone take a look at why we don't just work on 8.7?

@gkhanna79
Copy link
Member

Exec format error

@jinhale This error usually means that one is trying to execute binaries corresponding to an architecture that is not supported on the machine. Can you please confirm that the host machine and binary architectures are the same? That said, please also help confirm the following:

  1. Your steps above work on Debian 8.2
  2. Are you able to use https://dotnetcli.blob.core.windows.net/dotnet/master/Binaries/Latest/dotnet-linux-x64.latest.tar.gz on Debian 8.7 to execute a basic HelloWorld application?

@jinhale
Copy link

jinhale commented Feb 8, 2017

@gkhanna79 I'm currently using the i686 version, which may be the problem. I'll try Debian for AMD 64 and let you know if that fixes the problem. I'm not sure how to assess the binary architecture from https://go.microsoft.com/fwlink/?LinkID=835021. That appears to be a 64 bit binary when I tried to download it from my browser. I'm now guessing Microsoft assumes we all use a 64 bit processor and kernel.

@gkhanna79
Copy link
Member

64bit binaries do require a 64bit machine running 64bit OS. Please do share your findings once you have tried the suggestion.

@Petermarcu
Copy link
Member

@jinhale , yes, we have focused our attention on what gets the most people up and running. We haven't gotten to every processor, kernel, c library, etc version of Linux. We are more that happy to work with community members who want to help bring up builds for other things.

@jinhale
Copy link

jinhale commented Feb 14, 2017

I couldn't get a necessary wireless driver to work with the 64 bit version of Debian, Ubuntu, or CentOS so I abandoned that. I did get dotnet to work on 64 bit Fedora 24. I feel resolved on the issue.

I would have liked to know before hand that dotnet was a 64-bit binary on Linux, but maybe I'm the only one that tried to install dotnet on a 32-bit Linux machine without realizing the dotnet binary was 64-bit.

@Petermarcu
Copy link
Member

That is good feedback. Where were you downloading from? This set of pages? https://www.microsoft.com/net/core#linuxdebian

@Petermarcu
Copy link
Member

Nevermind, I see you said that initially. I'll get your feedback to the folks that manage that site.

@gkhanna79
Copy link
Member

@jinhale Please have a look at Daily Build section at https://github.com/dotnet/core-setup/blob/master/README.md that describes the architectures we support for various platforms.

@Petermarcu
Copy link
Member

I'm going to close this. I opened an issue internally where the site is built to make sure it gets updated to clarify the x86, x64, etc on download links and instructions.

@chikehenderson
Copy link

I'm on old 32 bit hardware using debian 8, trying to get SOMETHING to run..

@Petermarcu
Copy link
Member

We don't have an official build of x86 (32-bit) Linux.

@chikehenderson
Copy link

chikehenderson commented Jul 19, 2017 via email

@Petermarcu
Copy link
Member

Samsung and the community have been working on building Linux x86. @jyoungyun do you have any advice on how someone could build an x86 linux build or can you point to a place they are being built?

@chikehenderson
Copy link

chikehenderson commented Jul 19, 2017 via email

@Petermarcu
Copy link
Member

@janvorli may also be able to give advice.

@chikehenderson
Copy link

chikehenderson commented Jul 19, 2017 via email

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

5 participants