inohilog

/var/log/inohiro.log

CentOS に Mono をインストールする。

CentOS に Mono をインストールする。
管理者権限に。

[inohiro@localhost ~]$ su
パスワード:

単純にインストールできるかな。

[root@localhost inohiro]# yum install mono
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
 * addons: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
Setting up Install Process
Parsing package install arguments
No package mono available.
Nothing to do

できない。yum search で探す。

[root@localhost inohiro]# yum search mono
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
 * addons: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
mono-jscript.i386 : JScript .NET support for Mono
cdda2wav.i386 : A utility for sampling/copying .wav files from digital audio CDs.
mono-core.i386 : The Mono CIL runtime, suitable for running .NET code
xsp-devel.i386 : Development files for xsp
mono-locale-extras.i386 : Extra locale information for Mono
evolution-sharp.i386 : Evolution Data Server Mono Bindings
mono-data.i386 : Database connectivity for Mono
gnome-sharp.i386 : GTK+ and GNOME bindings for Mono
mono-data-oracle.i386 : Oracle database connectivity for Mono
mono-nunit.i386 : NUnit Testing Framework
mono-winforms.i386 : Windows Forms implementation for Mono
libgdiplus.i386 : libgdiplus: An Open Source implementation of the GDI+ API
gtk-sharp2.i386 : GTK+ and GNOME bindings for Mono
mono-web.i386 : ASP.NET, Remoting, and Web Services for Mono
xsp.i386 : A small web server that hosts ASP.NET
gtk-sharp2-gapi.i386 : Glib and GObject C source parser and C generator for the creation and maintenance of managed bindings for Mono and .NET
mono-nunit-devel.i386 : pkgconfig for nunit
gtk-sharp2-doc.i386 : Gtk# documentation
mono-data-firebird.i386 : Firebird database connectivity for Mono
mono-devel.i386 : Development tools for Mono
mono-data-sybase.i386 : Sybase database connectivity for Mono
ibm-data-db2.i386 : IBM DB2 database connectivity for Mono
gsf-sharp-devel.i386 : pkgconfig file for gsf-sharp
mono-data-postgresql.i386 : Postgresql database connectivity for Mono
mono-data-sqlite.i386 : sqlite database connectivity for Mono
bytefx-data-mysql.i386 : MySQL database connectivity for Mono
gmime-sharp.i386 : mono bindings for gmime
gsf-sharp.i386 : Mono bindings for libgsf
mod_mono.i386 : A module to deploy an ASP.NET application on Apache with Mono

mono-coreをインストール。

[root@localhost inohiro]# yum install mono-core
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
 * addons: www.ftp.ne.jp
 * extras: www.ftp.ne.jp
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package mono-core.i386 0:1.2.4-2.el5.centos set to be updated
--> Processing Dependency: libgdiplus for package: mono-core
--> Running transaction check
---> Package libgdiplus.i386 0:1.2.5-1.el5.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 mono-core               i386       1.2.4-2.el5.centos  extras             11 M
Installing for dependencies:
 libgdiplus              i386       1.2.5-1.el5.centos  extras            387 k

Transaction Summary
=============================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mono-core-1.2.4-2. 100% |=========================|  11 MB    00:01     
(2/2): libgdiplus-1.2.5-1 100% |=========================| 387 kB    00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: libgdiplus                   ######################### [1/2] 
  Installing: mono-core                    ######################### [2/2] 

Installed: mono-core.i386 0:1.2.4-2.el5.centos
Dependency Installed: libgdiplus.i386 0:1.2.5-1.el5.centos
Complete!

確認。

[root@localhost inohiro]# mono -v
Usage is: mono [options] program [program-options]

Development:
    --aot                  Compiles the assembly to native code
    --debug                Enable debugging support
    --profile[=profiler]   Runs in profiling mode with the specified profiler module
    --trace[=EXPR]         Enable tracing, use --help-trace for details
    --help-devel           Shows more options available to developers

Runtime:
    --config FILE          Loads FILE as the Mono config
    --verbose, -v          Increases the verbosity level
    --help, -h             Show usage information
    --version, -V          Show version information
    --runtime=VERSION      Use the VERSION runtime, instead of autodetecting
    --optimize=OPT         Turns on or off a specific optimization
                           Use --list-opt to get a list of optimizations
    --security             Turns on the security manager (unsupported, default is off)