Mono install linux ubuntu

Download

Source code is available on GitHub (viewing only) or as a Tarball.

Mono for macOS is available as a Mac Package (.pkg)

Please refer to the installation guide for more information about how to install and configure your Mono environment.

Supported on macOS 10.9 and later. Check the uninstall instructions if you want to remove Mono from your Mac.

1 Add the Mono repository to your system

The package repository hosts the packages you need, add it with the following commands.

Note: the packages should work on newer Ubuntu versions too but we only test the ones listed below.

Ubuntu 20.04 (amd64, armhf, arm64, ppc64el)

sudo apt install ca-certificates gnupg sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu preview-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list sudo apt update

Ubuntu 18.04 (i386, amd64, armhf, arm64, ppc64el)

sudo apt install ca-certificates gnupg sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu preview-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list sudo apt update

Ubuntu 16.04 (i386, amd64, armhf, arm64, ppc64el)

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF sudo apt install apt-transport-https ca-certificates echo "deb https://download.mono-project.com/repo/ubuntu preview-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list sudo apt update

2 Install Mono

sudo apt install mono-devel

The package mono-devel should be installed to compile code.

The package mono-llvm-support should be installed for LLVM JIT/AOT support. See here for more about LLVM Mono.

The package mono-complete should be installed to install everything — this should cover most cases of «assembly not found» errors.

The package mono-dbg should be installed to get debugging symbols for framework libraries — allowing you to get line numbers in stack traces.

The package referenceassemblies-pcl should be installed for PCL compilation support — this will resolve most cases of «Framework not installed: .NETPortable» errors during software compilation.

The package ca-certificates-mono should be installed to get SSL certificates for HTTPS connections. Install this package if you run into trouble making HTTPS connections.

The package mono-xsp4 should be installed for running ASP.NET applications.

3 Verify Installation

After the installation completed successfully, it’s a good idea to run through the basic hello world examples on this page to verify Mono is working correctly.

Читайте также:  Оболочки для линукс минт

Notes

Mono on Linux before 3.12 by default didn’t trust any SSL certificates so you got errors when accessing HTTPS resources. This is not required anymore as 3.12 and later include a new tool that runs on package installation and syncs Mono’s certificate store with the system certificate store (on older versions you had to import Mozilla’s list of trusted certificates by running mozroots —import —sync ). Some systems are configured in a way so that the necessary package isn’t pulled in when Mono is installed, in those cases make sure the ca-certificates-mono package is installed.

1 Add the Mono repository to your system

The package repository hosts the packages you need, add it with the following commands.

Note: the packages should work on newer Debian versions too but we only test the ones listed below.

Debian 10 (i386, amd64, armhf, arm64, armel, ppc64el)

sudo apt install dirmngr ca-certificates gnupg sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/debian preview-buster main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list sudo apt update

2 Install Mono

sudo apt install mono-devel

The package mono-devel should be installed to compile code.

The package mono-llvm-support should be installed for LLVM JIT/AOT support. See here for more about LLVM Mono.

The package mono-complete should be installed to install everything — this should cover most cases of «assembly not found» errors.

The package mono-dbg should be installed to get debugging symbols for framework libraries — allowing you to get line numbers in stack traces.

The package referenceassemblies-pcl should be installed for PCL compilation support — this will resolve most cases of «Framework not installed: .NETPortable» errors during software compilation.

The package ca-certificates-mono should be installed to get SSL certificates for HTTPS connections. Install this package if you run into trouble making HTTPS connections.

The package mono-xsp4 should be installed for running ASP.NET applications.

3 Verify Installation

After the installation completed successfully, it’s a good idea to run through the basic hello world examples on this page to verify Mono is working correctly.

Notes

Mono on Linux before 3.12 by default didn’t trust any SSL certificates so you got errors when accessing HTTPS resources. This is not required anymore as 3.12 and later include a new tool that runs on package installation and syncs Mono’s certificate store with the system certificate store (on older versions you had to import Mozilla’s list of trusted certificates by running mozroots —import —sync ). Some systems are configured in a way so that the necessary package isn’t pulled in when Mono is installed, in those cases make sure the ca-certificates-mono package is installed.

1 Add the Mono repository to your system

The package repository hosts the packages you need, add it with the following commands.

Note: the packages should work on newer Raspbian versions too but we only test the ones listed below.

Raspbian 10 (armhf)

sudo apt install dirmngr ca-certificates gnupg sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/debian preview-raspbianbuster main" | sudo tee /etc/apt/sources.list.d/mono-official-preview.list sudo apt update

2 Install Mono

sudo apt install mono-devel

