在 Mac OSX 上安装 mod_mono
我刚刚开始在 mac osx 上使用 mono+asp.net mvc2 开发网站,但我对 mono 和 mac 还很陌生。
我已经从 MonoDevelop 开始工作了。当我从 MonoDevelop 运行我的网站时,XSP 运行正常。
现在,我尝试从 Apache 服务器测试它,但我不知道如何设置。我能找到的一些指令都非常旧或不完整。我尝试了其中的一些,但没有一个起作用。
有人可以帮我吗?
I just started to develop website with mono+asp.net mvc2 on mac osx but I am quite new to mono and mac.
I have got things working from MonoDevelop. My website is running ok with XSP when I run it from MonoDevelop.
Now, I am trying to test it from Apache server, but I don’t know how to set things up. Some instruction I can found are all very old or incomplete. I tried a few of them, but none worked.
Could anyone please help me out?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 OS X 上安装 mod_mono 的最佳方法是从源代码安装。为此,需要执行几个步骤。
首先,确保您已经安装了 XCode(可以在机器或 App Store 附带的 DVD 或第二张 CD 上找到),它将为您提供 gcc 和标准工具链的其余部分。
假设您已经从稳定的发行版包中安装了 Mono 和 MonoDevelop,则可以跳过大多数正常的中间步骤。如果稍后遇到错误,您需要安装 XSP 和 Mono 的更新版本,然后重试。
接下来,下载 mod_mono 的最新稳定版本,提取存档的内容(通过双击图标)并按照步骤 1、2 和 4 进行操作。 3 在
INSTALL
文件中,您应该可以开始了。整个过程大约需要 5 分钟才能启动和运行:)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 :)我是单声道新手,但遵循了一些说明。我从这里下载并安装了所有内容:
http://www.go-mono.com/mono-downloads/download.html
为了让 Apache 与 mod_mono.so 一起工作,我从此页面下载了源代码:
http://download.mono-project.com/sources/mod_mono/
您有来编译它。我进入解压目录并在终端中写入:
这会将 mod_mono.so 放入正确的 Apache 目录和 mod_mono.conf 文件中。要包含它,您必须将其添加到您的 httpd.conf (我将其放在文件末尾):
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:
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):