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

2.1 インストール
2.2 インストール時のメッセージ

2.1 インストール

 参考サイトの通りにやってみます。  mono という ports をインストールするらしい。  「ウィキペディア - Mono」を読んでやっと合点がいきました。

cd /usr/ports/lang/mono
make config

cd /usr/ports/lang/mono
 make の途中でこける・・・。  おしりのほうだけね。

=> SHA256 Checksum OK for xorg/xserver/xorg-server-1.19.1.tar.bz2.
===>  Patching for xorg-vfbserver-1.19.1_9,1
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-12176
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-12177
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-12178
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-12179
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-12183
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-1218x
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-1218y
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-13721
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-CVE-2017-13723
===>  Applying extra patch /usr/ports/x11-servers/xorg-vfbserver/../xorg-server/files/patch-os_io.c
===>   xorg-vfbserver-1.19.1_9,1 depends on package: libepoxy>0 - not found
===>  libepoxy-1.4.3 needs Python 3.3 at least, but 2.7 was specified.
*** Error code 1

make[4]: stopped in /usr/ports/graphics/libepoxy
*** Error code 1

make[3]: stopped in /usr/ports/x11-servers/xorg-vfbserver
*** Error code 1

make[2]: stopped in /usr/ports/x11-servers/xorg-vfbserver
*** Error code 1

make[1]: stopped in /usr/ports/lang/mono
*** Error code 1

make: stopped in /usr/ports/lang/mono
 えっ?  python2.7 と python3.6 はあるんだが・・・。  「/usr/ports/graphics/libepoxy」ってやつは python3.3 をピンポイントで必要とするらしい・・・  「/usr/ports/graphics/libepoxy」ってくらいだから X11 のオプションをはずせば先へ進めるのかしら・・・。  オプションをはずしてしきりなおし。

cd /usr/ports/lang/mono
make clean
make install
 しかし、make の時点で恐ろしく時間がかかります。数時間?

2.2 インストール時のメッセージ


===>  Installing for mono-
===>  Checking if mono already installed
===>   Registering installation for mono-
Installing mono-
If you have build/runtime errors with Mono and Gtk# apps please try the
following first:

* Build Mono and gtk+ (x11-toolkits/gtk20) without CPUTYPE and with the
  default FreeBSD CFLAGS ('-O2 -fno-strict-aliasing -pipe') as Mono has
  been known to expose compiler bugs.

* Try building and running Mono with the GENERIC kernel.
  - Mono requires SYSVSHM, SYSVMSG, and SYSVSEM which are part of the
    GENERIC kernel.
  - Removing kernel options or changing defaults to use experimental
    options can adversely affect Mono's ability to build and run.

* Remove leftover semaphores / increase semaphore limits.
  - Close apps which use Mono and run `ipcs -sbt`.  Remove the
    semaphores with MODE "--rw-------" and NSEMS "8" using ipcrm (1)
  - _OR_ simply reboot which is the safest method.
  - On multi-user systems the semaphore limits may need to be increased
    from the defaults. The following should comfortably support 30 users.

    # echo "kern.ipc.semmni=40" >> /boot/loader.conf
    # echo "kern.ipc.semmns=300" >> /boot/loader.conf

* If you are in a jailed environment, ensure System V IPC are enabled.
  You can rely on the security.jail.sysvipc_allowed  sysctl to check
  this status.  The following enables this feature on the host system:
    # echo "jail_sysvipc_allow=\"YES\"" >> /etc/rc.conf

* Some process information are accessed through /proc (e.g. when using
  NUnit) and procfs(5) has to be mounted for these features to work:
    # echo "proc            /proc   procfs  rw 0 0" >> /etc/fstab

      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage: