sdk: Problem running dotnet on Ubuntu 14.04

Steps to reproduce

I followed the installation instructions at https://www.microsoft.com/net/core#ubuntu.

Actual behavior

Facing the following issue:

dotnet new Failed to resolve library symbol hostfxr_main, error: dotnet: undefined symbol: hostfxr_main Segmentation fault (core dumped)

Environment data

uname -a Linux ubuntu 3.19.0-61-generic dotnet/cli#69~14.04.1-Ubuntu SMP Thu Jun 9 09:09:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

dotnet --info output:

dotnet --info Failed to resolve library symbol hostfxr_main, error: dotnet: undefined symbol: hostfxr_main Segmentation fault (core dumped)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 37 (10 by maintainers)

Commits related to this issue

Most upvoted comments

Until fixed you may usehttps://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/Latest/dotnet-dev-ubuntu-x64.latest.tar.gz

Is this fixed or am I missing something here? I’m running into the same issues. Tried the work-arounds not working around…

I was able to work around. Here are the steps that needs to be added to .travis.yml:

addons:
  apt:
    packages:
    - gettext
    - libcurl4-openssl-dev
    - libicu-dev
    - libssl-dev
    - libunwind8
    - zlib1g
...
install:
  - mkdir dotnet
  - curl -sSL https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview1/scripts/obtain/dotnet-install.sh | bash /dev/stdin --version 1.0.0-preview1-002702 --install-dir ./dotnet
  - export PATH=`pwd`/dotnet:$PATH

@brthor @blackdwarf - Thanks for help!

For the preview1 bits yes install scripts should work, the preview2 bits are working on ubuntu14 and ubuntu16 via apt-get (confirmed today)

Folks could consume those like so: apt-get install dotnet-dev-1.0.0-preview2-003118

Ah I see @hovsepm @TheSalarKhan @blackdwarf here is an alternative workaround

Install the preview2 sdk package apt-get install dotnet-dev-1.0.0-preview2-003118

And then install the preview1 sharedframework package so your app will continue to work apt-get install dotnet-sharedframework-microsoft.netcore.app-1.0.0-rc2-3002702

using apt-get install dotnet-dev-1.0.0-preview2-003118 does not solve the issue for me. Here is the output

The specified framework 'Microsoft.NETCore.App', version '1.0.0-rc2-3002702' was not found.
  - Check application dependencies and target a framework version installed at:
      /usr/share/dotnet/shared/Microsoft.NETCore.App
  - The following versions are installed:
      1.0.0
  - Alternatively, install the framework version '1.0.0-rc2-3002702'.
SUMMARY: Total: 1 targets, Passed: 0, Failed: 1.

Travis run - https://travis-ci.org/Azure/autorest/builds/139372235