夕口技術錄
專業上的小常識,備而用之~
Monthly Archives: 一月 2010
[jpgraph] – 中文字型及預設路徑
2010/01/06
Posted by 於 中文字型設定位置
#vi jpg-config.inc
DEFINE(‘CHINESE_TTF_FONT’,’bkai00mp.ttf’);
預設路徑
# vi jpgraph.php
DEFINE(‘TTF_DIR’,’/usr/share/fonts/zh_TW/TrueType/’);
[Linux][pcap.h] – error: pcap.h: No such file or directory
2010/01/06
Posted by 於 在 rebuild 套件時遇到這個錯誤
error: pcap.h: No such file or directory解決方式
#yum -y install libpcap-devel //安裝 libpcap-devel 套件 (/usr/include/pcap.h)
#rpm -ql libpcap-devel //列出此套件安裝了哪些檔案
/usr/include/pcap-bpf.h
/usr/include/pcap-namedb.h
/usr/include/pcap.h
/usr/lib/libpcap.a
/usr/lib/libpcap.so
近期迴響