Skip to content

Can't run a simple Hello Word in Alpine Linux (netcoreapp2.1) #13287

Closed

Description

@AreYouQQ

virtualbox_2018-06-01_16-07-56

SDK Version: 2.1.300
In Windows OS,I build it and It run OK, ( Tested it In Centos 7.0 it run OK )
But,
First, Alpine Linux use the newest Alpine version .net core runtime
But I put all files in Release Directory to Alpine Linux,When I run it, I get a error (Top Picture)

Activity

  1. janvorli commented on Jun 1, 2018

    @janvorli
    Member

    Based on the log above, you need to install the libintl package (apk add libintl)

  2. AreYouQQ commented on Jun 1, 2018

    @AreYouQQ
    Author

    virtualbox_2018-06-01_17-30-33

    after I run "Apk add libintl ",
    It also has error

  3. AreYouQQ commented on Jun 1, 2018

    @AreYouQQ
    Author

    when I "apk add icu" ,it run OK
    Thanks

  4. janvorli commented on Jun 1, 2018

    @janvorli
    Member

    You need to install all the prerequisite packages: icu, openssl, krb5, curl, zlib. Optionally lttng-ust too.

  5. janvorli commented on Jun 1, 2018

    @janvorli
    Member

    The openssl, krb5 and curl are needed if you use HTTPS / crypto stuff.

  6. AreYouQQ commented on Jun 1, 2018

    @AreYouQQ
    Author
  7. janvorli commented on Jun 1, 2018

    @janvorli
    Member

    @AreYouQQ right, I have not noticed that that site is missing details on Alpine installation. I'll make sure we fix that.

  8. janvorli commented on Jun 21, 2019

    @janvorli
    Member

    @richlander the issue here is that on the http://dot.net site, we don't list dependencies that need to be installed on Alpine Linux to be able to use .NET Core. We don't even list them on https://docs.microsoft.com/cs-cz/dotnet/core/linux-prerequisites?tabs=netcore30.
    So unless people use our docker images, they are clueless on what to install.
    Could you please look into adding such doc or find someone who could do that? I am assigning this issue to you for now.

  9. transferred this issue fromdotnet/coreclron Jul 8, 2019
  10. added and removed
    ⌚ Not Triaged
    on Jul 8, 2019
  11. 12 remaining items

  12. modified the milestones: March 2020, April 2020 on Mar 30, 2020
  13. NikolaMilosavljevic commented on Mar 30, 2020

    @NikolaMilosavljevic
    Contributor

    According the following page Alpine Linux 3.7+ is supported with .NET Core 2.1:

    https://github.com/dotnet/core/blob/master/release-notes/2.1/2.1-supported-os.md

    @leecow is there an installation page for .NET Core 2.1 for Alpine Linux? It seems that there are additional dependencies that need to be documented.

  14. Thraka commented on Apr 28, 2020

    @Thraka
    Contributor

    ping @leecow

  15. removed this from the April 2020 milestone on Apr 28, 2020
  16. added
    waiting-on-feedback
    on Apr 28, 2020
  17. janvorli commented on Apr 29, 2020

    @janvorli
    Member

    Let me at least put the list of runtime dependencies here (I've verified them with a bare bones Alpine docker image):

    For .NET Core 2.1 and 3.1

    icu-libs (this is not needed if globalization is disabled)
    krb5-libs
    libintl
    libssl1.1 (for Alpine >= 3.9 or libssl 1.0 for older ones)
    libstdc++
    lttng-ust
    numactl (optional, useful only for devices with NUMA enabled)
    zlib
    
  18. janvorli commented on Apr 29, 2020

    @janvorli
    Member

    is there an installation page for .NET Core 2.1 for Alpine Linux?

    There is a link to x64 Alpine installation page for 2.1 here: https://dotnet.microsoft.com/download/dotnet-core/2.1
    Similar for 3.1 here:
    https://dotnet.microsoft.com/download/dotnet-core/3.1

    However it doesn't list the dependencies.

  19. Thraka commented on Apr 30, 2020

    @Thraka
    Contributor

    @rbhanda @leecow Can you comment?

  20. janvorli commented on Apr 30, 2020

    @janvorli
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

install-deployment/subsvcwaiting-on-feedback

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions