标签:
http://blog.csdn.net/cfy_phonex/article/details/24129227
Ubuntu下安装 Mono
1) 更新服务器
sudo apt-get update
2)安装Mono源码安装需要的库
sudo apt-get install gcc gcc-c++ bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel giflib-devel libX11-devel freetype-devel fontconfig-devel cairo-devel
3)安装 mono
cd /usr/local/src/
sudo wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.bz2
tar -jxvf mono-2.10.8.tar.bz2
cd mono-2.10.8
sudo ./configure --prefix=/usr
(失败提示:configure: error: You need to install bison)
(处理:增加命令 Sudo apt-get install flex bison)
(失败提示:configure: error: msgfmt not found. You need to install the ‘gettext‘ package, or pass --enable-nls=no to configure.)
(处理:Sudo apt-get install gettext)
sudo make
(失败提示:../src/.libs/libeglib.a(libeglib_la-gunicode.o): In function monoeg_g_get_charset‘:
/opt/mono-2.10.1/eglib/src/gunicode.c:312: undefined reference tolocale_charset‘)
(处理:sudo ./configure
cd eglib/
open config.h and replace following string
#define HAVE_LOCALCHARSET_H 1
修改为
#define HAVE_LOCALCHARSET_H 0
返回上层 cd ..
)
sudo make install
输入 mono -V 如有mono版本信息,则安装成功.
4)建议在安装mono后,运行 sudo ldconfig 命令 。
(ldconfig命令的用途,主要是在默认搜寻目录(/lib和/usr/lib)以及动态库配置文件/etc/ld.so.conf内所列的目录下,搜索出可共享的动态链接库(格式如前介绍,lib*.so*),进而创建出动态装入程序(ld.so)所需的连接和缓存文件.缓存文件默认为/etc/ld.so.cache,此文件保存已排好序的动态链接库名字列表. )
标签:
原文地址:http://www.cnblogs.com/jeson006/p/4757127.html