FreeBSD/ASP.NETを動かせるようにする。(mod_mono) の変更点


*ASP.NETを動かせるようにする。(mod_mono) [#rdea559f]

#contents

**ソースをダウンロード [#v8293091]
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インストール [#b35e2b54]
 # 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インストール [#g90d2718]
 # 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インストール [#i8070595]
 # 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インストール [#k999f913]
 # 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

***エラー [#p4ba0b15]
・こんなエラーが出る場合
 ./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の編集 [#sba349be]
 # 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>

**アクセス [#eaa00026]
 http://ホスト名/