FreeBSD/ASP.NETを動かせるようにする。(mod_mono)
ASP.NETを動かせるようにする。(mod_mono) †
ソースをダウンロード †
http://ftp.novell.com/pub/mono/sources-stable/
・mono-2.4.2.3.tar.bz2
・mono-basic-2.4.2.tar.bz2
・libgdiplus-2.4.2.tar.bz2
・xsp-2.4.2.tar.bz2
・mod_mono-2.4.2.tar.bz2
libgdiplusインストール †
# wget http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.4.2.tar.bz2 # tar jxvf libgdiplus-2.4.2.tar.bz2 # cd libgdiplus-2.4.2 # ./configure # make # make install
mono-basicインストール †
# wget http://ftp.novell.com/pub/mono/sources/mono-basic/mono-basic-2.4.2.tar.bz2 # tar jxvf mono-basic-2.4.2.tar.bz2 # cd mono-basic-2.4.2 # ./configure # make # make install
mod_monoインストール †
# wget http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.4.2.tar.bz2 # tar jxvf mod_mono-2.4.2.tar.bz2 # cd mod_mono-2.4.2 # ./configure --with-apxs=/usr/local/apache2/bin/apxs # make # make install
monoインストール †
# wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2 # tar jxvf mono-2.4.2.3.tar.bz2 # cd mono-2.4.2.3 # ./configure # make # make install
エラー †
・こんなエラーが出る場合
./configure: line 23229: test: too many arguments configure: error: "Failed to compile with X11/Xlib.h include. You must fix your compiler paths" # yum -y install libX11-devel
・こんなエラーが出る場合
configure: error: Cairo requires at least one font backend. Please install freetype and fontconfig, then try again: http://freetype.org/ http://fontconfig.org/ configure: error: ./configure failed for cairo # yum -y install cario-devel
httpd.confの編集 †
# vi /usr/local/apache2/conf/httpd.conf Include conf/mod_mono.conf MonoAutoApplication disabled AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd MonoApplications "/:/usr/local/lib/xsp/test" MonoServerPath /usr/local/bin/mod-mono-server2 <Location /> SetHandler mono </Location>
アクセス †
http://ホスト名/