0

I'm trying to build the development branch for Monogame and it instructs you to execute "mono Protobuild.exe" to create the solution files. I downloaded the github branch and in the terminal navigated to the file that the Protobuild.exe exists and then ran the command, but was given "command not found" when executed. Does anyone know what I am doing incorrectly here?

I have downloaded the Mono SDK.

Ben Krueger
  • 1,476
  • 1
  • 14
  • 20
  • Go through it again. There are a few pre-requisites that you should be aware of for the various platforms. Please check them over MonoGame website. You haven't installed their package. – Marek H Sep 28 '15 at 15:56

2 Answers2

0

FYI I found out that before you install Mono, you need to create the directory usr/local/bin in order for the terminal to detect the "mono" command.

Ben Krueger
  • 1,476
  • 1
  • 14
  • 20
0

El Capitan now protects certain system directories in "rootless" mode (a.k.a. System Integrity Protection). If you run the command ls -lO /System/Library/LaunchDaemons you'll see that the directories and files under there are now marked as "restricted."

You can disable rootless mode like this:

1.Reboot into recovery mode (reboot and hold down Cmd-R) 2.Open a terminal 3.Use this command: csrutil disable 4.Reboot and run the command that worked prior to El Capitan

5.Install Mono latest version. When you're done, it is highly recommended that you re-enable SIP by following the same steps, but using csrutil enable in step 3.

I ran into a problem with the same root cause while trying to get pear/pecl modules and macports/homebrew apps installed. Those typically need to install files into /usr/include and /usr/lib, which are also now restricted.

Note: Previous answers around the Internet about this problem give you instructions for modifying NVRAM settings, but Apple stated that the NVRAM method would stop working with El Capitan's public release. The GM release has already disabled the NVRAM workaround, so this answer should get you what you need moving forward

anilreddy
  • 331
  • 3
  • 7