关于glib-2.26.0 编译错误的处理

在编译glib-2.26.0.tar.gz 时出现错误的处理方法

 

1:gconvert.c:65:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv

处理方法:./configure --with-libiconv=gnu

 

2:/usr/bin/msgfmt -o test.mo ./de.po; /
        /bin/mkdir -p de/LC_MESSAGES; /
        cp -f test.mo de/LC_MESSAGES
./de.po:15: 关键字“msgctxt”未知
./de.po:15:8: parse error
/usr/bin/msgfmt: 发现 2 处致命错误

处理方法:下载gettext-0.18.1.1.tar.bz2并编译安装

               到glib-2.26.0目录:make clean

                                            ./configure --with-libiconv=gnu

 

3:/usr/local/bin/msgfmt: error while loading shared libraries: libgettextsrc-0.18.1.so: cannot open shared object file: No such file or directory

处理方法:libgettextsrc-0.18.1.so没有被ldconfig,可以检查ldconfig -p | grep libgettextsrc-0.18.1.so

               如果不存在,就需要执行ldconfig

你可能感兴趣的:(object,File)