{"id":32,"date":"2008-03-12T15:24:36","date_gmt":"2008-03-12T06:24:36","guid":{"rendered":"https:\/\/hiro7216.mydns.jp\/blog\/?p=32"},"modified":"2024-01-30T23:38:00","modified_gmt":"2024-01-30T14:38:00","slug":"rrdtool%e3%81%aegprint%e3%82%92%e5%88%a9%e7%94%a8%e5%8f%af%e8%83%bd%e3%81%ab%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/hiro7216.mydns.jp\/blog\/?p=32","title":{"rendered":"RRDTOOL\u306eGPRINT\u3092\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\uff01"},"content":{"rendered":"\n<p>ARM\u7cfb\u306eLinux\u3067GPRINT\u3092\u5229\u7528\u3059\u308b\u3068RRDTOOL\u304c\u843d\u3061\u308b\u306e\u306f\u30c1\u30e9\u30db\u30e9\u5831\u544a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<br>cacti\u3092\u5229\u7528\u3057\u3066\u3082GPRINT\u3067\u843d\u3061\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6700\u521d\u306fCDEF\u3067unkwn\u5024\u30920\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3067GPRINT\u3092\u5229\u7528\u51fa\u6765\u305f\u306e\u3067\u3059\u304c<br>\u30b0\u30e9\u30d5\u306e\u4f5c\u6210\u901f\u5ea6\u304c\u975e\u5e38\u306b\u9045\u304f\u3066\u4f7f\u3044\u7269\u306b\u306a\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<br>\u3082\u3061\u308d\u3093CPU\u4f7f\u7528\u7387\u3082\u305d\u306e\u3042\u3044\u3060\u306f100%\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br>\u3061\u3083\u3093\u3068\u3057\u305f\u65b9\u6cd5\u3067RRDTOOL\u306eGPRINT\u3092\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\u4e8b\u3092\u76ee\u6a19\u306b\u4e00\u9031\u9593\u307b\u3069\u683c\u95d8\u306e\u65c5\u306b\u51fa\u307e\u3057\u305f\uff08\u7b11\uff09<\/p>\n\n\n\n<p>\u7d50\u8ad6\u304b\u3089\u5148\u306b\u66f8\u304d\u307e\u3059\u3068\u30ab\u30fc\u30cd\u30eb\u304cEABI\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u554f\u984c\u3067\u3057\u305f\u3002<br>EABI\u30ab\u30fc\u30cd\u30eb\u306fiptables\u306e\u6642\u3082\u305d\u3046\u3067\u3059\u304c\u4f55\u304b\u3068\u554f\u984c\u3092\u5f15\u304d\u8d77\u3053\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br>\u203bapt-get\u3067\u306fOABI\u74b0\u5883\u3067\u69cb\u7bc9\u3055\u308c\u305f\u3082\u306e\u304c\u914d\u5e03\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>ARM\u7cfb\u306eCPU\u306f\u6d6e\u52d5\u5c0f\u6570\u70b9\u6f14\u7b97\u30e6\u30cb\u30c3\u30c8\u3092\u6301\u305f\u306a\u3044\u306e\u3067<br>\u5c11\u3057\u3067\u3082\u65e9\u304f\u306a\u308b\u3088\u3046\u306bEABI\u3067\u69cb\u7bc9\u3059\u3079\u304d\u3067OABI\u306a\u30ab\u30fc\u30cd\u30eb\u306e\u69cb\u7bc9\u3092\u3059\u308b\u306e\u306f\u5f97\u7b56\u3068\u306f\u8a00\u3048\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u81ea\u5206\u3067EABI\u306a\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u56de\u907f\u3059\u308b\u3053\u3068\u306b\u6c7a\u5b9a\uff01<\/p>\n\n\n\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u65b9\u6cd5\u306fDL\u3057\u305f\u5727\u7e2e\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u306b\u3042\u308brrdbuild.html\u306b\u8a73\u3057\u304f\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<br>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5408\u308f\u306a\u3044\u5834\u5408\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\uff06\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305aRRDTOOL\u306e\u30bd\u30fc\u30b9\u3092DL\u3057\u3066\u304d\u3066\u65e9\u901f\u30b3\u30f3\u30d1\u30a4\u30eb\uff01<br>configure\u304c\u901a\u308a\u307e\u305b\u3093\uff08\u7b11\uff09<\/p>\n\n\n\n<p>IEEE MATH\u304c\u3069\u3046\u306e\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3092\u56de\u907f\u3059\u308b\u306b\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u524d\u306b\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>export rd_cv_ieee_works=yes<\/p>\n\n\n\n<p>\u307e\u305fconfigure\u6642\u306e\u5f15\u6570\u306b\u306fEABI\u30b3\u30f3\u30d1\u30a4\u30eb\u7528\u306eCFLAGS\u3092\u66f8\u304d\u307e\u3059\u3002<br>CFLAGS=&#8221;-Wall -g3 -ggdb3&#8243;<\/p>\n\n\n\n<p>\u3053\u308c\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u3044\u3051\u3070\u7121\u4e8b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u51fa\u6765\u308b\u306f\u305a\u3067\u3059\u3002<br>\u203bdh_make -r<br>\u3000\u3000vi debian\/roules\u3067CFLAGS\u7de8\u96c6<br>\u3000\u3000dpkg-buildpackage\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3088\u3046\u3068\u3057\u307e\u3057\u305f\u304c<br>\u3000\u3000\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f5c\u6210\u307e\u3067\u306f\u3046\u307e\u304f\u51fa\u6765\u3066\u3082\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u5931\u6557\u3057\u305f\u306e\u3067<br>\u3000\u3000\u666e\u901a\u306bmake install\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u7121\u4e8b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089GPRINT\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br>\u3061\u3083\u3093\u3068\u6570\u5024\u304c\u30b0\u30e9\u30d5\u753b\u50cf\u5185\u306b\u66f8\u304d\u8fbc\u307e\u308c\u308b\u306f\u305a\u3067\u3059\u3002<br>\u30b0\u30e9\u30d5\u753b\u50cf\u5185\u3067\u306f\u306a\u304f\u30b0\u30e9\u30d5\u753b\u50cf\u5916\u306b\u6570\u5024\u3092\u51fa\u3057\u305f\u3044\u5834\u5408\u306fGPRINT\u3067\u3067\u306f\u7121\u304fPRINT\u3092\u4f7f\u3044\u307e\u3059\u3002<br>PRINT\u3057\u305f\u5f8c\u3067\u30b0\u30e9\u30d5\u30bf\u30b0\u5916\u306e\u66f8\u304d\u305f\u3044\u90e8\u5206\u306bRRD::PRINT\u30bf\u30b0\u3092\u5229\u7528\u3059\u308c\u3070\u30c6\u30ad\u30b9\u30c8\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<br><br>number\u306e\u90e8\u5206\u306fPRINT\u8a18\u8ff0\u306e\u4f55\u500b\u76ee\u304b\u3092\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002\uff08\u30b9\u30bf\u30fc\u30c8\u306f\uff10\u3067\u3059\uff09<\/p>\n\n\n\n<p>\u6b86\u3069rrdbuild.html\u306e\u307e\u307e\u3067\u3059\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u307e\u3067\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<br>\u203brrdtool-1.2.15\u3092\u4f8b\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u542b\u3081<br>\u3000\u3000\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u90e8\u5206\u304c\u5909\u308f\u308b\u304f\u3089\u3044\u3067\u624b\u9806\u306f\u6b86\u3069\u540c\u3058\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>BUILD_DIR=\/mnt\/disk1\/build\/rrdbuild<br>INSTALL_DIR=\/usr<\/p>\n\n\n\n<p>mkdir -p $BUILD_DIR<br>cd $BUILD_DIR<\/p>\n\n\n\n<p>export rd_cv_ieee_works=yes<\/p>\n\n\n\n<p>\u203b\u30e9\u30a4\u30d6\u30e9\u30ea\u306eVersion\u304c\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044\u4eba\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br>\u3000\u3000\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306fPC\u304c\u4e0d\u5b89\u5b9a\u306b\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<br>\u3000\u3000\u7279\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u30c0\u30a6\u30f3\u306f\u6b62\u3081\u305f\u307b\u3046\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<br>\u3000\u3000\u3082\u3063\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u65b0\u3057\u3044RRDTOOL\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>cd $BUILD_DIR<br>wget http:\/\/oss.oetiker.ch\/rrdtool\/pub\/libs\/zlib-1.2.3.tar.gz<br>tar zxf zlib-1.2.3.tar.gz<br>cd zlib-1.2.3<br>env CFLAGS=&#8221;-Wall -g3 -ggdb3&#8243; .\/configure &#8211;prefix=$BUILD_DIR\/lb<br>make<br>make install<\/p>\n\n\n\n<p>cd $BUILD_DIR<br>wget http:\/\/oss.oetiker.ch\/rrdtool\/pub\/libs\/libpng-1.2.10.tar.gz<br>tar zxvf libpng-1.2.10.tar.gz<br>cd libpng-1.2.10<br>env CPPFLAGS=&#8221;-I$BUILD_DIR\/lb\/include&#8221; LDFLAGS=&#8221;-L$BUILD_DIR\/lb\/lib&#8221; CFLAGS=&#8221;-Wall -g3 -ggdb3&#8243;<br>.\/configure &#8211;disable-shared &#8211;prefix=$BUILD_DIR\/lb<br>make<br>make install<\/p>\n\n\n\n<p>cd $BUILD_DIR<br>wget http:\/\/oss.oetiker.ch\/rrdtool\/pub\/libs\/freetype-2.1.10.tar.bz2<br>tar jxvf freetype-2.1.10.tar.bz2<br>cd freetype-2.1.10<br>env CPPFLAGS=&#8221;-I$BUILD_DIR\/lb\/include&#8221; LDFLAGS=&#8221;-L$BUILD_DIR\/lb\/lib&#8221; CFLAGS=&#8221;-Wall -g3 -ggdb3&#8243;<br>.\/configure &#8211;disable-shared &#8211;prefix=$BUILD_DIR\/lb<br>make<br>make install<\/p>\n\n\n\n<p>cd $BUILD_DIR<br>wget http:\/\/oss.oetiker.ch\/rrdtool\/pub\/libs\/libart_lgpl-2.3.17.tar.gz<br>tar zxvf libart_lgpl-2.3.17.tar.gz<br>cd libart_lgpl-2.3.17<br>env CFLAGS=&#8221;-Wall -g3 -ggdb3&#8243; .\/configure &#8211;disable-shared &#8211;prefix=$BUILD_DIR\/lb<br>make<br>make install<\/p>\n\n\n\n<p>\u203b\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u4e00\u81f4\u3057\u3066\u3044\u308b\u4eba\u306f\u3053\u3053\u304b\u3089\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u304cCPPFLAGS\u3001LDFLAGS\u306e\u66f8\u304d\u63db\u3048\u306f\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>IR=-I$BUILD_DIR\/lb\/include<br>CPPFLAGS=&#8221;$IR $IR\/libart-2.0 $IR\/freetype2 $IR\/libpng&#8221;<br>LDFLAGS=&#8221;-L$BUILD_DIR\/lb\/lib&#8221;<br>CFLAGS=&#8221;-Wall -g3 -ggdb3&#8243;<br>export CPPFLAGS LDFLAGS CFLAGS<\/p>\n\n\n\n<p>wget http:\/\/oss.oetiker.ch\/rrdtool\/pub\/rrdtool-1.2.15.tar.gz<br>tar zxf rrdtool-1.2.15.tar.gz<br>cd $BUILD_DIR\/rrdtool-1.2.15<br>.\/configure &#8211;prefix=$INSTALL_DIR &#8211;disable-python &#8211;disable-tcl<br>make clean<br>make<br>make install<\/p>\n\n\n\n<p>\u4ee5\u4e0a<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/hiro7216.mydns.jp\/blog\/wp-content\/uploads\/rrdtool_sample.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" src=\"wp-content\/uploads\/rrdtool_sample.jpg\" alt=\"\"\/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>ARM\u7cfb\u306eLinux\u3067GPRINT\u3092\u5229\u7528\u3059\u308b\u3068RRDTOOL\u304c\u843d\u3061\u308b\u306e\u306f\u30c1\u30e9\u30db\u30e9\u5831\u544a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002cacti\u3092\u5229\u7528\u3057\u3066\u3082GPRINT\u3067\u843d\u3061\u308b\u3088\u3046\u3067\u3059\u3002 \u6700\u521d\u306fCDEF\u3067unkwn\u5024\u30920\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3067GPRINT &hellip; <a href=\"https:\/\/hiro7216.mydns.jp\/blog\/?p=32\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">RRDTOOL\u306eGPRINT\u3092\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\uff01<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,287],"tags":[166],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-linkstation","category-nas","tag-linkstation"],"_links":{"self":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32"}],"version-history":[{"count":0,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hiro7216.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}