
{"id":2438,"date":"2017-09-23T01:34:31","date_gmt":"2017-09-23T05:34:31","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=2438"},"modified":"2017-09-23T01:34:31","modified_gmt":"2017-09-23T05:34:31","slug":"dotnetcore-app-on-ubuntu-you-need-libunwind8","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=2438","title":{"rendered":"DotNetCore App on Ubuntu: you need libunwind8"},"content":{"rendered":"<p>DotNetCore provides two types of installs: framework-dependent install and self-contained install.<\/p>\n<p>I tried to compile a hello-world app on Windows and run it on Ubuntu that has neither dotnetcore SDK nor dotnetcore runtime.<br \/>\nWith the original Visual Studio 2017 and dotnetcore 1.1 it did not work, even on Windows. Published folder for &#8220;complete&#8221; app did not even contain an executable file. I had better luck once I upgraded to Visual Studio 2017 version 15.3 and dotnetcore 2.0. The package is 65M uncrompessed, but heck, it contains the whole framework, so that was kind of expected.<\/p>\n<p> Two small notes:<\/p>\n<p>&#8211; I had to mark all files in the app directory as runnable (<code>chmod 755 *<\/code>). Making only the app file runnable did not work. I was lazy and just updated them all.<\/p>\n<p>&#8211; Initially I received this weird error:<\/p>\n<p><code>Failed to load \ufffda\ufffd, error: libunwind.so.8: cannot open shared object file: No such file or directory<br \/>\nFailed to bind to CoreCLR at '\/home\/ikriv\/bin\/dnc\/libcoreclr.so'<\/code><\/p>\n<p>Three squiggle characters after &#8220;Failed to load&#8221; were indeed garbage. I searched the net and found that per <a href=\"https:\/\/github.com\/dotnet\/cli\/issues\/3390\">https:\/\/github.com\/dotnet\/cli\/issues\/3390<\/a> one needs to install libunwind8 package, or else .NET apps won&#8217;t work.<\/p>\n<p><code>sudo apt-get install libunwind8<\/code><\/p>\n<p>did the trick. I wish, however, that the runtime were more explicit about the dependencies it needs. <\/p>\n<p>Overall, the experience with dotnetcore 2.0 was not so bad, I&#8217;d say 4 stars out of 5.<br \/>\nDotnetcore 1.1 gets zero stars, since &#8220;complete&#8221; setup was hopelessly broken, even on Windows.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DotNetCore provides two types of installs: framework-dependent install and self-contained install. I tried to compile a hello-world app on Windows and run it on Ubuntu that has neither dotnetcore SDK <a href=\"https:\/\/ikriv.com\/blog\/?p=2438\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[1],"tags":[],"class_list":["entry","author-ikriv","post-2438","post","type-post","status-publish","format-standard","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2438"}],"version-history":[{"count":3,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2438\/revisions"}],"predecessor-version":[{"id":2441,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2438\/revisions\/2441"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}