编译Mesa10.3.5 /bin/bash: line 4: msgfmt: command not found

来源:互联网 发布:软件推广策划案 编辑:程序博客网 时间:2024/06/07 20:51

编译Mesa10.3.5时,sudo make时报的一个错误:

make[6]: Entering directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri/common/xmlpool'

Updating (ca) ca/LC_MESSAGES/options.mo from ca.po.
/bin/bash: line 4: msgfmt: command not found
make[6]: *** [ca/LC_MESSAGES/options.mo] Error 127
make[6]: Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri/common/xmlpool'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri/common'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa/drivers/dri'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/Mesa-10.3.5/src/mesa'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/Mesa-10.3.5/src'
make: *** [all-recursive] Error 1


sudo apt-get install liblocale-msgfmt-perl

sudo make

还是报错

解决方法: 安装gettext库。

试图用synaptic package manager安装,但是失败:

W: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/g/gettext/gettext_0.18.1.1-5ubuntu3_amd64.deb

  Something wicked happened resolving 'cn.archive.ubuntu.com:http' (-5 - No address associated with hostname)

最后是直接到官网http://packages.ubuntu.com/zh-cn/precise/gettext下载gettext_0.18.1.1-5ubuntu3_amd64.deb包安装成功。

0 0