Install mod_mono on Mac OSX

佐手、 提交于 2019-12-05 00:54:17

The best way to install mod_mono on OS X is from source. To do this there are a couple steps.

First, make sure you've installed XCode (which can be found on the DVD or the 2nd CD that came with the machine or the App Store) which will provide you with gcc and the rest of the standard toolchain.

Most of the normal in-between steps can be skipped, assuming you've already installed Mono and MonoDevelop from their stable release packages. If you encounter an error later on, you'll want to install updated versions of XSP and Mono and try again.

Next, download the latest stable release of mod_mono, extract the contents of the archive (by double clicking on the icon) and follow steps 1, 2 & 3 in the INSTALL file, and you should be good to go. This entire process took about ~5 minutes to get up and running :)

I am a novice with mono but followed some instructions. I downloaded and installed everything from here: http://www.go-mono.com/mono-downloads/download.html

To get Apache to work with mod_mono.so I downloaded source from this page: http://download.mono-project.com/sources/mod_mono/

You have to compile it. I went into the unpacked directory and wrote this in termminal:

./configure --prefix=/usr
make
sudo make install

This puts the mod_mono.so in correct Apache dir and the mod_mono.conf file. To include it you must add this to your httpd.conf (I put it at the end of the file):

 # mod_mono_configuration                                                  
 Include /etc/apache2/mod_mono.conf
 MonoServerPath /Library/Frameworks/Mono.framework/Versions/Current/bin/mod-mono-server2
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!