您的位置:首页 > 运维架构 > Shell

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

2015-01-21 21:59 579 查看
编译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包安装成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: