{"id":143,"date":"2008-01-09T21:38:57","date_gmt":"2008-01-09T12:38:57","guid":{"rendered":"http:\/\/ke-tai.org\/blog\/2008\/01\/09\/mod_chxj_install\/"},"modified":"2008-01-10T01:43:11","modified_gmt":"2008-01-09T16:43:11","slug":"mod_chxj_install","status":"publish","type":"post","link":"http:\/\/ke-tai.org\/blog\/2008\/01\/09\/mod_chxj_install\/","title":{"rendered":"\u7d75\u6587\u5b57\u3084\u753b\u50cf\u306e\u81ea\u52d5\u5909\u63db\u3092\u884c\u3063\u3066\u304f\u308c\u308bApache\u30e2\u30b8\u30e5\u30fc\u30eb\u300cmod_chxj\u300d\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u305f(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u7de8)"},"content":{"rendered":"<p>mod_chxj\u306f\u3001\u30e6\u30fc\u30b6\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304b\u3089\u7aef\u672b\u3092\u5224\u65ad\u3057\u3001\u7d75\u6587\u5b57\u3084\u753b\u50cf\u306e3\u30ad\u30e3\u30ea\u30a2\u5909\u63db\u3092\u81ea\u52d5\u51e6\u7406\u3059\u308bApache\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002<\/p>\n<p>\u5148\u65e5\u306e<a href=\"http:\/\/ke-tai.org\/blog\/2007\/12\/28\/mod_ktai\/\">\u3053\u3061\u3089\u306e\u767a\u8868<\/a>\u3067\u3001\u306a\u305c\u304b\u4eca\u9803\u306b\u306a\u3063\u3066\u6ce8\u76ee\u3092\u6d74\u3073\u3064\u3064\u3042\u308b\u3053\u306e\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>mod_chxj\u306f\u30012006\u5e747\u6708\u306e\u30d0\u30fc\u30b8\u30e7\u30f30.8.0\u304b\u3089\u30ea\u30ea\u30fc\u30b9\u304c\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u4eca\u5f8c\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u3055\u308c\u308b\u304b\u3069\u3046\u304b\u3082\u4e0d\u660e\u3067\u3001\u7aef\u672b\u30c7\u30fc\u30bf\u3082\u53e4\u3044\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3068\u308a\u3042\u3048\u305a\u8a55\u4fa1\u76ee\u7684\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u52d5\u4f5c\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u3054\u7d39\u4ecb\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u306e\u30b5\u30fc\u30d0\u306e\u74b0\u5883\u3068\u3057\u3066\u306f\u3001<br \/>\n\u300cCentOS5 + Apache2.2(httpd-2.2.3-11.el5.centos)\u300d<br \/>\n\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u74b0\u5883\u304c\u9055\u3046\u65b9\u306f\u9069\u5b9c\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3053\u3061\u3089\u306b\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u306b\u6cbf\u3063\u3066\u4f5c\u696d\u3057\u3066\u3044\u304f\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u2192\u3000<a href=\"http:\/\/cvs.sourceforge.jp\/cgi-bin\/viewcvs.cgi\/modchxj\/mod_chxj\/doc\/modchxj.html?rev=1.20\" target=\"_blank\">mod_chxj \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a> <small>[sourceforge.jp]<\/small><\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u307e\u305a\u306f\u52d5\u4f5c\u306b\u5fc5\u8981\u306a\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3088\u308b\u3068\u6b21\u306e\u3082\u306e\u304c\u5fc5\u8981\u306a\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><small><em>mod_chxj\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u524d\u306b\u3001\u4e0b\u8a18\u306e\u3082\u306e\u3092\u7528\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n1. Apache2.0\u306e\u30d8\u30c3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u7fa4<br \/>\n2. Apache2.0\u7528\u306eapxs<br \/>\n3. apr(Apache Portable Runtime)\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u305d\u306e\u30d8\u30c3\u30c0\u30d5\u30a1\u30a4\u30eb\u90e1(apu\u542b\u3080)<br \/>\n4. automake\u3001autoconf\u3001libtool1.3.X<br \/>\n5. ImageMagick(MagickWand)<br \/>\n6. libiconv\u307e\u305f\u306flibiconv_hook<br \/>\n<\/em><\/small><\/p>\n<p>yum\u3092\u4f7f\u3063\u3066\u9806\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"super-pre\"><code># yum install httpd-devel\r\n# yum install automake autoconf\r\n# yum install libtool\r\n# yum install ImageMagick\r\n# yum install ImageMagick-devel\r\n# yum install pcre-devel\r\n<\/code><\/pre>\n<p>libiconv\u306fyum\u306b\u306a\u304b\u3063\u305f\u305f\u3081\u3001<a href=\"http:\/\/www.gnu.org\/software\/libiconv\/\" target=\"_blank\">\u3053\u3061\u3089<\/a><small> [gnu.org]<\/small>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"super-pre\"><code>$ .\/configure\r\n$ make\r\n# make install\r\n<\/code><\/pre>\n<p>\u3055\u3066\u3053\u308c\u3067\u6e96\u5099\u304c\u6574\u3063\u305f\u306e\u3067\u3001\u6b21\u306fmod_chxj\u672c\u4f53\u306emake\u306a\u306e\u3067\u3059\u304c\u3001\u79c1\u306e\u74b0\u5883\u3067\u306fApache2.2\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u306e\u307e\u307e\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u3082\u901a\u308a\u307e\u305b\u3093\u3002<br \/>\n2.2\u7cfb\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u5148\u306b\u30d1\u30c3\u30c1\u3092\u5f53\u3066\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n2.0\u7cfb\u306e\u65b9\u306f\u305d\u306e\u307e\u307e\u884c\u3051\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30c3\u30c1\u306f\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8\u3092\u53c2\u8003\u306b\u4f5c\u6210\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<br \/>\n\u2192\u3000<a href=\"http:\/\/d.hatena.ne.jp\/Bayside\/20080105\/p1\" target=\"_blank\">Devel::Bayside\u3000mod_chxj \u3092 Apache 2.2 \u3067\u52d5\u304b\u3059<\/a> <small>[hatena.ne.jp]<\/small><\/p>\n<p>\u30d1\u30c3\u30c1\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306f\u3053\u3061\u3089\u304b\u3089\u3069\u3046\u305e<br \/>\n\u2192\u3000<a href=\"http:\/\/ke-tai.org\/archives\/mod_chxj-0.8.0_apache2.2_patch.tar.gz\">mod_chxj-0.8.0_apache2.2_patch.tar.gz<\/a>\u3000<small>[ke-tai.org]<\/small><\/p>\n<pre class=\"super-pre\"><code>$ tar xvfz mod_chxj-0.8.0.src.tar.gz\r\n$ cd mod_chxj-0.8.0\r\n\r\n\u203b\u4ee5\u4e0bApache2.2\u7cfb\u306e\u65b9\u306e\u307f\r\n$ patch src\/mod_chxj.c &lt; ..\/mod_chxj.c.2.2.patch\r\n$ patch src\/chxj_cookie.c &lt; ..\/chxj_cookie.c.2.2.patch<\/code><\/pre>\n<p>mod_chxj\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"super-pre\"><code>$ .\/buildconf.sh\r\n$ .\/configure --with-apache-header=\/usr\/include\/httpd\/\r\n--with-apr-config=\/usr\/bin\/apr-1-config\r\n--with-apu-config=\/usr\/bin\/apu-1-config\u3000\u203b\u5b9f\u969b\u306b\u306f1\u884c\u3067\u5b9f\u884c\r\n$ make\r\n# make install\r\n<\/code><\/pre>\n<p>CentOS5\u306e\u5834\u5408\u306f\u3001\u306a\u305c\u304bapr\u3068apu\u306b\u300c-1\u300d\u304c\u3064\u3044\u3066\u3044\u305f\u305f\u3081\u3001\u4e0a\u8a18\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u3064\u3051\u307e\u3057\u305f\u3002<br \/>\n\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u4e0d\u8981\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u8a73\u3057\u304f\u306f\u300c.\/configure &#8211;help\u300d\u3067\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u3067\u300c\/usr\/lib\/httpd\/modules\/mod_chxj.so\u300d\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\u3002<br \/>\n\u7d9a\u3044\u3066\u7aef\u672b\u30c7\u30fc\u30bf\u3068\u7d75\u6587\u5b57\u30c7\u30fc\u30bf\u306e\u7f6e\u304d\u5834\u6240\u3092\u4f5c\u308a\u3001\u30c7\u30fc\u30bf\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"super-pre\"><code># mkdir \/etc\/httpd\/chxj\r\n# cp etc\/device_data.xml \/etc\/httpd\/chxj\/\r\n# cp etc\/emoji.xml \/etc\/httpd\/chxj\/\r\n<\/code><\/pre>\n<p>mod_chxj\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"super-pre\"><code># vi \/etc\/httpd\/conf.d\/chxj.conf\r\n<\/code><\/pre>\n<p>\u5185\u5bb9\u306f\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\u8a73\u3057\u304f\u306fmod_chxj\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30da\u30fc\u30b8\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"super-pre\"><code># Load module mod_chxj\r\nLoadModule chxj_module \/usr\/lib\/httpd\/modules\/mod_chxj.so\r\n\r\n# Device data\r\nChxjLoadDeviceData  \/etc\/httpd\/chxj\/device_data.xml\r\n\r\n# Emoji data\r\nChxjLoadEmojiData   \/etc\/httpd\/chxj\/emoji.xml<\/code><\/pre>\n<p>\u8a2d\u5b9a\u304c\u6b63\u3057\u3044\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"super-pre\"><code># apachectl configtest\r\n<\/code><\/pre>\n<p>\u3053\u3053\u3067\u3001<br \/>\n<small>httpd: Syntax error on line 210 of \/etc\/httpd\/conf\/httpd.conf: Syntax error on line 2 of \/etc\/httpd\/conf.d\/chxj.conf: Cannot load \/usr\/lib\/httpd\/modules\/mod_chxj.so into server: libiconv.so.2: cannot open shared object file: No such file or directory<br \/>\n<\/small>\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u306f\u3001libiconv\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8aad\u307f\u8fbc\u3081\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3072\u3068\u307e\u305a\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u5f35\u3063\u3066\u3054\u307e\u304b\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\n\uff08\u4f55\u304b\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u6559\u3048\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<pre class=\"super-pre\"><code># ln -s \/usr\/local\/lib\/libiconv.so.2 \/usr\/lib\/\r\n<\/code><\/pre>\n<p>\u30a8\u30e9\u30fc\u304c\u51fa\u306a\u304f\u306a\u3063\u305f\u3089Apache\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"super-pre\"><code># apachectl configtest\r\nSyntax OK\r\n# \/etc\/init.d\/httpd restart\r\nhttpd \u3092\u505c\u6b62\u4e2d:                                    [  OK  ]\r\nhttpd \u3092\u8d77\u52d5\u4e2d:                                    [  OK  ]\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u52d5\u4f5c\u6e96\u5099OK\u3067\u3059\u3002<\/p>\n<p class=\"spacer-small\">&nbsp;<\/p>\n<p>\u7d9a\u3044\u3066mod_chxj\u306e\u8a2d\u5b9a\u3092\u66f8\u304d\u307e\u3059\u3002<br \/>\nhttpd.conf\u306b\u66f8\u3044\u3066\u3082\u826f\u3044\u306e\u3067\u3059\u304c\u3001\u79c1\u306f.htaccess\u306b\u66f8\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\nmod_chxj\u3092\u52d5\u4f5c\u3055\u305b\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3001\u6b21\u306e\u5185\u5bb9\u3067.htaccess\u3092\u7f6e\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"super-pre\"><code>&lt;IfModule mod_chxj.c&gt;\r\n  ChxjConvertRule     \".+$\" \"EngineOn\" \"NONE\"\r\n  ChxjImageEngine     On\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<p>HTML\u3092\u8a2d\u7f6e\u3057\u30b1\u30fc\u30bf\u30a4\u304b\u3089\u78ba\u8a8d\u3059\u308b\u3068\u3001\u78ba\u304b\u306b\u30c9\u30b3\u30e2\u304b\u3089\u306f\u898b\u308c\u306a\u3044\u306f\u305a\u306ePNG\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u30bd\u30d5\u30c8\u30d0\u30f3\u30af\u3067\u306f\u7d75\u6587\u5b57\u306e\u5909\u63db\u3082\u884c\u308f\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/ke-tai.org\/blog\/wp-content\/uploads\/2008\/01\/20080109-212133.jpg\" alt=\"20080109-212133.jpg\" \/><\/p>\n<p class=\"spacer\">&nbsp;<\/p>\n<p><strong><em>\u95a2\u9023\uff1a<\/em><\/strong><\/p>\n<ul>\n<li><em><a href=\"http:\/\/ke-tai.org\/blog\/2007\/12\/28\/mod_ktai\/\">\u3086\u3081\u307f\u30013\u30ad\u30e3\u30ea\u30a2\u5bfe\u5fdc\u7528\u306eApache\u30e2\u30b8\u30e5\u30fc\u30eb\u300cmod_ktai\u300d\u3092\u958b\u767a\u4e2d<\/a><\/em><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>mod_chxj\u306f\u3001\u30e6\u30fc\u30b6\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u304b\u3089\u7aef\u672b\u3092\u5224\u65ad\u3057\u3001\u7d75\u6587\u5b57\u3084\u753b\u50cf\u306e3\u30ad\u30e3\u30ea\u30a2\u5909\u63db\u3092\u81ea\u52d5\u51e6\u7406\u3059\u308bApache\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002 \u5148\u65e5\u306e\u3053\u3061\u3089\u306e\u767a\u8868\u3067\u3001\u306a\u305c\u304b\u4eca\u9803\u306b\u306a\u3063\u3066\u6ce8\u76ee\u3092\u6d74\u3073\u3064\u3064\u3042\u308b\u3053\u306e\u30bd\u30d5\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u307e\u3057 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8],"tags":[],"_links":{"self":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts\/143"}],"collection":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":0,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"wp:attachment":[{"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ke-tai.org\/blog\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}