你好,游客 登录 注册 搜索
背景:
阅读新闻

grace在Fedora 16中的问题

[日期:2012-05-17] 来源:Linux社区  作者:rachzhang [字体:大 中 小]

grace是一款2D的画图软件,如我一类天天跟数据打交道的,这款软件简直就是科研利器。去年在笔记本上转投Fedora之后,安装这个软件发现一些问题。

安装之后,在命令行输入xmgrace,出现如下错误

xmgrace: malloc.c:2453: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * (sizeof(size_t))) - 1)) & ~((2 * (sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long)old_end & pagemask) == 0)' failed.

但是该软件在Ubuntu系统上运行正常

google的结果是,fedora的字体文件和grace自带的字体文件不同

在/usr/share/grace/fonts/ 路径下ls可看到

drwxr-xr-x. 2 root root 4.0K May 16 17:14 enc
lrwxrwxrwx. 1 root root   25 May 16 17:14 type1 -> ../../fonts/default/Type1
lrwxrwxrwx. 1 root root   35 May 16 17:14 FontDataBase -> ../../../..//etc/grace/FontDataBase

连接的字体都是fedora系统的自带字体,所以问题应该出在此处。下载grace的源代码,ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace-latest.tar.gz
解压之后,复制 fonts文件夹到某一路径

如 ~/grace-fonts/

然后连接/usr/share/grace/fonts/中的type1到 /home/foo/grace-fonts/fonts/type1/

ln -s /home/foo/grace-fonts/fonts/type1/ /usr/share/grace/fonts/type1 (需要root权限)

连接 /usr/share/grace/fonts/中的FontDataBase到 /home/foo/grace-fonts/fonts/FontDataBase

ln -s /home/foo/grace-fonts/fonts/FontDataBase /usr/share/grace/fonts/FontDataBase

然后就ok了

更多Fedora相关信息见Fedora 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=5

linux
相关资讯       Fedora 16 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款