{"id":2278,"date":"2007-10-06T20:46:23","date_gmt":"2007-10-06T11:46:23","guid":{"rendered":"http:\/\/www.sssg.org\/blogs\/hiro345\/archives\/2278.html"},"modified":"2009-12-03T07:08:54","modified_gmt":"2009-12-02T22:08:54","slug":"pr-2","status":"publish","type":"post","link":"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/2278.html","title":{"rendered":"Permanent Link to How to compile PHP5 on 64bit Linux (CentOS)"},"content":{"rendered":"<p>\u7d50\u69cb\u306f\u307e\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3067\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u300264bit\u74b0\u5883\u306eCentOS \u3067 PHP5 \u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u306e\u3067\u3059\u304c\u3001Apache\u7528\u306eDSO\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f5c\u308b\u307e\u3067\u304c\u5927\u5909\u3067\u3057\u305f\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u307e\u3041\u3001\u7d30\u304b\u3044\u3053\u3068\u306f\u3069\u3046\u3042\u308c\u3001\u8981\u306f64bit\u74b0\u5883\u3067\u306fCFLAGS\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u3044\u304b\u3093\u3089\u3057\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u4f55\u3082\u6307\u5b9a\u3057\u306a\u3044\u3068\u3001libxml2 \u304c32bit\u74b0\u5883\u7528\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3055\u308c\u3066\u3057\u307e\u3046\u3089\u3057\u304f\u3066\u3001so\u304c\u751f\u6210\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>&#8211; 64bit\u74b0\u5883<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x23;&nbsp;CC=gcc&nbsp;CFLAGS=&quot;-fPIC&quot;&nbsp;&#x5c;<br \/>\n.&#x2f;configure&nbsp;prefix=&#x2f;usr&#x2f;local&#x2f;php&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;with-apxs2=&#x2f;usr&#x2f;local&#x2f;apache2&#x2f;bin&#x2f;apxs&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;enable-mbstring&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;enable-mbstr-enc-trans&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;enable-mbregex&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;enable-sockets&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;with-mhash=&#x2f;usr&#x2f;local&#x2f;lib&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;with-mcrypt&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;with-mysql=&#x2f;usr&#x2f;local&#x2f;mysql&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;enable-zend-multibyte&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;disable-cgi&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;enable-inline-optimization&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;enable-sigchild&nbsp;\u2013enable-exif&nbsp;\u2013enable-ftp&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;with-gd&nbsp;\u2013with-zlib-dir=&#x2f;usr&#x2f;lib&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;with-jpeg-dir=&#x2f;usr&#x2f;lib&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;with-png-dir=&#x2f;usr&#x2f;lib&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;with-freetype-dir=&#x2f;usr&#x2f;lib\n<\/div>\n<p>\u5fc5\u8981\u304b\u3069\u3046\u304b\u308f\u304b\u308a\u307e\u305b\u3093\u304c\u3001configure\u3067\u4f5c\u6210\u3055\u308c\u305flibtool\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002<\/p>\n<p> # vi libtool<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">dlopen_support=yes<br \/>\ndlopen_self=yes<br \/>\ndlopen_self_static=no\n<\/div>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u306e\u30ed\u30b0\u306f\u3068\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x23;&nbsp;make&nbsp;2&gt;&amp;1&nbsp;&#x7c;&nbsp;tee&nbsp;..&#x2f;php-5.1.4.make.log<\/div>\n<p>\u30b3\u30f3\u30d1\u30a4\u30eb\u304c\u7d42\u308f\u3063\u3066\u304b\u3089\u3001<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x23;&nbsp;cat&nbsp;..&#x2f;php-5.1.4.make.log&nbsp;&#x7c;&nbsp;grep&nbsp;libphp5.la&nbsp;\n<\/div>\n<p>\u3067\u8868\u793a\u3055\u308c\u308b\u304b\u306a\u308a\u9577\u3044\u30b3\u30de\u30f3\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x2f;bin&#x2f;sh&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;php-5.1.4&#x2f;libtool&nbsp;&#x5c;<br \/>\n&nbsp;&#x2D;&#x2D;silent&nbsp;&#x2D;&#x2D;preserve-dup-deps&nbsp;&#x2D;&#x2D;mode=link&nbsp;&#x5c;<br \/>\ngcc&nbsp;&#x5c;<br \/>\n(\u7565)<br \/>\n-o&nbsp;libphp5.la\n<\/div>\n<p> \u2193<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x2f;bin&#x2f;sh&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;php-5.1.4&#x2f;libtool&nbsp;&#x5c;<br \/>\n&#x2D;&#x2D;silent&nbsp;&#x2D;&#x2D;preserve-dup-deps&nbsp;&#x2D;&#x2D;mode=link&nbsp;&#x5c;<br \/>\ngcc&nbsp;-shared&nbsp;&#x5c;<br \/>\n(\u7565)<br \/>\n-o&nbsp;libphp5.so\n<\/div>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x2f;bin&#x2f;sh&nbsp;&#x2f;usr&#x2f;local&#x2f;src&#x2f;php-5.1.4&#x2f;libtool&nbsp;&#x5c;<br \/>\n&#x2D;&#x2D;silent&nbsp;&#x2D;&#x2D;preserve-dup-deps&nbsp;&#x2D;&#x2D;mode=link&nbsp;&#x5c;<br \/>\ngcc&nbsp;-shared&nbsp;&#x5c;<br \/>\n(\u7565)<br \/>\n-o&nbsp;libphp5.so\n<\/div>\n<p>\u51fa\u6765\u4e0a\u304c\u3063\u305f\u30d5\u30a1\u30a4\u30eb\u3092 \/usr\/local\/apache2\/modules\/ \u3078\u79fb\u52d5\u3057\u3066\u304b\u3089\u3001make install \u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<div class=\"code\" style=\"overflow: scroll; width: 490px; white-space: nowrap;background-color:black;color:white;padding:4px;\">&#x23;&nbsp;mv&nbsp;libphp5.so&nbsp;&#x2f;usr&#x2f;local&#x2f;apache2&#x2f;modules&#x2f;<br \/>\n&#x23;&nbsp;make&nbsp;install&nbsp;2&gt;&amp;1&nbsp;&#x7c;&nbsp;tee&nbsp;..&#x2f;php-5.1.4.make-install.log\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u7d50\u69cb\u306f\u307e\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3067\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u300264bit\u74b0\u5883\u306eCentOS \u3067 PHP5 \u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u306e\u3067\u3059\u304c\u3001Apache\u7528\u306eDSO\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f5c\u308b\u307e\u3067\u304c\u5927\u5909\u3067\u3057\u305f\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u30aa\u30d7\u30b7\u30e7\u30f3\u6307\u5b9a\u3092\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u307e\u3041\u3001 &hellip; <a href=\"https:\/\/www.hiro345.net\/blogs\/hiro345\/archives\/2278.html\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,15],"tags":[],"class_list":["post-2278","post","type-post","status-publish","format-standard","hentry","category-open-source","category-program"],"_links":{"self":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/2278","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=2278"}],"version-history":[{"count":8,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/2278\/revisions"}],"predecessor-version":[{"id":4322,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/posts\/2278\/revisions\/4322"}],"wp:attachment":[{"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/media?parent=2278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/categories?post=2278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiro345.net\/blogs\/hiro345\/wp-json\/wp\/v2\/tags?post=2278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}