歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> grace在Fedora 16中的問題

grace在Fedora 16中的問題

日期:2017/2/28 15:51:24   编辑:Linux教程

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

Copyright © Linux教程網 All Rights Reserved