博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ubuntu下安装 Mono(整理)
阅读量:4647 次
发布时间:2019-06-09

本文共 1393 字,大约阅读时间需要 4 分钟。

 

 

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,此文件保存已排好序的动态链接库名字列表. )

转载于:https://www.cnblogs.com/jeson006/p/4757127.html

你可能感兴趣的文章
delphi 更改DBGrid 颜色技巧
查看>>
python编码问题
查看>>
POJ 2031 Building a Space Station
查看>>
面向对象1
查看>>
编程开发之--java多线程学习总结(5)
查看>>
register_globals(全局变量注册开关)
查看>>
as3调用外部swf里的类的方法
查看>>
如何让 zend studio 10 识别 Phalcon语法并且进行语法提示
查看>>
任意阶幻方(魔方矩阵)C语言实现
查看>>
视频教程--ASP.NET MVC 使用 Petapoco 微型ORM框架+NpgSql驱动连接 PostgreSQL数据库
查看>>
第五次作业
查看>>
织梦教程
查看>>
杭电多校 Harvest of Apples 莫队
查看>>
java 第11次作业:你能看懂就说明你理解了——this关键字
查看>>
C/C++心得-结构体
查看>>
函数名作为参数传递
查看>>
apt-get for ubuntu 工具简介
查看>>
数值计算算法-多项式插值算法的实现与分析
查看>>
day8-异常处理与网络编程
查看>>
Python基础-time and datetime
查看>>