The package mono-devel should be installed to compile code.

Читайте также:  Python interpreter pycharm linux

The package mono-llvm-support should be installed for LLVM JIT/AOT support. See here for more about LLVM Mono.

The package mono-complete should be installed to install everything — this should cover most cases of «assembly not found» errors.

The package mono-dbg should be installed to get debugging symbols for framework libraries — allowing you to get line numbers in stack traces.

The package referenceassemblies-pcl should be installed for PCL compilation support — this will resolve most cases of «Framework not installed: .NETPortable» errors during software compilation.

The package ca-certificates-mono should be installed to get SSL certificates for HTTPS connections. Install this package if you run into trouble making HTTPS connections.

The package mono-xsp4 should be installed for running ASP.NET applications.

3 Verify Installation

After the installation completed successfully, it’s a good idea to run through the basic hello world examples on this page to verify Mono is working correctly.

Notes

Mono on Linux before 3.12 by default didn’t trust any SSL certificates so you got errors when accessing HTTPS resources. This is not required anymore as 3.12 and later include a new tool that runs on package installation and syncs Mono’s certificate store with the system certificate store (on older versions you had to import Mozilla’s list of trusted certificates by running mozroots —import —sync ). Some systems are configured in a way so that the necessary package isn’t pulled in when Mono is installed, in those cases make sure the ca-certificates-mono package is installed.

Mono for Windows is available as a Windows Installer file

Please refer to the installation guide for more information about how to install and configure your Mono environment.

Supported on Windows 7, 8, 10 or later.

GTK# for .NET

Installer for running Gtk#-based applications on Microsoft .NET:

Release Notes

Check out the release notes of all Mono versions on the releases page.

MonoDevelop IDE

Please visit the MonoDevelop website for more details about our cross-platform IDE.

Older releases

To access older Mono releases for macOS and Windows, check the archive on the download server. For Linux, please check the «Accessing older releases» section in the installation guide.

Источник

HOW TO INSTALL MONO ON UBUNTU 20.04

Mono is among the open-source software that assists in creating multiple platforms for computing. It can be regarded as open-source software, which is originally the free exertion of Microsoft. Its main attraction is to formulate applications for cross-platform. It is a sensitive tool for developers to make effective and reliable applications. To fully understand the core of mono you must have the basic understanding and operational experience of Ubuntu. Its central framework encompasses the runtime of common language along with the ECMA international standard language of programming. In this guide, you can gain a firm understanding of installing mono on Ubuntu 20.04 without any inconvenience. You can relish the benefits of developing software tools enhanced via the standard of programing language with installing mono.

Читайте также:  Обновить линукс через консоль

Installation Process

You can effectually enhance your system capabilities to generate multi programming applications through mono and it includes 3 general steps to get properly installed in a system. The steps for installing mono are as follows.

Step# 2: Adding the APT for mono

Step# 3: Installation of mono

Requirements

The only requirement for installing mono is to log-in to the server by using the root user or you can also log-in to the server via user encompassing the sudo privileges.

Package Updating

The process of package updating is like a standard rule of thumb for installing any server or application on Linux. In this step, we use 2 basic apt commands in your terminal to update and upgrade the existing system packages.

Adding the APT for Mono

Now install the essentials of mono by implying the following command.

Once the repository has been added it can facilitate you with installing all the upcoming updated versions of mono without any further ado. Now you are required to extract the key and place both the repository and its key on your Ubuntu server. The first command will extract the key and 2nd command will add the directory in the server.

$ sudo apt-key adv —keyserver hkp: // keyserver.ubuntu.com: 80 —recv-keys
3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF

Now you can access your mono repository on your Ubuntu machine without any complication.

Installation of Mono

Firstly, update the package to ensure the addition of the APT in Ubuntu.

You can copy the following command to install the mono software.

The term mono-complete in this command portrays the full package of mono constituting all of its features and tools. If you are inclined towards building your project through the development method IDE, then use this command.

Verification

You can perform the unit test on your installed application, but this step isn’t mandatory, apply this command to run the Nunit test.

After the installation, all you need to do is to verify the operationality of the mono software that you installed in your system. use this command to verify.

The output screen will display the information on verification of mono installation along with its version and other specific details.

CONCLUSION

Installation of mono on Ubuntu facilitates you in multi-tasking. You can also get benefits from the runtime language and its development tools. This guide explains each step keenly for you to have an in-depth understanding of each step. This way you can get a hold of operating mono effectively.

About the author

Younis Said

I am a freelancing software project developer, a software engineering graduate and a content writer. I love working with Linux and open-source software.

Источник

Оцените статью
Adblock
detector