.NET Standard not installed on Linux? - linux

I use Mono + MonoDevelop on Linux, and I've recently heard about something called .NET Standard. Since the Mono v4.8.0 changelog says that they're adding support for .NET Standard 2.0 (we're now on v5.14 now), I assumed I didn't need to do anything.
When I went to test it out today, I discovered that not only can I not see .NET Standard 2.0 in the list of versions I can use for a .NET Standard 2.0 class library (only up to v1.6 - what happened to Console Apps?), but MonoDevelop claims that I don't have .NET Standard 1.6 installed.
That's ridiculous though - .NET Standard is a standard specification, right? Isn't this like asking me to "Install HTML5"?
Can anyone help me clear up my confusion please?
System Details:
uname -a: Linux Riikaan 4.15.0-34-generic #37-Ubuntu SMP Mon Aug 27 15:21:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Distribution: Ubuntu Desktop 18.04
Mono version: 5.14.0.177
MonoDevelop version: 7.5 (build 1255)
I installed mono and monodevelop via the official apt repository available here.
Screenshots:

Related

building mono-complete 4.6.2 for linux mint 20

Hi the mono docs on the mono-project site are a bit vague to non existent on installation on linux
I want to try installing mono-4.6.2 amd64 on linux mint 20 , which had mono-6.8
I've tried the obvious of loading all the repos for tricia (bionic) on the apt source list
with all the current repos hashed out.
the problem I'm trying to solve is memory leaks , which after sqlite , mono is also causing.
APT used to respond to wildcards, looks like that has gone, and loading dependent packages
is not working well.
I have the current mono-6.8 removed, and I have downloaded MonoFramework MDK-4.6.2
that packed contains mono.pkg,Resources,and distribution.
Where do I find the info for installing in linux, or someone here who can provide that info
please
linux Mint 19.3 was a great edition , very stable, but linux mint 20 is the inverse :(
I'm finding lots of problems, and I know I'm not alone.
Thanks
So obviously the first comment you get when you ask about a technology more than 5 year old on stack overflow is to migrate to another one, namely .NET Core here.
Well, migrating a big project from Mono to .Net Core is harsh, so if the only problem you have is performance / memory leak issues when upgrading mono versions, it's worth wondering if your linux kernel is up-to-date ? For me it was the main issue. after upgrating kernel from 3.16 to 4.19, mono/mod_mono in latest versions are running like a charm, and I regret everyday having spent so much time and efforts on migrating to .Net Core, migrating one by one the many 3rd party libraries that were unmaintened or without .Net Core support.
I don't think my kernel is that old
Linux richard-Inspiron-3580 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Current version of mono is mono-6.10 , suspect libgdiplus from comments on github

`dotnet new command` in openSuse causes `No usable version of the libssl was found` error

I'm trying to develop .NET Core in openSuse. I did install the SDK and everything in tutorials. Now, when I try to run dotnet new console command, I get this error:
No usable version of the libssl was found
Aborted (core dumped)
I found this answer: (.NET Core 2.1 SDK Linux x64 No usable version of the libssl was found), but didn't get what should I do to solve problem. They seems are deep-linuxer (which I'm not, I'm just trying to learn linux). Have any idea how to run the command?
UPDATE: System info:
openSUSE Leap 15.0
Kernel Version 4.12.14-lp150.12.22-default
OS Type:64-bit
I was having the same problem running sqlpackage on Ubuntu 20.04 while dotnet was working regularly.
dotnet is distributed through apt as well as sqlserver, but for some reasons sqlpackage is instead distributed via zip here (https://learn.microsoft.com/en-us/sql/tools/sqlpackage-download?view=sql-server-ver15) and is still affected by missing libssl1.0.
Solved with
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.6_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.6_amd64.deb
Can you install the libopenssl1_0_0 packages? .NET Core should pick it up and use it.
A slightly longer explanation for anyone who is curious:
OpenSSL is one of the most common cryptographic libraries used on Linux. It has multiple versions. Version 1.0 is kind of old, but heavily used. 1.1 is the newer version that was (relatively) recently released. 1.0 and 1.1 are not compatible. An application that expects 1.0 can not build against 1.1, nor run against it.
.NET Core 2.1, and all earlier versions only support OpenSSL 1.0.
Many Linux distributions are starting to make OpenSSL 1.1 the new default. But most of them still have a package for 1.0. So you just need to find and install that. On Fedora it's compat-openssl10. For openSuSE, it's libopenssl1_0_0. Then .NET Core will find it, pick it up and use it automatically.
Edit: As of March 2019, this shouldn't be required. We have updated .NET Core 2.1 and later to pick up and work with either OpenSSL 1.1 or 1.0 (whatever is available). So this problem should no longer happen with recent releases of .NET Core.
Ubuntu 22.04
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb
Still get this on Fedora 30 (with compat-openssl10 installed) when using the sqlpackage tool (https://learn.microsoft.com/en-us/sql/tools/sqlpackage-download?view=sql-server-2017).
$ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 2.2.203
Commit: e5bab63eca
Runtime Environment:
OS Name: fedora
OS Version: 30
OS Platform: Linux
RID: linux-x64
Base Path: /usr/share/dotnet/sdk/2.2.203/
Host (useful for support):
Version: 2.2.4
Commit: f95848e524
.NET Core SDKs installed:
2.2.203 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.4 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.4 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Dotnet works fine on it's own. But running sqlpackage does not work:
$ sqlpackage /tsn:localhost /tu:xx /tp:yyy /A:Import /tdn:mydb /sf:mydb.bacpac
Importing to database 'mydb' on server 'localhost'.
No usable version of the libssl was found
Aborted (core dumped)
I looking up "No usable version of the libssl was found" in github. You'll find many variants of the .Net core security library in C, each varient has very specific dll loads for exact libssl libraries and everything has to match perfect despite it being named differently in many.
For raspberry pi / debian it wants libssl 1.0.2 exactly, nothing else.
sudo apt-get install libssl1.0.2
should do the trick for the pi! I can't speak to other variants.

Need GGTS 3.5.1 for Linux

For reasons I can't go into here, I'm in dire need of getting a copy of a Linux x86_64 GGTS release that supports Grails 2.3. I have found a 3.5.1 release for Windows on this forum but I really need the Linux 3.5.1 version.
The Linux 3.5.1 x86_64 GGTS release that supports Grails 2.3 can be uploaded using this link:
groovy-grails-tool-suite-3.5.1.RELEASE-e4.4-linux-gtk-x86_64

Sun JDK /Open JDK on Cygwin

Is any version of Sun JDK or Open JDK available to be installed on cygwin.
Reason I am looking for this option is: There are many tools (e.g. jStack, jMap) which are available in unix versions of JDK but not for windows version. I need to exploit the same on my windows machine using Cygwin if possible.
The Windows version should work alright, and is now available pre-built
https://github.com/alexkasko/openjdk-unofficial-builds/downloads
The OpenJDK site has build / compile instructions for a Cygwin environment:
I have however not encountered pre-built binaries that are intended to run on CygWin - yet.

How to install mapnik on SLES 11 64 bit?

For a customer I have to install a django webserver on SUSE Linux Enterprise Server 11, 64 bit (short: SLES 11). Our application makes use of mapnik 0.7.0. My development environment is Ubunto 10.44.
How do I install mapnik 0.7.0 on my SLES 11 machine? My first difficulty is to compile boost. Maybe it's handy to use SUSE Linux Enterprise Desktop, or OpenSUSE to compile components?
Several instructions on the web:
Official Mapnik instructions:
http://trac.mapnik.org/wiki/LinuxInstallation
For SLES 10:
http://lists.berlios.de/pipermail/mapnik-users/2010-January/002810.html
(for some redhat distro)
http://gis.638310.n2.nabble.com/Bulding-mapnik-on-RHEL5-td4612325.html
I've started a wiki page for Mapnik on Suse here: http://trac.mapnik.org/wiki/OpenSuseInstallation.
I don't have access to SUSE proper - so hopefully a guide built for the latest Open Suse release will work.
I recommend installing Mapnik 0.7.1 (latest official release).
If you have specific problems with compiling boost then I recommend sending a mail to mapnik-users and I can update the above wiki page with any relevant info.

Resources