grace在Fedora 16中的问题


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.bkjia.com/topicnews.aspx?tid=5

相关内容