在 CentOS 6.5 上安装 Mono 的步骤如下:
1、更新系统软件包
确保系统软件包是最新的,运行以下命令来更新系统:
“`
sudo yum update
“`
2、安装 EPEL 存储库
EPEL(Extra Packages for Enterprise Linux)是一个由 Fedora 项目提供的第三方存储库,其中包含许多额外的软件包,运行以下命令来安装 EPEL 存储库:
“`
sudo yum install epelrelease
“`
3、安装 Mono
现在,可以安装 Mono,运行以下命令来安装 Mono:
“`
sudo yum install monocomplete
“`
4、验证安装
安装完成后,可以通过运行以下命令来验证 Mono 是否已成功安装:
“`
mono version
“`
如果看到类似于以下的输出,说明 Mono 已成功安装:
“`
Mono JIT compiler version 4.6.1 (tarball Tue Jul 9 18:57:04 UTC 2019)
Copyright (C) 20022014 Novell, Inc, Xamarin Inc and Contributors. www.monoproject.com
Licensed under the MIT License.
GNU General Public License v2 only applies to code found in the files with a "COPYING" file at the top level directory.
Operating System: Linux 3.10.0229.el7.x86_64 GNU/Linux Processor: x86_64 Celeron(R) CPU 542MHz Memory: 1516.16 MB / 1536.00 MB
Desktop Engine: Gtk 3.22.30 (Raleigh theme) Host Machine: Linux 3.10.0514.el7.x86_64 Architecture: x86_64 Process Type: Interpreted Assembly Language: CSharp Vendor: Novell Inc OS Version: Linux 3.10.0514.el7.x86_64 Number of Cores: 2 GC Heap: True Large Object Heap: True
Threading: MTA Stack: Managed Heap: Server (Large Object Heap)
Runtime: Mono 4.6.1 (Stable) (64bit) Default Domain: mono4.6.1.105 [ElementaryPkg]
Root Domain: mono4.6.1.105 [ElementaryPkg] Server Time: Wed, 29 Jul 2019 07:37:29 +0000
Configured using: /etc/mono/config
“`
原创文章,作者:未希,如若转载,请注明出处:https://www.kdun.com/ask/679380.html
本网站发布或转载的文章及图片均来自网络,其原创性以及文中表达的观点和判断不代表本网站。如有问题,请联系客服处理。
发表回复