|
先说中文问题,即使我使用了-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@~>$
昨晚一夜都在搞这个,累... |
|