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后才可编辑。
相关推荐:
根据报错信息“configure: error: off_t undefined; check your library […]
这是源码安装软件时配置环境用的,根据你的配置选项和你的系统情况生成makefile文件,为make 做准备。 最常用的参 […]
PureFTP是目前很多Linux平台流行的FTP服务端之一,最近配置服务器使用到了PureFTP,中间也出现了各种连接 […]
谷歌发布了针对ARM优化的新算法,但是如果要使用 salsa20 或 chacha20 或 chacha20-ietf […]
源码安装软件时一直make不了,后来重新./configure了下,发现后面出现错误:error: mbed TLS l […]
拿起手机扫一扫即可带走我!