{"id":602,"date":"2011-01-06T12:31:43","date_gmt":"2011-01-06T03:31:43","guid":{"rendered":"http:\/\/wp.kaz.bz\/tech\/?p=602"},"modified":"2011-01-06T12:36:38","modified_gmt":"2011-01-06T03:36:38","slug":"php-5-3-x%e3%81%ab-pecl-perl-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%99%e3%82%8b%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88","status":"publish","type":"post","link":"https:\/\/wp.kaz.bz\/tech\/2011\/01\/06\/602.html","title":{"rendered":"PHP 5.3.x\u306b PECL-perl \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8"},"content":{"rendered":"<p>PHP\u304b\u3089perl\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b pecl \u30e9\u30a4\u30d6\u30e9\u30ea\u306e PECL-perl \u3092\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3002<br \/>\nPECL-perl <a href=\"http:\/\/pecl.php.net\/package\/perl\" class=\"ext-link\" rel=\"external nofollow\" target=\"_blank\">http:\/\/pecl.php.net\/package\/perl<\/a><\/p>\n<p>perl-1.0.0 \u3092\u30d9\u30fc\u30b9\u306b\u3001PHP 5.3 \u4ee5\u964d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3089\u3057\u3044\u306e\u3067\u305d\u306e\u305f\u3081\u306e\u30d1\u30c3\u30c1\u306a\u3069\u306b\u5bfe\u5fdc\u3057\u305f\u3082\u306e\u3067\u3059\u3002<br \/>\n\u203bSVN \u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u843d\u3068\u3057\u3066\u304f\u308c\u3070\u826f\u3055\u305d\u3046\u3067\u3059\u304c\u3002<\/p>\n<p>\u30fbSVN\u304b\u3089\u6700\u65b0\u306e php_perl.c \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\n\u30fbphp_perl.h \u306b #define PHP_PERL_VERSION 0 \u3092\u8ffd\u8a18<\/p>\n<p>\u3067\u3059\u3002<br \/>\n\uff08\u53c2\u7167\uff09<br \/>\n<a href=\"http:\/\/www.wowtutorial.org\/linux-servers\/how-compile-php-53x-support-perl-extensions-344.html\" class=\"ext-link\" rel=\"external nofollow\" target=\"_blank\">http:\/\/www.wowtutorial.org\/linux-servers\/how-compile-php-53x-support-perl-extensions-344.html<\/a><br \/>\n<a href=\"http:\/\/pecl.php.net\/bugs\/bug.php?id=17976\" class=\"ext-link\" rel=\"external nofollow\" target=\"_blank\">http:\/\/pecl.php.net\/bugs\/bug.php?id=17976<\/a><\/p>\n<pre class=\"brush:bash\">\r\n#! \/bin\/sh\r\n\r\nPACK=perl-1.0.0\r\n\r\n\r\npatch_php_perl_h() {\r\n\r\nlocal TMPPATCH=\/tmp\/tmp.patch\r\n\r\n\r\ncat > ${TMPPATCH} << _EOT_\r\n*** php_perl.h  2011-01-06 11:26:35.000000000 +0900\r\n--- php_perl.h2 2011-01-06 11:26:59.000000000 +0900\r\n***************\r\n*** 35,38 ****\r\n--- 35,39 ----\r\n  #include \"TSRM.h\"\r\n  #endif\r\n  \r\n+ #define PHP_PERL_VERSION 0\r\n  #endif\r\n_EOT_\r\n\r\n\r\npatch < ${TMPPATCH}\r\nrm -rf ${TMPPATCH}\r\n}\r\n\r\n\r\n\r\n\r\n# main process\r\n\r\n# Download: perl-1.0.0.tgz\r\nwget http:\/\/pecl.php.net\/get\/${PACK}.tgz\r\ntar zxvf ${PACK}.tgz\r\n\r\n# Download: newer version of php_perl.h\r\nwget -O ${PACK}\/php_perl.c http:\/\/svn.php.net\/viewvc\/pecl\/perl\/trunk\/php_perl.c?revision=289243&view=co\r\n\r\n\r\ncd ${PACK}\r\n\r\n# patch to php_perl.h\r\npatch_php_perl_h\r\n\r\n# install\r\nphpize\r\n.\/configure\r\nmake\r\nmake install\r\n\r\n\r\n\r\necho \"php.ini \u306b\u4e0b\u8a18\u3092\u8ffd\u8a18\u3057 httpd \u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"\r\necho \"extension=perl.so\"\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u304b\u3089perl\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b pecl \u30e9\u30a4\u30d6\u30e9\u30ea\u306e PECL-perl \u3092\u30bd\u30fc\u30b9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3002 PECL-perl http:\/\/pecl.php.net\/package\/perl  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[24],"tags":[],"class_list":["post-602","post","type-post","status-publish","format-standard","hentry","category-php"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2663,"url":"https:\/\/wp.kaz.bz\/tech\/2021\/09\/21\/2663.html","url_meta":{"origin":602,"position":0},"title":"AlmaLinux 8 \u6a19\u6e96\u30ea\u30dd\u30b8\u30c8\u30ea\u3067 WordPress \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u74b0\u5883\u69cb\u7bc9\u3002","author":"kaz. Suenaga","date":"2021\/09\/21","format":false,"excerpt":"remi \u3092\u4f7f\u308f\u305a\u306b\u8a2d\u5b9a\u3059\u308b\u30e1\u30e2\u3002 epel \u306f\u4f7f\u3046\u3002powertools \u3082\u4f7f\u3046\u3002 httpd 2\u2026","rel":"","context":"AlmaLinux","block_context":{"text":"AlmaLinux","link":"https:\/\/wp.kaz.bz\/tech\/category\/lin\/almalinux"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":53,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/02\/05\/53.html","url_meta":{"origin":602,"position":1},"title":"\u53ef\u5909\u95a2\u6570\u30fb\u53ef\u5909\u5909\u6570","author":"kaz. Suenaga","date":"2008\/02\/05","format":false,"excerpt":"\u3044\u3064\u3082\u5fd8\u308c\u304b\u3051\u308b\u306e\u3067\u30e1\u30e2\u3002 \u53ef\u5909\u95a2\u6570 http:\/\/jp.php.net\/manual\/ja\/fun\u2026","rel":"","context":"PHP","block_context":{"text":"PHP","link":"https:\/\/wp.kaz.bz\/tech\/category\/langs\/php"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":37,"url":"https:\/\/wp.kaz.bz\/tech\/2008\/06\/20\/37.html","url_meta":{"origin":602,"position":2},"title":"PHP\u306e\u7f6e\u63dbTips\uff08str_replace \u306b\u914d\u5217\u3092\uff09\u3002","author":"kaz. Suenaga","date":"2008\/06\/20","format":false,"excerpt":"PHP\u306e\u7f6e\u63dbTips\u3002 str_replace [1]\u306e\u5f15\u6570\u306b\u306f\u914d\u5217\u304c\u4f7f\u3048\u308b\u3002 str_replac\u2026","rel":"","context":"PHP","block_context":{"text":"PHP","link":"https:\/\/wp.kaz.bz\/tech\/category\/langs\/php"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2804,"url":"https:\/\/wp.kaz.bz\/tech\/2024\/04\/14\/2804.html","url_meta":{"origin":602,"position":3},"title":"\u3068\u3042\u308b\u30cf\u30f3\u30ba\u30aa\u30f3\u306e\u30b3\u30fc\u30c9\u3092\uff08docker\u3092\u4f7f\u308f\u305a\uff09 Almalinux9 \u74b0\u5883\u3067\u52d5\u304b\u3057\u3066\u307f\u305f\u30e1\u30e2\u3002","author":"kaz. Suenaga","date":"2024\/04\/14","format":false,"excerpt":"\u5148\u65e5\u53c2\u52a0\u3057\u305f \u3068\u3042\u308b\u52c9\u5f37\u4f1a\uff08\u30cf\u30f3\u30ba\u30aa\u30f3\uff09 \u3067\u624b\u9806\u3068\u3057\u3066\u4f7f\u3046\u3053\u3068\u3068\u306a\u308a\u3001 Visual Studio \u2026","rel":"","context":"\u3068\u308a\u3042\u3048\u305a\u30e1\u30e2","block_context":{"text":"\u3068\u308a\u3042\u3048\u305a\u30e1\u30e2","link":"https:\/\/wp.kaz.bz\/tech\/category\/memo_tmp"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1356,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/08\/17\/1356.html","url_meta":{"origin":602,"position":4},"title":"CentOS\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u7248OpenSSL\u3092\u4f7f\u3044\u3064\u3064 imap \u306f\u30bd\u30fc\u30b9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002","author":"kaz. Suenaga","date":"2012\/08\/17","format":false,"excerpt":"\u53c2\u8003\uff09 http:\/\/ja.528p.com\/linux\/centos\/SL002-imap-mcr\u2026","rel":"","context":"PHP","block_context":{"text":"PHP","link":"https:\/\/wp.kaz.bz\/tech\/category\/langs\/php"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1136,"url":"https:\/\/wp.kaz.bz\/tech\/2012\/02\/23\/1136.html","url_meta":{"origin":602,"position":5},"title":"Apache HTTP Server 2.4.1 \u304c\u30ea\u30ea\u30fc\u30b9\u3002","author":"kaz. Suenaga","date":"2012\/02\/23","format":false,"excerpt":"\u30ea\u30ea\u30fc\u30b9 2.2\u304b\u3089\u306f\u3060\u3044\u3076\u5909\u308f\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001\u3053\u306e\u5148\u3061\u307e\u3061\u307e\u30e1\u30e2\u3092\u3042\u3052\u3066\u3044\u304d\u307e\u3059\u3002 \u73fe\u6642\u70b9\u3067\u308f\u2026","rel":"","context":"Apache 2.4","block_context":{"text":"Apache 2.4","link":"https:\/\/wp.kaz.bz\/tech\/category\/servers\/apache\/httpd-2-4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/comments?post=602"}],"version-history":[{"count":0,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/posts\/602\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/media?parent=602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/categories?post=602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.kaz.bz\/tech\/wp-json\/wp\/v2\/tags?post=602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}