2. C# - FreeBSD にインストール - インストール - .NET Framework

 
2.1 概要
2.2 めぼしいものをインストール

2.1 概要

 実際に mono を使用するにあたって、.NET Framework が必要なわけで・・・。  mono 単体では、どうも .NET Framework はインストールされないように思われます。  pkg で検索してみると

> pkg search mono
ap24-mod_mono-3.13             Apache module for serving ASP.NET applications
ar-ae_fonts_mono-1.0_4         Collection of PCF fonts that include Arabic glyphs
consolamono-ttf-20130127_1     Monospace font created for programming, text editors and terminal-use
fantasque-sans-mono-1.7.2_1    Programming font, designed with functionality in mind
hs-mono-traversable-1.0.8.1_1  Type classes for mapping, folding, and traversing monomorphic containers
hs-mono-traversable-instances-0.1.0.0_3 The mono-traversable-instances package
mono-5.10.1.57                 Open source implementation of .NET Development Framework
mono-addins-1.3_1              Mono framework to create extensible applications
mono-basic-4.7                 VisualBasic.NET support for Mono
mono-kmod-20070416             Execute .NET applications from command line
mono-zeroconf-0.9.0_1          Cross platform Zero Configuration Networking library for Mono
monodevelop-7.5.3.7            IDE for the .NET platform
monotone-1.1_12                Distributed version control system with digital signatures
monotone-viz-1.0.2_7           Visual interface for Monotone VCS with revision graphs
p5-Monoceros-0.27_1            PSGI/Plack server w/ event driven connection manager, prefork workers
py27-monotonic-1.5             Python 3 monotonic time module for Python 2
py36-monotonic-1.5             Python 3 monotonic time module for Python 2
rubygem-mono_logger-1.1.0      Lock-free logger compatible with Ruby 2.0
wine-mono-4.7.1                Mono .NET implementation for Wine development branch (HTML support)
wine-mono-devel-4.7.1          Mono .NET implementation for Wine development branch (HTML support)

2.2 めぼしいものをインストール

 前項の中で、わたしが実際に使いそうなものはインストールしておきます。

> pkg install mono-addins
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 6 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        mono-addins: 1.3_1
        gtk-sharp20: 2.12.45_1
        p5-XML-LibXML: 2.0132,1
        p5-XML-SAX: 1.00
        p5-XML-SAX-Base: 1.09
        p5-XML-NamespaceSupport: 1.12

Number of packages to be installed: 6

The process will require 10 MiB more space.
4 MiB to be downloaded.

Proceed with this action? [y/N]:	←	y Enter

・・・ 略 ・・・

> pkg install mono-kmod
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        mono-kmod: 20070416

Number of packages to be installed: 1

3 KiB to be downloaded.

Proceed with this action? [y/N]:	←	y Enter

・・・ 略 ・・・

############################################################################

Add mono_load="YES" to /boot/loader.conf to load the kernel module
automatically.

The default path of Mono is /usr/local/bin/mono. You can specify an
alternate path by adding a line to /etc/sysctl.conf:

  kern.mono.path=/path/to/mono

############################################################################

===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

mastersite disappeared, unfetchable.

> pkg install monodevelop
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 27 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        monodevelop: 7.5.3.7
        vte: 0.28.2_3
        gnome-pty-helper: 0.40.2
        libgdiplus: 4.2_1
        gnome-sharp: 2.24.4_2
        libgnomeprintui: 2.18.6_4
        libgnomeprint: 2.18.8_4
        libgnomecups: 0.2.3_8,1
        gtkhtml3: 3.32.1_5
        libssh2: 1.8.0,3
        fsharp: 10.0.2
        subversion: 1.10.0
        serf: 1.3.9_3
        apr: 1.6.3.1.6.1_1
        utf8proc: 2.1.0
        git: 2.18.0_2
        p5-CGI: 4.38
        p5-HTML-Parser: 3.72
        p5-HTML-Tagset: 3.20_1
        p5-IO-Socket-SSL: 2.056
        p5-Mozilla-CA: 20180117
        p5-Net-SSLeay: 1.85
        p5-Authen-SASL: 2.16_1
        p5-GSSAPI: 0.28_1
        p5-Digest-HMAC: 1.03_1
        p5-Error: 0.17026
        cvsps: 2.1_2

Number of packages to be installed: 27

The process will require 297 MiB more space.
61 MiB to be downloaded.

Proceed with this action? [y/N]:	←	y Enter

・・・ 略 ・・・

Message from apr-1.6.3.1.6.1_1:

/!\ ================================================================== /!\

The Apache Portable Runtime project removed support for FreeTDS with
version 1.6. Users requiring MS-SQL connectivity must migrate
configurations to use the added ODBC driver and FreeTDS' ODBC features.

/!\ ================================================================== /!\
Message from cvsps-2.1_2:

===>   NOTICE:

The cvsps port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
Message from git-2.18.0_2:

------------------------------------------------------------------------
*************************** GITWEB *************************************
If you installed the GITWEB option please follow these instructions:

In the directory /usr/local/share/examples/git/gitweb you can find all files to
make gitweb work as a public repository on the web.

All you have to do to make gitweb work is:
1) Please be sure you're able to execute CGI scripts in
   /usr/local/share/examples/git/gitweb.
2) Set the GITWEB_CONFIG variable in your webserver's config to
   /usr/local/etc/git/gitweb.conf. This variable is passed to gitweb.cgi.
3) Restart server.
*************************** GITWEB *************************************

*************************** CONTRIB ************************************
If you installed the CONTRIB option please note that the scripts are
installed in /usr/local/share/git-core/contrib. Some of them require
other ports to be installed (perl, python, etc), which you may need to
install manually.
*************************** CONTRIB ************************************
------------------------------------------------------------------------

> pkg install wine-mono-devel
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        wine-mono-devel: 4.7.1

Number of packages to be installed: 1

The process will require 54 MiB more space.
53 MiB to be downloaded.

Proceed with this action? [y/N]:	←	y Enter

・・・ 略 ・・・

 こんなもんかしら。