linux下mono安装时提示“In function `monoeg_g_get_charset`”

如果碰巧你使用的是官方tar包,那么恭喜你,你make的时候可能会遇到如下错误,很多网友都会遇到的。

../src/.libs/libeglib.a(libeglib_la-gunicode.o): In function `monoeg_g_get_charset':/root/mono/eglib/src/gunicode.c:223: undefined reference to `locale_charset'collect2: ld returned 1 exit statusmake[4]: *** [test-eglib] Error 1make[4]: Leaving directory `/root/mono/eglib/test'make[3]: *** [all-recursive] Error 1make[3]: Leaving directory `/root/mono/eglib'make[2]: *** [all] Error 2make[2]: Leaving directory `/root/mono/eglib'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/mono'make: *** [all] Error 2

怎么解决呢?那么我们就改源码目录下(eglib/config.h)文件中的代码:

#define HAVE_LOCALCHARSET_H 1

改为

#define HAVE_LOCALCHARSET_H 0

附:需要configure后才可编辑。

相关推荐:
谷歌发布了针对ARM优化的新算法,但是如果要使用 salsa20 或 chacha20 或 chacha20-ietf 算法,还是需要先安装 libsodium 。 CentOS下: #shell#yum install epel-release -y yum install libsodium -y 如 …
将本机80端口的请求转发到8080端口 #shell#iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080 如果需要本机也可以访问,则需要配置OUTPUT链 #shell#iptables -t nat -A OUTPUT …
根据报错信息“configure: error: off_t undefined; check your library configuration”分析,未定义的类型 off_t。 off_t 类型是在头文件 unistd.h中定义的,在32位系统 编程成 long int ,64位系统则编译 …
在使用service iptables save命令保存防火墙的策略时发现系统报了标题所示的异常,那么怎么解决呢? 我们可以凭经验发现大概是包没装,那么就缺啥补啥,缺少policycoreutils这个包,就安装这个包: yum -y …
配置时区的命令是: $sudo dpkg-reconfigure tzdata(root下无须sudo) 它会改这两个文件: 1. /etc/timezone 2. /etc/localtime 第一个文件写的是系统的时区,国内默认为 Asia/Shanghai 第二个文件还可以 …
拿起手机扫一扫即可带走我!