LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 879|回复: 0

很悲剧,graphviz不能正常emerge和显示中文

[复制链接]
发表于 2010-3-6 07:01:00 | 显示全部楼层 |阅读模式
先说中文问题,即使我使用了-Nfontname,还是node中设置了字体,都能正常生成图片,但是中文显示乱码,无论png还是jpg还是其他
看网上解决方案,照猫画虎给了一个fontconfig的use给gd,然后重新emerge gd和graphviz,结果出现以下问题:
at.so /usr/lib/libfreetype.so /usr/lib/libpng12.so -lm -lz -ldl -Wl,-rpath -Wl,/usr/lib/graphviz                                
../../plugin/gd/.libs/libgvplugin_gd.so: undefined reference to `gd_psfontResolve'                                             
collect2: ld returned 1 exit status                                                                                             make[3]: *** [dot_builtins] Error 1                                                                                            
make[3]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.26.0/work/graphviz-2.26.0/cmd/dot'                           
make[2]: *** [all-recursive] Error 1                                                                                            
make[2]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.26.0/work/graphviz-2.26.0/cmd'                                
make[1]: *** [all-recursive] Error 1                                                                                          
make[1]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.26.0/work/graphviz-2.26.0'                                   
make: *** [all] Error 2                                                                                                         
* ERROR: media-gfx/graphviz-2.26.0 failed:                                                                                    
*   emake failed                                                                                                                *                                                                                                                              
* Call stack:                                                                                                                  
*     ebuild.sh, line   54:  Called src_compile                                                                                
*   environment, line 4411:  Called _eapi2_src_compile                                                                          
*     ebuild.sh, line  646:  Called die                                                                                       
* The specific snippet of code:                                                                                                
*              emake || die "emake failed"                                                                                      *                                                                                                                             
* If you need support, post the output of 'emerge --info =media-gfx/graphviz-2.26.0',                                          
* the complete build log and the output of 'emerge -pqv =media-gfx/graphviz-2.26.0'.                                            
* The complete build log is located at '/var/tmp/portage/media-gfx/graphviz-2.26.0/temp/build.log'.                           
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/graphviz-2.26.0/temp/environment'.                     
* S: '/var/tmp/portage/media-gfx/graphviz-2.26.0/work/graphviz-2.26.0'                                                                                                                                                                                         
>>> Failed to emerge media-gfx/graphviz-2.26.0, Log file:                                                                                                                                                                                                      
>>>  '/var/tmp/portage/media-gfx/graphviz-2.26.0/temp/build.log'                                                                                                                                                                                                
* Messages for package media-gfx/graphviz-2.26.0:                                                                                                                                                                                                               
* ERROR: media-gfx/graphviz-2.26.0 failed:                                                                                      
*   emake failed                                                                                                                *                                                                                                                              
* Call stack:                                                                                                                  
*     ebuild.sh, line   54:  Called src_compile                                                                                
*   environment, line 4411:  Called _eapi2_src_compile                                                                          
*     ebuild.sh, line  646:  Called die                                                                                         
* The specific snippet of code:                                                                                                
*              emake || die "emake failed"                                                                                      
*                                                                                                                              
* If you need support, post the output of 'emerge --info =media-gfx/graphviz-2.26.0',                                          
* the complete build log and the output of 'emerge -pqv =media-gfx/graphviz-2.26.0'.                                            
* The complete build log is located at '/var/tmp/portage/media-gfx/graphviz-2.26.0/temp/build.log'.                             
* The ebuild environment file is located at '/var/tmp/portage/media-gfx/graphviz-2.26.0/temp/environment'.                     
* S: '/var/tmp/portage/media-gfx/graphviz-2.26.0/work/graphviz-2.26.0'                                                         
06:54|loin@~>$
昨晚一夜都在搞这个,累...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表