一半君的总结纸

听话只听一半君

Fedora 20 从source安装mono 3.2.3

pre-req package install for Fedora 18

yum install libtool autoconf automake cloog-ppl cpp gcc glibc-devel glibc-headers kernel-headers mpfr ppl libatk libatk-devel gtk3 gtk3-devel libpng12 libpng12-devel libjpeg libjpeg-devel libtiff libtiff-devel libexif libexif-devel giflib giflib-devel bison gcc-c++ libX11-devel freetype fontconfig fontconfig-devel gettext  glib2-devel git mono-core mono-addins mono-addins-devel mono-tools mono-basic xsp gtk-sharp2 gtk-sharp2-devel -y

cd ~
mkdir mono-3.2.3
cd mono-3.2.3

libgdiplus:

git clone https://github.com/mono/libgdiplus.git
cd libgdiplus
./autogen.sh --prefix=/opt/mono-3.2.3 --libdir=/opt/mono-3.2.3/lib
make
make install
cd ..

Mono 3.2.3:

wget http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2
tar xfv mono-3.2.3.tar.bz2
cd mono-3.2.3
./autogen.sh --prefix=/opt/mono-3.2.3 --libdir=/opt/mono-3.2.3/lib
make
make install
exit

Create symbolic link for userspace
*make sure you exit super user by typing exit

cd ~
mkdir bin
cd bin
ln -s /opt/mono-3.2.3 mono

edit the .bashrc file in your /home/ and insert and adjust the to your home folder for your server

export PATH="/home/<user>/bin/mono/bin:$PATH"
export PKG_CONFIG_PATH="/home/<user>/bin/mono/lib/pkgconfig:$PKG_CONFIG_PATH"
export MANPATH="/home/<user>/bin/mono/share/man:$MANPATH"
export LD_LIBRARY_PATH="/home/<user>/bin/mono/lib:$LD_LIBRARY_PATH"
export MONO_THREADS_PER_CPU=2048
export MONO_GC_PARAMS=nursery-size=64m

you now have mono 3.2.3 compiled and installed be sure to launch OpenSimulator with mono ie:

mono --server --debug OpenSim.exe

抄袭自:HOW TO: Compile Mono 3.2.3 from source code [Universal *nix]

edit: 升级3.4.0的时候遇到如下错误提示

/usr/bin/install: cannot stat ‘targets/Microsoft.Portable.Common.targets’: No such file or directory

原因在此

the mono 3.4 archive miss a file “Microsoft.Portable.Common.targets” at `path mcs/tools/xbuild/targets/.content`

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\Microsoft.Portable.Core.props" /> 
<Import Project="..\Microsoft.Portable.Core.targets" /> 
</Project>

其实装这个是为了用deadline,官网虽然写了只要>2.1都可以,确实可以,只不过pulse的webui无法启动,所以只好删了上面装的新版,从fedora20的自带repo里

yum install mono-core mono-data

这次没问题了…

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: