I have tried to install it, using the steps written by Hanselman https://www.hanselman.com/blog/RunningASPNETCoreOnGoDaddysCheapestSharedLinuxHostingDontTryThisAtHome.aspx.
But I end up with much more errors than he is describing on this post. Those are the steps I had followed:
- Create an MyApp sample application using Visual Studio. See the image: App Created
Compile the project using Visual Studio. Then this command, to publish files:
dotnet publish -r rhel.6-x64
Upload the files from the published folder to my Linux shared hosting site, see picture: Files Uploaded
From: C:\MyApp\bin\Debug\netcoreapp2.1\rhel.6-x64\publish
to the Linux shared hosting site public_http folder, of course using WinSCP.Then got to my Shared Linux Cpanel and make enable my SSH connections
- Open Putty log on to Linux Shared Hosting server, using my user name and password SSH.
- Give all permits to the file: MyApp to make it executable, as mentioned on Hanselman's post.
- When I execute it, using the instruction as mentioned on Hanselman's post.
First it is complaining for the library: libstdc++6-8.2.1-alt5.x86_64. https://altlinux.pkgs.org/sisyphus/classic-x86_64/libstdc++6-8.2.1-alt5.x86_64.rpm.html I downloaded using wget and put into the folder netcoredeps. Fine.
Second it is complaining for lib64/libc.so.6 version glibc_2.18. I find this: glibc-core-2.27-alt8.x86_64. At https://altlinux.pkgs.org/sisyphus/classic-x86_64/glibc-core-2.27-alt8.x86_64.rpm.html. I downloaded using wget and put into the folder netcoredeps. Fine.
- Then tried to run the app again with ./MyApp and getting:
/ relocation error: /home2/xxxx/public_html/netcoredeps/libc.so.6: symbol _dl_starting_up, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
This netcoredeps folder end up like this: