博客
关于我
腾讯云 安装mono
阅读量:440 次
发布时间:2019-03-06

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

一、yum -y update

运行出现以下错误:

http://centos.tencentyun.com/contrib/x86_64/repodata/filelists.xml.gz: [Errno 14] PYCURL ERROR 22 – “The requested URL returned error: 404″

Trying other mirror.
Error: failure: repodata/filelists.xml.gz from contrib: [Errno 256] No more mirrors to try.
You could try using –skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), ‘yum check’ output follows:
lanmp_wdcp-2-5.el6.x86_64 has missing requires of perl(lib::mtr_gcov.pl)
lanmp_wdcp-2-5.el6.x86_64 has missing requires of perl(lib::mtr_gprof.pl)
lanmp_wdcp-2-5.el6.x86_64 has missing requires of perl(lib::mtr_io.pl)
lanmp_wdcp-2-5.el6.x86_64 has missing requires of perl(lib::mtr_misc.pl)
lanmp_wdcp-2-5.el6.x86_64 has missing requires of perl(lib::mtr_process.pl)
lanmp_wdcp-2-5.el6.x86_64 has missing requires of perl(mtr_misc.pl)

联系官方客服,解决如下

wget -q http://mirrors.tencentyun.com/install/softinst.sh && chmod +x softinst.sh && ./softinst.sh

二、yum -y 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

三、wget http://download.mono-project.com/sources/mono/mono-3.2.1.tar.bz2

四、tar -jxvf  mono-3.2.1.tar.bz2

五、cd mono-3.2.1

六、./configure –prefix=/usr

七、make    此时出现以下错误

../src/.libs/libeglib.a(libeglib_la-gunicode.o): In function `monoeg_g_get_charset’:

/root/mono-3.2.1/eglib/src/gunicode.c:223: undefined reference to `locale_charset’
collect2: ld returned 1 exit status
make[4]: *** [test-eglib] Error 1
make[4]: Leaving directory `/root/mono-3.2.1/eglib/test’
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/mono-3.2.1/eglib’
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/mono-3.2.1/eglib’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mono-3.2.1′
make: *** [all] Error 2

修改 eglib/config.h

vi eglib/config.h 将#define HAVE_LOCALCHARSET_H 1 替换为 #define HAVE_LOCALCHARSET_H 0

八、make

九、make install

十、mono –V

 

原文地址:

转载地址:http://spsfz.baihongyu.com/

你可能感兴趣的文章
191120
查看>>
191123
查看>>
第4章 字符串、数组和特殊矩阵
查看>>
0608-nn和autograd的区别
查看>>
MYSQL 数据库结构优化
查看>>
leetcode 一些算法题及答案
查看>>
spring 整合 ActiveMQ
查看>>
PHP 取前一天或后一天、一个月时间
查看>>
Kafka 分布式的,基于发布/订阅的消息系统
查看>>
Spring Bean的加载
查看>>
Web笔记(一) Web 简介与开发环境搭建
查看>>
Java基础回顾-缓冲流
查看>>
JSONPath小试牛刀之Snack3
查看>>
更强的 JsonPath 兼容性及性能测试
查看>>
利用 Solon-web 框架写一个 Hello World
查看>>
Solon Ioc 的注解对比Spring及JSR330
查看>>
Solon 1.2.12 发布,新的惊喜
查看>>
Java基础:HashMap中putAll方法的疑惑
查看>>
ESRI ArcGIS 产品线资源网站大集合
查看>>
ArcGIS API for JavaScript 4.2学习笔记[31] (补充学习)Task类
查看>>