{"id":7491,"date":"2013-03-31T04:21:59","date_gmt":"2013-03-30T19:21:59","guid":{"rendered":"http:\/\/oichinote.com\/plus\/?p=7491"},"modified":"2013-04-01T22:10:09","modified_gmt":"2013-04-01T13:10:09","slug":"compile-environment-on-qnap-ts-412","status":"publish","type":"post","link":"https:\/\/oichinote.com\/plus\/2013\/03\/compile-environment-on-qnap-ts-412.html","title":{"rendered":"QNAP TS-412\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883"},"content":{"rendered":"<p>TS-412\u3092\u8cb7\u3044\u307e\u3057\u305f\u304c\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u305f\u3081\u306b\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u305d\u308d\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/byte.itaka.jp\/2012\/08\/26\/1346\" target=\"_blank\">QNAP\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u4f5c\u308b\u306b\u306f \u00bb Byte after Byte<\/a><\/li>\n<\/ul>\n<p>sed\u304c\u4f7f\u3048\u306a\u3044\u3068\u3001\u5404\u7a2e\u30c4\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u306a\u3044\u69d8\u3067\u3059\u3002\u307e\u305f\u3001\/opt\u306b\u5165\u3063\u3066\u3044\u308b\u30d0\u30a4\u30ca\u30ea\u3092\u53c2\u7167\u3059\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u554f\u984c\u306a\u3044\u306e\u3067\u3001\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u89e6\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre># ipkg update\r\n# ipkg install gcc\r\n# ipkg install make  \r\n# ipkg install grep\r\n# ipkg install gawk\r\n# ipkg install sed\r\n# export PATH=\/opt\/bin:\/opt\/sbin:$PATH<\/pre>\n<p>\u4e00\u5fdc\u3001\u3053\u308c\u3060\u3051\u5165\u308c\u308c\u3070\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u3064\u3044\u3067\u306a\u306e\u3067\u3001\u95a2\u9023\u30c4\u30fc\u30eb\u3082\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre># ipkg install patch\r\n# ipkg install perl\r\n# ipkg install tree<\/pre>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u307f\u307e\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u306f\u3001\u6559\u79d1\u66f8\u306b\u8f09\u3063\u3066\u3044\u308b\u3001&#8221;Hello, world!&#8221; (hello.c)\u3067\u3059\u3002<\/p>\n<pre class=\"hljs\"><code>#include &lt;stdio.h&gt;\r\n\r\nmain(int argc, char **argv)\r\n{\r\n  printf(&quot;Hello, world!\\n&quot;);\r\n}\r\n<\/code><\/pre>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u5b9f\u884c\u7d50\u679c\u306f\u3001\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre># gcc -o hello hello.c\r\n# .\/hello\r\nHello, world!<\/pre>\n<p>\u3046\u307e\u304f\u884c\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u672c\u683c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u3053\u308c\u3060\u3051\u3067\u306f\u8db3\u308a\u307e\u305b\u3093\u3002\u7d50\u5c40\u3001QNAPedia\u306b\u8f09\u3063\u3066\u3044\u308b\u7269\u3092\u3001\u5168\u90e8\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/wiki.qnap.com\/wiki\/How_to_install_MythTV\" target=\"_blank\">How to install MythTV &#8211; QNAPedia<\/a><\/li>\n<\/ul>\n<p>\u5fc5\u8981\u306a\u7269\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3088\u3046\u306b\u3001\u8907\u6570\u306e\u30b3\u30de\u30f3\u30c9\u306b\u5206\u89e3\u3057\u307e\u3057\u305f\u3002\u3067\u3082\u3001ipkg\u306f\u3001\u8907\u6570\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u307e\u3068\u3081\u3066\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre># ipkg install nano <span style=\"color: #00ff00;\">(\u30a8\u30c7\u30a3\u30bf\u3002\u304a\u597d\u307f\u3067\u3002)<\/span>\r\n# ipkg install gcc <span style=\"color: #00ff00;\">(\u5fc5\u9808)<\/span>\r\n# ipkg install make <span style=\"color: #00ff00;\">(\u5fc5\u9808)<\/span>\r\n# ipkg install automake <span style=\"color: #00ff00;\">(\u958b\u767a\u4e2d\u306e\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u6642\u306b\u5fc5\u8981\u304b\u3082)<\/span>\r\n# ipkg install pkgconfig <span style=\"color: #00ff00;\">(\u958b\u767a\u4e2d\u306e\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u6642\u306b\u5fc5\u8981\u304b\u3082)<\/span>\r\n# ipkg install ncurses ncursesw ncurses-dev <span style=\"color: #00ff00;\">(\u753b\u9762\u51e6\u7406\u95a2\u4fc2)<\/span>\r\n# ipkg install wget <span style=\"color: #00ff00;\">(\u30c0\u30a6\u30f3\u30ed\u30fc\u30c0)<\/span>\r\n# ipkg install coreutils <span style=\"color: #00ff00;\">(sort\u306a\u3069\u3001\u5404\u7a2e\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3002busybox\u3067\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u8db3\u308a\u306a\u3044\u306e\u3067)<\/span>\r\n# ipkg install findutils <span style=\"color: #00ff00;\">(busybox\u306efind\u3067\u306f\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u8db3\u308a<\/span>\r\n# ipkg install patch <span style=\"color: #00ff00;\">(\u30d5\u30a1\u30a4\u30eb\u4fee\u6b63\u7528)<\/span>\r\n# ipkg install sed <span style=\"color: #00ff00;\">(\u30d5\u30a1\u30a4\u30eb\u4fee\u6b63\u7528)<\/span>\r\n# ipkg install grep <span style=\"color: #00ff00;\">(\u30d5\u30a1\u30a4\u30eb\u691c\u7d22\u7528)<\/span>\r\n# ipkg install gawk <span style=\"color: #00ff00;\">(\u30c6\u30ad\u30b9\u30c8\u51e6\u7406)<\/span>\r\n# ipkg install \u0010\u0010\u0010\u0010\u0010\u0010perl perl-libxml perl-dbi <span style=\"color: #00ff00;\">(\u30c6\u30ad\u30b9\u30c8\u51e6\u7406)<\/span><\/pre>\n<p>\u3053\u308c\u3060\u3051\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u3051\u3070\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u6642\u3082\u56f0\u3089\u306a\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3067\u3082\u3001\u5b9f\u969b\u306b\u306f\u3001\u30d3\u30eb\u30c9\u306b\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3084include\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u3063\u3066\u3044\u306a\u304f\u3066\u3001\u305d\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u7fbd\u76ee\u306b\u306a\u3063\u305f\u308a\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3046\u301c\u3093\u3002NAS\u3068\u3057\u3066\u8a2d\u8a08\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u3001\u4f59\u5206\u306a\u958b\u767a\u74b0\u5883\u306f\u5165\u3063\u3066\u3044\u306a\u3044\u306e\u304b&#8230;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TS-412\u3092\u8cb7\u3044\u307e\u3057\u305f\u304c\u3001\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306e\u305f\u3081\u306b\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u305d\u308d\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u6b21\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 QNAP\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u4f5c\u308b\u306b\u306f \u00bb Byt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u65b0\u3057\u3044\u8a18\u4e8b\u300eQNAP TS-412\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u300f\u3092\u6295\u7a3f\u3057\u307e\u3057\u305f\u3002\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[59,5],"tags":[],"class_list":["post-7491","post","type-post","status-publish","format-standard","hentry","category-nas","category-computer"],"jetpack_publicize_connections":[],"jetpack-related-posts":[{"id":7514,"url":"https:\/\/oichinote.com\/plus\/2013\/04\/make-a-ipkg-on-qnap.html","url_meta":{"origin":7491,"position":0},"title":"QNAP\u3067ipk\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e744\u67084\u65e5","format":false,"excerpt":"QNAP\u306eNAS\u3001TS-412\u3092\u8cb7\u3044\u307e\u3057\u305f\u3002 NAS\u88dc\u5b8c\u8a08\u753b\u301c\u30ca\u30b9\u304c\u3001\u6765\u5b85\u301c: \u30d7\u30e9\u30b9\u03b1\u7a7a\u9593 (20\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7510,"url":"https:\/\/oichinote.com\/plus\/2015\/06\/replace-netatalk-of-qnap.html","url_meta":{"origin":7491,"position":1},"title":"QNAP TS412\u306enetatalk\u3092\u7f6e\u304d\u63db\u3048\u3088\u3046\u3068\u3057\u3066\u632b\u6298\u3057\u305f\u8a71","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e746\u67084\u65e5","format":false,"excerpt":"\u524d\u3001QNAP\u306eNAS(TS-412)\u3092\u6301\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3084\u3063\u305f\u4e8b\u3092\u3001\u6b21\u306e\u30da\u30fc\u30b8\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002 \u304a\u624b\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7032,"url":"https:\/\/oichinote.com\/plus\/2013\/03\/nas-instrumentality-project-the-nas-has-come.html","url_meta":{"origin":7491,"position":2},"title":"NAS\u88dc\u5b8c\u8a08\u753b\u301c\u30ca\u30b9\u304c\u3001\u6765\u5b85\u301c","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2013\u5e743\u670821\u65e5","format":false,"excerpt":"\u7d50\u5c40\u3001QNAP\u306eTS-412\u306b\u3057\u307e\u3057\u305f\u3002 \u5b89\u3044 \u305d\u308c\u306a\u308a\u306e\u6027\u80fd \u9ad8\u6a5f\u80fd \u6a5f\u80fd\u306e\u8ffd\u52a0\u304c\u697d(\u306e\u306f\u305a) \u6027\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10697,"url":"https:\/\/oichinote.com\/plus\/2014\/01\/cross-compile-for-mips-on-ubuntu-12-04.html","url_meta":{"origin":7491,"position":3},"title":"PQI Air Pen\u7528\u306bUbuntu 12.04\u3067mips\u306e\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u8a2d\u5b9a","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e741\u670824\u65e5","format":false,"excerpt":"PQI Air Pen\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u69d8\u306b\u306a\u308b\u3068\u3001\u3044\u308d\u3044\u308d\u904a\u3079\u307e\u3059\u3002 PQI Air Pen\u306b\u306f\u307e\u308a\u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"MIPS GCC Installer","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2014\/01\/20140123mips-gcc-trim-th.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":7406,"url":"https:\/\/oichinote.com\/plus\/2015\/06\/gave-up-to-ipsec-on-qnap-ts412.html","url_meta":{"origin":7491,"position":4},"title":"QNAP TS412\u3067VPN(IPsec)\u3092\u3084\u308d\u3046\u3068\u3057\u3066\u632b\u6298\u3057\u305f\u8a71[\u8ffd\u8a18\u3042\u308a]","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2015\u5e746\u67082\u65e5","format":false,"excerpt":"\u524d\u3001QNAP\u306eNAS\u3092\u6301\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3084\u3063\u305f\u4e8b\u3092\u3001\u6b21\u306e\u30da\u30fc\u30b8\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002 \u304a\u624b\u8efd\u30db\u30fc\u30e0\u30b5\u30fc\u30d0Q\u2026","rel":"","context":"NAS","block_context":{"text":"NAS","link":"https:\/\/oichinote.com\/plus\/category\/nas"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10836,"url":"https:\/\/oichinote.com\/plus\/2014\/02\/install-kernel-module-on-pqi-air-pen.html","url_meta":{"origin":7491,"position":5},"title":"PQI Air Pen\u306bKernel\u30e2\u30b8\u30e5\u30fc\u30eb\u8ffd\u52a0","author":"\u304a\u5e02\u306e\u304b\u305f","date":"2014\u5e742\u67085\u65e5","format":false,"excerpt":"\u6b21\u306e\u8a18\u4e8b\u306e\u901a\u308a\u3001PQI Air Pen\u7528\u306b\u3001\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3057\u305f\u3002 PQI Air \u2026","rel":"","context":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30d1\u30bd\u30b3\u30f3\u30fb\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/oichinote.com\/plus\/category\/computer"},"img":{"alt_text":"PQI Air Pen","src":"https:\/\/i0.wp.com\/oichinote.com\/plus\/files\/2014\/01\/20170210pqi-air-pen.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/7491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/comments?post=7491"}],"version-history":[{"count":17,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/7491\/revisions"}],"predecessor-version":[{"id":7667,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/posts\/7491\/revisions\/7667"}],"wp:attachment":[{"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/media?parent=7491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/categories?post=7491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oichinote.com\/plus\/wp-json\/wp\/v2\/tags?post=7491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}