{"id":6248,"date":"2011-03-10T23:59:43","date_gmt":"2011-03-10T14:59:43","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/?p=6248"},"modified":"2011-03-11T09:44:41","modified_gmt":"2011-03-11T00:44:41","slug":"centos-chasen-ruby","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/6248.html","title":{"rendered":"CentOS ChaSen Ruby"},"content":{"rendered":"<p>\u4eee\u60f3\u30de\u30b7\u30f3\u30db\u30b9\u30c8\u306eOS\u3078\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u30db\u30b9\u30c8\u3092\u5909\u66f4\u3057\u305f\u3068\u304d\u306b\u74b0\u5883\u518d\u69cb\u7bc9\u3068\u306a\u308b\u306e\u3067\u30b2\u30b9\u30c8\u4eee\u60f3\u30de\u30b7\u30f3\u3068\u3057\u3066CentOS\u3092\u7528\u610f\u3057\u3001\u305d\u3053 \u3078 Chasen\u3068Ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3002<!--more--><\/p>\n<p>\u307e\u305aCentOS\u3078\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304f\u3002\u624b\u5143\u306e\u74b0\u5883\u3067\u306f\u3001\u3053\u308c\u3089\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070\u5145\u5206\u3067\u3057\u305f\u3002\u4ed6\u306b\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">yum&nbsp;install&nbsp;gcc&#x2d;c++<br \/>\nyum&nbsp;install&nbsp;autoconf<br \/>\nyum&nbsp;install&nbsp;automake<br \/>\nyum&nbsp;install&nbsp;texinfo<br \/>\nyum&nbsp;install&nbsp;zlib&nbsp;zlib&#x2d;devel\n<\/div>\n<p>\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067 src (\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u7f6e\u304d\u5834)\u3001applications(\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7f6e\u304d\u5834)\u3092\u7528\u610f\u3002\u666e\u901a\u306fbin\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u540d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u304a\u304f\u3053\u3068\u3082\u591a\u3044\u306e\u3067\u3001\u3053\u306e\u540d\u524d\u306b\u3057\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306e\u4f8b\u3067\u306f\u3001\u3088\u304f\u4f7f\u3046\u30b3\u30de\u30f3\u30c9\u985e\u306f &#x24;{HOME}&#x2f;applications&#x2f;bin \u306b\u7f6e\u304b\u308c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u307e\u305a\u306fDarts\u3092\u5165\u624b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">mkdir&nbsp;&#x24;{HOME}&#x2f;src<br \/>\nmkdir&nbsp;&#x24;{HOME}&#x2f;applications<br \/>\ncd&nbsp;&#x24;{HOME}&#x2f;src<br \/>\nwget&nbsp;http&#x3a;&#x2f;&#x2f;www.chasen.org&#x2f;~taku&#x2f;software&#x2f;darts&#x2f;src&#x2f;darts&#x2d;0.32.tar.gz<br \/>\ntar&nbsp;xzf&nbsp;darts&#x2d;0.32.tar.gz&nbsp;<br \/>\ncd&nbsp;darts&#x2d;0.32<br \/>\n.&#x2f;configure&nbsp;&#x2d;&#x2d;prefix=&#x24;{HOME}&#x2f;applications&nbsp;&#x7c;&nbsp;tee&nbsp;configure.log&nbsp;2&gt;&amp;1<br \/>\nmake&nbsp;&#x7c;&nbsp;tee&nbsp;make.log&nbsp;2&gt;&amp;1<br \/>\nmake&nbsp;install&nbsp;&#x7c;&nbsp;tee&nbsp;make&#x2d;install.log&nbsp;2&gt;&amp;1&nbsp;\n<\/div>\n<p>\u6b21\u306b libiconv \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002iconv\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308b\u304b\u3089\u3001libiconv \u3082\u3042\u308b\u304b\u3068\u601d\u3063\u305f\u3089\u3001\u5225\u9014\u30bd\u30fc\u30b9\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u904b\u7528\u30b5\u30fc\u30d0\u3067\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046\u306e\u304c\u4e00\u756a\u697d\u3067\u3059\u304c\u3001\u958b\u767a\u30de\u30b7\u30f3\u306a\u3069\u3067\u306f\u3001\u306a\u3051\u308c\u3070\u30bd\u30fc\u30b9\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5bfe\u5fdc\u3068\u3044\u3046\u306e\u304c\u4e00\u756a\u6c4e\u7528\u6027\u304c\u3042\u3063\u3066\u3001\u7d50\u5c40\u6642\u9593\u304c\u304b\u304b\u3089\u306a\u3044\u3053\u3068\u304c\u591a\u3044\u6c17\u304c\u3057\u307e\u3059\u3002\u305d\u3046\u3044\u3046\u610f\u5473\u3067\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306f\u3084\u306f\u308a\u4fbf\u5229\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">wget&nbsp;http&#x3a;&#x2f;&#x2f;ftp.gnu.org&#x2f;pub&#x2f;gnu&#x2f;libiconv&#x2f;libiconv&#x2d;1.13.tar.gz<br \/>\ntar&nbsp;xzf&nbsp;libiconv&#x2d;1.13.tar.gz&nbsp;<br \/>\ncd&nbsp;libiconv&#x2d;1.13<br \/>\n.&#x2f;configure&nbsp;&#x2d;&#x2d;prefix=&#x24;{HOME}&#x2f;applications&nbsp;&#x7c;&nbsp;tee&nbsp;configure.log&nbsp;2&gt;&amp;1<br \/>\nmake&nbsp;&#x7c;&nbsp;tee&nbsp;make.log&nbsp;2&gt;&amp;1<br \/>\nmake&nbsp;install&nbsp;&#x7c;&nbsp;tee&nbsp;make&#x2d;install.log&nbsp;2&gt;&amp;1&nbsp;\n<\/div>\n<p>\u3061\u306a\u307f\u306biconv\u306fglibc-common\u306b\u542b\u307e\u308c\u308b\u3002iconvconfig\u306fglibc\u306b\u542b\u307e\u308c\u308b\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x24;&nbsp;rpm&nbsp;&#x2d;ql&nbsp;glibc&#x2d;common&#x7c;grep&nbsp;iconv<br \/>\n&#x2f;usr&#x2f;bin&#x2f;iconv<br \/>\n&#x24;&nbsp;rpm&nbsp;&#x2d;ql&nbsp;glibc&#x7c;grep&nbsp;iconv<br \/>\n&#x2f;usr&#x2f;sbin&#x2f;iconvconfig<br \/>\n&#x2f;usr&#x2f;sbin&#x2f;iconvconfig.i686\n<\/div>\n<p>\u6b21\u306b chasen\u3002<a href=\"http:\/\/chasen-legacy.sourceforge.jp\/\">http:\/\/chasen-legacy.sourceforge.jp\/<\/a> \u304b\u3089 chasen-2.4.4.tar.gz\u53d6\u5f97\u3057\u307e\u3057\u305f\u3002LDFLAGS\u3092\u4f7f\u3063\u3066\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u3042\u308a\u304b\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b\u70b9\u306b\u6ce8\u610f\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">tar&nbsp;xzf&nbsp;chasen&#x2d;2.4.4.tar.gz&nbsp;<br \/>\ncd&nbsp;chasen&#x2d;2.4.4<br \/>\nLDFLAGS=&quot;&#x2d;L&#x24;{HOME}&#x2f;applications&#x2f;lib&quot;&nbsp;&#x5c;<br \/>\n.&#x2f;configure&nbsp;&#x2d;&#x2d;prefix=&#x24;{HOME}&#x2f;applications&nbsp;&#x5c;<br \/>\n&nbsp;&nbsp;&#x2d;&#x2d;with&#x2d;darts=&#x24;{HOME}&#x2f;applications&#x2f;include<br \/>\nmake&nbsp;&#x7c;&nbsp;tee&nbsp;make.log&nbsp;2&gt;&amp;1<br \/>\nmake&nbsp;install&nbsp;&#x7c;&nbsp;tee&nbsp;make&#x2d;install.log&nbsp;2&gt;&amp;1\n<\/div>\n<p>\u3042\u3068\u3067\u4f7f\u3046\u306e\u3067\u3001\u5148\u306btoUtf8.sh\u3068\u3044\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002EUC-JP\u306e\u30d5\u30a1\u30a4\u30eb\u3092UTF-8\u3078\u5909\u63db\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002CentOS\u306b\u306f iconv \u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002dic\u30d5\u30a1\u30a4\u30eb\u3084cha\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u63db\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u306e\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x23;&#x21;&#x2f;bin&#x2f;sh<br \/>\nfor&nbsp;suffix&nbsp;in&nbsp;cha&nbsp;dic<br \/>\ndo<br \/>\n&nbsp;&nbsp;for&nbsp;f&nbsp;in&nbsp;`ls&nbsp;*.&#x24;suffix`<br \/>\n&nbsp;&nbsp;do<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;[&nbsp;&#x2d;f&nbsp;&#x24;f&nbsp;]&#x3b;&nbsp;then<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&#x24;f<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iconv&nbsp;&#x2d;f&nbsp;euc&#x2d;jp&nbsp;&#x2d;t&nbsp;utf&#x2d;8&nbsp;&#x24;f&nbsp;&gt;&nbsp;tmpfile<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mv&nbsp;tmpfile&nbsp;&#x24;f<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;fi<br \/>\n&nbsp;&nbsp;done<br \/>\ndone<br \/>\nexit\n<\/div>\n<p><a href=\"http:\/\/sourceforge.jp\/projects\/ipadic\/\">http:\/\/sourceforge.jp\/projects\/ipadic\/<\/a> \u304b\u3089IPA\u8f9e\u66f8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002\u624b\u306b\u5165\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5c55\u958b\u3059\u308b\u3068ipadic-2.7.0\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u307e\u307e\u4f7f\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u540d\u524d\u3092ipadic-2.7.0-utf8\u306b\u5909\u66f4\u3057\u3066\u304b\u3089\u3001\u3082\u308d\u3082\u308d\u4f5c\u696d\u3002\u3042\u3089\u304b\u3058\u3081\u4f5c\u3063\u3066\u3042\u3063\u305f toUtf8.sh\u3092\u30b3\u30d4\u30fc\u3057\u3066\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">mv&nbsp;ipadic&#x2d;2.7.0&nbsp;ipadic&#x2d;2.7.0&#x2d;utf8<br \/>\ncd&nbsp;ipadic&#x2d;2.7.0&#x2d;utf8&#x2f;<br \/>\nPATH=&#x24;{HOME}&#x2f;applications&#x2f;bin&#x3a;&#x24;{PATH}&nbsp;.&#x2f;configure&nbsp;&#x2d;&#x2d;prefix=&#x24;{HOME}&#x2f;applications&#x2f;ipadic<br \/>\ncp&nbsp;&#x2d;a&nbsp;..&#x2f;toUtf8.sh&nbsp;.<br \/>\n.&#x2f;toUtf8.sh<br \/>\n`&#x24;{HOME}&#x2f;applications&#x2f;bin&#x2f;chasen&#x2d;config&nbsp;&#x2d;&#x2d;mkchadic`&#x2f;makemat&nbsp;&#x2d;i&nbsp;w<br \/>\n`&#x24;{HOME}&#x2f;applications&#x2f;bin&#x2f;chasen&#x2d;config&nbsp;&#x2d;&#x2d;mkchadic`&#x2f;makeda&nbsp;&#x2d;i&nbsp;w&nbsp;chadic&nbsp;*.dic<br \/>\nmkdir&nbsp;&#x24;{HOME}&#x2f;applications&#x2f;etc<br \/>\nmake&nbsp;install&nbsp;&#x7c;&nbsp;tee&nbsp;make&#x2d;install.log&nbsp;2&gt;&amp;1&nbsp;<br \/>\niconv&nbsp;&#x2d;f&nbsp;euc&#x2d;jp&nbsp;&#x2d;t&nbsp;utf&#x2d;8&nbsp;&#x24;{HOME}&#x2f;applications&#x2f;etc&#x2f;chasenrc&nbsp;&gt;&nbsp;&#x5c;<br \/>\n&nbsp;&nbsp;&#x24;{HOME}&#x2f;applications&#x2f;etc&#x2f;chasenrc.utf8<br \/>\nmv&nbsp;&nbsp;&#x24;{HOME}&#x2f;applications&#x2f;etc&#x2f;chasenrc.utf8&nbsp;&#x5c;<br \/>\n&nbsp;&nbsp;&#x24;{HOME}&#x2f;applications&#x2f;etc&#x2f;chasenrc<br \/>\necho&nbsp;&quot;\u6587\u5b57\u30b3\u30fc\u30c9\u5909\u66f4\u306e\u30c6\u30b9\u30c8\u3002&quot;&nbsp;&#x7c;&nbsp;&#x24;{HOME}&#x2f;applications&#x2f;bin&#x2f;chasen&nbsp;&#x2d;i&nbsp;w&nbsp;\n<\/div>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">\u6587\u5b57 \u30e2\u30b8 \u6587\u5b57 \u540d\u8a5e-\u4e00\u822c<br \/>\n\u30b3\u30fc\u30c9 \u30b3\u30fc\u30c9 \u30b3\u30fc\u30c9 \u540d\u8a5e-\u4e00\u822c<br \/>\n\u5909\u66f4 \u30d8\u30f3\u30b3\u30a6 \u5909\u66f4 \u540d\u8a5e-\u30b5\u5909\u63a5\u7d9a<br \/>\n\u306e \u30ce \u306e \u52a9\u8a5e-\u9023\u4f53\u5316<br \/>\n\u30c6\u30b9\u30c8 \u30c6\u30b9\u30c8 \u30c6\u30b9\u30c8 \u540d\u8a5e-\u30b5\u5909\u63a5\u7d9a<br \/>\n\u3002 \u3002 \u3002 \u8a18\u53f7-\u53e5\u70b9<br \/>\nEOS\n<\/div>\n<p>ruby\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u3044\u308d\u3044\u308d\u8a66\u3057\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u304d\u307e\u307e\u306b\u5165\u308c\u308b\u4e88\u5b9a\u306a\u306e\u3067\u3001CentOS\u306b\u3044\u308c\u3066\u3042\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u7248\u306f\u4f7f\u308f\u306a\u3044\u3002\u307e\u305f\u3001Ruby\/ChaSen\u3068\u304b\u304c\u3001\u5909\u306a\u3075\u3046\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3089\u9762\u5012\u306a\u306e\u3067\u3001\u3068\u306b\u304b\u304f\u7c21\u5358\u306b\u623b\u305b\u308b\u3088\u3046\u306b\u5225\u9014\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u3044\u3056\u3068\u306a\u3063\u305f\u3089\u5165\u308c\u76f4\u3057\u3002\u624b\u5143\u3067\u4f5c\u6210\u3057\u305f\u30b5\u30f3\u30d7\u30eb\u304c\u591a\u30441.8.7\u3092\u9078\u629e\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">cd&nbsp;ruby&#x2d;1.8.7&#x2d;p334<br \/>\n.&#x2f;configure&nbsp;&#x2d;&#x2d;prefix=&#x24;{HOME}&#x2f;applications&#x2f;ruby&#x2d;1.8.7<br \/>\nmake&nbsp;&#x7c;&nbsp;tee&nbsp;make.log&nbsp;2&gt;&amp;1<br \/>\nmake&nbsp;install&nbsp;&#x7c;&nbsp;tee&nbsp;make&#x2d;install.log&nbsp;2&gt;&amp;1<br \/>\n&#x24;{HOME}&#x2f;applications&#x2f;ruby&#x2d;1.8.7&#x2f;bin&#x2f;ruby&nbsp;&#x2d;&#x2d;version\n<\/div>\n<p>\u6b21\u306f Ruby\/ChaSen\u3002<a href=\"http:\/\/raa.ruby-lang.org\/project\/ruby-chasen\">http:\/\/raa.ruby-lang.org\/project\/ruby-chasen<\/a> \u304b\u3089 chasen1.7.tar.gz \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3002ChaSen\u3068\u9593\u9055\u3048\u306a\u3044\u3088\u3046\u306b\u3001\u5c55\u958b\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u306f\u5909\u66f4\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">mv&nbsp;chasen1.7.tar.gz&nbsp;ruby&#x2d;chasen&#x2d;1.7.tar.gz<br \/>\ntar&nbsp;xzf&nbsp;ruby&#x2d;chasen&#x2d;1.7.tar.gz<br \/>\nmv&nbsp;chasen1.7&nbsp;ruby&#x2d;chasen&#x2d;1.7<br \/>\ncd&nbsp;ruby&#x2d;chasen&#x2d;1.7&#x2f;<br \/>\n&#x24;{HOME}&#x2f;applications&#x2f;ruby&#x2d;1.8.7&#x2f;bin&#x2f;ruby&nbsp;extconf.rb&nbsp;&#x5c;<br \/>\n&nbsp;&nbsp;&nbsp;&#x2d;&#x2d;with&#x2d;chasen&#x2d;dir=&#x24;{HOME}&#x2f;applications<br \/>\nmake&nbsp;&#x7c;&nbsp;tee&nbsp;make.log&nbsp;2&gt;&amp;1<br \/>\nmake&nbsp;install&nbsp;&#x7c;&nbsp;tee&nbsp;make&#x2d;install.log&nbsp;2&gt;&amp;1\n<\/div>\n<p>\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4f5c\u6210\u3068\u5b9f\u884c<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">mkdir -p ${HOME}\/workspace\/ruby\/ruby-chasen<br \/>\ncd ${HOME}\/workspace\/ruby\/ruby-chasen<br \/>\nvi test.rb<br \/>\n${HOME}\/applications\/ruby-1.8.7\/bin\/ruby test.rb\n<\/div>\n<p>\u30c6\u30b9\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0 test.rb \u306e\u5185\u5bb9\u306f\u6b21\u306e\u901a\u308a\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x23;&nbsp;&#x2d;*&#x2d;&nbsp;coding&#x3a;&nbsp;utf&#x2d;8&nbsp;&#x2d;*&#x2d;<br \/>\nrequire&nbsp;&quot;chasen.so&quot;<br \/>\n&#x23;Chasen.getopt(&quot;&#x2d;F&quot;,&nbsp;&#x27;(&#x25;BB&nbsp;&#x25;m&nbsp;&#x25;M)&#x5c;n&#x27;,&nbsp;&quot;&#x2d;j&quot;)<br \/>\nChasen.getopt(&quot;&#x2d;F&quot;,&nbsp;&#x27;(&#x25;BB&nbsp;&#x25;m&nbsp;&#x25;M)&#x5c;n&#x27;,&nbsp;&quot;&#x2d;i&quot;,&nbsp;&quot;w&quot;)<br \/>\nputs&nbsp;Chasen.sparse(&quot;\u3053\u3093\u306b\u3061\u306f\u3002&quot;)<br \/>\nputs&nbsp;Chasen.sparse(&quot;\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u3002\u3053\u3093\u306b\u3061\u306f\u3002&quot;)\n<\/div>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u6b21\u306e\u901a\u308a\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">(\u611f\u52d5\u8a5e \u3053\u3093\u306b\u3061\u306f \u3053\u3093\u306b\u3061\u306f)<br \/>\n(\u53e5\u70b9 \u3002 \u3002)<br \/>\nEOS<br \/>\n(\u526f\u8a5e\u53ef\u80fd \u4eca\u65e5 \u4eca\u65e5)<br \/>\n(\u4fc2\u52a9\u8a5e \u306f \u306f)<br \/>\n(\u81ea\u7acb \u3044\u3044 \u3044\u3044)<br \/>\n(\u4e00\u822c \u5929\u6c17 \u5929\u6c17)<br \/>\n(\u52a9\u52d5\u8a5e \u3067\u3059 \u3067\u3059)<br \/>\n(\u53e5\u70b9 \u3002 \u3002)<br \/>\n(\u611f\u52d5\u8a5e \u3053\u3093\u306b\u3061\u306f \u3053\u3093\u306b\u3061\u306f)<br \/>\n(\u53e5\u70b9 \u3002 \u3002)<br \/>\nEOS\n<\/div>\n<p>\u25a0\u95a2\u9023\u30ea\u30f3\u30af<\/p>\n<ul>\n<li><a href=\"\/\/www.sssg.org\/blogs\/hiro345\/archives\/4627.html\">ChaSen\u3068Ruby\u3092Mac OS \u3078\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb &#8211; hiro345<\/a><\/li>\n<\/ul>\n<p>\u25a0\u95a2\u9023\u66f8\u7c4d &#8230; \u95a2\u9023\u66f8\u7c4d\u304c\u3042\u308b\u304b\u8abf\u3079\u3066\u898b\u307e\u3057\u305f\u304c\u3001\u5f62\u614b\u7d20\u89e3\u6790\u3092Ruby\u3067\u3084\u308b\u4eba\u306f\u5c11\u306a\u3044\u306e\u3067\u3059\u304b\u306d\u3002\u3053\u3046\u3044\u3046\u306e\u3092\u3084\u308b\u4eba\u306f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306b\u306f\u3042\u307e\u308a\u4f9d\u5b58\u3057\u306a\u3044\u3060\u3051\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c&#8230; Ruby\u306b\u3053\u3060\u308f\u3089\u305a\u53c2\u8003\u3068\u306a\u308a\u305d\u3046\u306a\u66f8\u7c4d\u3092\u4e00\u89a7\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4873113644&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><br \/>\n<iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4627828519&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><br \/>\n<iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4873114705&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><br \/>\n<iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4839917299&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><br \/>\n<iframe src=\"\/\/rcm-jp.amazon.co.jp\/e\/cm?t=hiro345-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4774141755&#038;ref=tf_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eee\u60f3\u30de\u30b7\u30f3\u30db\u30b9\u30c8\u306eOS\u3078\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u30db\u30b9\u30c8\u3092\u5909\u66f4\u3057\u305f\u3068\u304d\u306b\u74b0\u5883\u518d\u69cb\u7bc9\u3068\u306a\u308b\u306e\u3067\u30b2\u30b9\u30c8\u4eee\u60f3\u30de\u30b7\u30f3\u3068\u3057\u3066CentOS\u3092\u7528\u610f\u3057\u3001\u305d\u3053 \u3078 Chasen\u3068Ruby\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u305f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-6248","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/6248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/comments?post=6248"}],"version-history":[{"count":3,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/6248\/revisions"}],"predecessor-version":[{"id":6251,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/6248\/revisions\/6251"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=6248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=6248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=6248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}