You are here

Compiling mono 6 on FreeBSD 12

Ivan Radovanovic's picture

Steps:

  1. download & unpack
  2. install cmake if not present
  3. (can be ignored if brotli is not present in /usr/local/include)
    # cd /usr/local/include
    # mv brotli brotli-X
  4. $ env CC=cc CXX=c++ CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --enable-btls --disable-dtrace
  5. gmake
  6. (restoring brotli if it was renamed)
    # cd /usr/local/include
    # mv brotli-X brotli

There might be complaint about missing python or python3 but that should be resolved by proper symlinking in /usr/local/bin. gmake check can be used to run tests, gmake install to install mono. Might make sense to install gnome-sharp and gtk-sharp after installing mono.

Comments

Ivan Radovanovic's picture

This works for my FreeBSD 11
# ln -s /usr/local/bin/bash /bin/bash
$ env CC=clang60 CXX=clang++60 PYTHON=python3.6 CPPFLAGS=-I/usr/local/include ./configure --disable-dtrace --enable-btls
$ gmake

working in Codenizer