在CentOS 6.3上安装msttcorefonts

我在CentOS 6.3服务器上安装了 Mantis Bug Tracker并启用了 JP Graph插件.但是,为了让这个插件显示所需的TTF字体,我必须安装一个名为“msttcorefonts”的东西.

据我所知,我需要来自微软的Arial字体,但在Linux或命令行方面,我绝不是专家,我发现它真的很难.此外,这个服务器非常重要,在输入这​​些随机命令之后它会保持不变.

我知道我必须首先获得一些先决条件工具.

所以我得到了RPM build tools并成功安装了它们.现在我能够rpmbuild –version给出RPM版本4.8.0.

但是,当我尝试按照详细的here“创建软件包”时,我收到了这个新错误.叹:

alex@frankae1 [~]# rpmbuild -bb msttcorefonts-2.0-1.spec
warning: line 19: buildprereq is deprecated: BuildPrereq: /usr/bin/ttmkfdir
warning: line 20: buildprereq is deprecated: BuildPrereq: wget
warning: line 21: buildprereq is deprecated: BuildPrereq: cabextract
error: Failed build dependencies:
        /usr/bin/ttmkfdir is needed by msttcorefonts-2.0-1.noarch

我花了一整天才到达这一点,从这一点上找不到更多的信息.​​…..至少有人能让我朝着正确的方向前进吗?

任何帮助表示赞赏.

查看 http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec处的spec文件(以及您引用的页面中的补丁),我看到:
BuildPrereq: %{ttmkfdir}
BuildPrereq: wget
BuildPrereq: cabextract

因此,在构建成功之前,您需要拥有与这些相关的包.

你的错误:

error: Failed build dependencies:
        /usr/bin/ttmkfdir is needed by msttcorefonts-2.0-1.noarch

与第一个BuildPrereq有关.

做yum搜索ttmkfdir我看到它在(有点明显)ttmkfdir包中.您可以在其他先决条件上进行yum搜索,但基本上可以执行以下操作:

yum install ttmkfdir cabextract wget

安装先决条件,然后再次尝试rpmbuild.

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native