{"id":1254,"date":"2015-05-13T10:39:53","date_gmt":"2015-05-13T01:39:53","guid":{"rendered":"http:\/\/boomboom-mix.net\/modules\/xpress\/?p=1254"},"modified":"2021-04-09T12:10:09","modified_gmt":"2021-04-09T03:10:09","slug":"%e8%a4%87%e6%95%b0ver%e3%81%aephp%e3%82%92%e7%ae%a1%e7%90%86%e3%81%99%e3%82%8bphpbrew","status":"publish","type":"post","link":"http:\/\/boomboom-mix.net\/?p=1254","title":{"rendered":"\u8907\u6570Ver\u306ePHP\u3092\u7ba1\u7406\u3059\u308bPHPbrew"},"content":{"rendered":"<p>PHP\u3068\u304b\u3061\u3087\u3063\u3068Ver\u5909\u308f\u308b\u3060\u3051\u3067\u3048\u3089\u3044\u4ed5\u69d8\u304c\u5909\u308f\u3063\u305f\u308a\u3057\u3066\u56f0\u308b\u3082\u3093\u3067\u3059\u3002<br \/>\n\u3057\u304b\u3057\u305d\u3093\u306a\u56f0\u308a\u4e8b\u304b\u3089\u3082PHPbrew\u3067\u304a\u3055\u3089\u3070\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><span class=\"commentbody\">\u307e\u305a\u306fPHPbrew\u3092\u5c0e\u5165\u3057\u3066\u3082PHP\u306e\u30d3\u30eb\u30c9\u3067\u8e74\u3089\u308c\u308b\u30b1\u30fc\u30b9\u304c\u975e\u5e38\u306b\u591a\u3044\u306e\u3067\u3001<br \/>\n<span style=\"color: #ff0000;\">apt-get build-dep \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/span><br \/>\n\u3068\u3044\u3046\u6307\u5b9a\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306b\u5fc5\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u7b49\u3092\u524d\u3082\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9\u304c\u3042\u308b\u304b\u3089\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<br \/>\n\u4eca\u56de\u306f<br \/>\n<span style=\"color: #ff0000;\">apt-get build-dep php5<\/span><br \/>\n\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3064\u3044\u3067\u306b\u3053\u3061\u3089\u3082\u3084\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<br \/>\n<span style=\"color: #ff0000;\">apt-get install autoconf automake curl build-essential libxslt1-dev re2c libxml2-dev<\/span><br \/>\n<\/span><\/p>\n<p><strong><span style=\"color: #339966;\">\u2606PHPbrew\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/span><\/strong><br \/>\n<span style=\"color: #0000ff;\">wget https:\/\/raw.github.com\/c9s\/phpbrew\/master\/phpbrew<\/span><\/p>\n<p><strong><span style=\"color: #339966;\">\u2606\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fPHPbrew\u306e\u6a29\u9650\u3092\u5909\u66f4<\/span><\/strong><br \/>\n<span style=\"color: #ff0000;\">chmod +x phpbrew<\/span><\/p>\n<p><strong><span style=\"color: #339966;\">\u2606\u30d5\u30a1\u30a4\u30eb\u306e\u79fb\u52d5<\/span><\/strong><br \/>\n<span style=\"color: #ff0000;\">sudo cp phpbrew \/usr\/bin\/phpbrew<\/span><\/p>\n<p><strong><span style=\"color: #339966;\">\u2606PHPbrew\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fPHP\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b<\/span><\/strong><br \/>\n<span style=\"color: #ff0000;\">phpbrew init<\/span><\/p>\n<p>ubuntu\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u308b\u30e6\u30fc\u30b6\u30fc\u30d5\u30a9\u30eb\u30c0\u306e\u4e2d\u306e.bashrc\u3092\u958b\u304d\u4ee5\u4e0b\u306e2\u884c\u3092\u8ffd\u8a18\u3059\u308b\uff08ubuntu\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u3068\u3053\u308d\u306f\u5404\u81ea\u74b0\u5883\u306b\u5408\u308f\u305b\u308b\u3053\u3068\uff09<br \/>\n<span style=\"color: #800000;\">export PHPBREW_SET_PROMPT=1<\/span><br \/>\n<span style=\"color: #800000;\">source \/ubuntu\u30e6\u30fc\u30b6\u30fc\u540d\/.phpbrew\/bashrc<\/span><\/p>\n<p>\u3053\u308c\u3067PHPbrew\u306e\u5c0e\u5165\u306f\u5b8c\u4e86\u3067\u3059\u3002\u8a66\u3057\u306b\u3069\u306eVer\u306ePHP\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n<span style=\"color: #ff0000;\">phpbrew known<\/span><\/p>\n<p>\u3069\u308f\u3063\u3068\u51fa\u3066\u304d\u307e\u3059\u306d\u3002\u305d\u308c\u3067\u306f\u66f4\u306b\u8a66\u3057\u3067PHP5.4.40\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u305d\u3063\u3061\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><strong><span style=\"color: #339966;\">\u2606PHP5.4.40\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/span><\/strong><br \/>\n<span style=\"color: #ff0000;\">phpbrew install 5.4.40 +default<\/span><\/p>\n<p>config\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u5168\u90e8\u3067\u4ee5\u4e0b\u306e\u7269\u304c\u3042\u308a\u3001<br \/>\nall, apxs2, bcmath, bz2, calendar, cgi, cli, ctype, curl, dba, debug, dom,<br \/>\nembed, exif, fileinfo, filter, fpm, ftp, gcov, gd, gettext, gmp, hash,<br \/>\niconv, icu, imap, inifile, inline, intl, ipc, ipv6, json, kerberos, libgcc,<br \/>\nmbregex, mbstring, mcrypt, mhash, mysql, opcache, openssl, pcntl,<br \/>\npcre, pdo, pgsql, phar, phpdbg, posix, readline, session, soap, sockets,<br \/>\nsqlite, static, tidy, tokenizer, wddx, xml, xml_all, xmlrpc, zip, zlib, zts<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30de\u30f3\u30c9\u306b\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3067\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8907\u6570\u4ed8\u3051\u3089\u308c\u308b\u3002<br \/>\n<span style=\"color: #800080;\">+dbs<\/span> \u3060\u3068 sqlite, mysql, pgsql, pdo \u304c\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u4ed8\u304f<br \/>\n<span style=\"color: #800080;\">+mb<\/span> \u3060\u3068 mbstring, mbregex \u304c\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u4ed8\u304f<br \/>\n<span style=\"color: #800080;\">+neutral<\/span> \u3060\u3068\u4f55\u3082\u4ed8\u304b\u306a\u3044\u3002<br \/>\n<span style=\"color: #800080;\">+default<\/span> \u3060\u3068 bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc,<br \/>\njson, mbregex, mbstring, mhash, mcrypt, pcntl, pcre, pdo, phar, posix,<br \/>\nreadline, sockets, tokenizer, xml, curl, openssl, zip \u304c\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u4ed8\u304f<br \/>\n<span style=\"color: #800080;\">+everything<\/span> \u3060\u3068 dba, ipv6, dom, calendar, wddx, static, inifile, inline, cli,<br \/>\nfpm, ftp, filter, gcov, zts, json, hash, exif, mbstring, mbregex, libgcc,<br \/>\npdo, posix, embed, sockets, debug, phpdbg, zip, bcmath, fileinfo, ctype,<br \/>\ncgi, soap, pcntl, intl, phar, session, tokenizer, opcache, imap, tidy,<br \/>\nkerberos, xmlrpc, pcre, mhash, mcrypt, zlib, curl, readline, gd, icu,<br \/>\nopenssl, mysql, sqlite, pgsql, xml, xml_all, gettext, iconv, bz2, ipc,<br \/>\ngmp \u304c\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u4ed8\u304f<\/p>\n<p><strong><span style=\"color: #339966;\">\u2606\u4f7f\u7528\u3059\u308bPHP\u306eVer\u3092\u6307\u5b9a\u3059\u308b<\/span><\/strong><br \/>\n<span style=\"color: #ff0000;\">phpbrew switch 5.4.40<\/span><\/p>\n<p><strong><span style=\"color: #339966;\">\u2606Ver\u78ba\u8a8d<\/span><\/strong><br \/>\n<span style=\"color: #ff0000;\">php -v<\/span><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fPHP\u30d5\u30a1\u30a4\u30eb\u306f<code>.phpbrew\/php<\/code>\u306b\u7f6e\u304b\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001php 5.4.40\u306e\u5834\u5408\u306f<br \/>\n<span style=\"color: #0000ff;\">.phpbrew\/php\/5.4.40\/bin\/php<\/span><br \/>\n\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u3068\u304b\u3061\u3087\u3063\u3068Ver\u5909\u308f\u308b\u3060\u3051\u3067\u3048\u3089\u3044\u4ed5\u69d8\u304c\u5909\u308f\u3063\u305f\u308a\u3057\u3066\u56f0\u308b\u3082\u3093\u3067\u3059\u3002 \u3057\u304b\u3057\u305d\u3093\u306a\u56f0\u308a\u4e8b\u304b\u3089\u3082PHPbrew\u3067\u304a\u3055\u3089\u3070\u3057\u307e\u3057\u3087\u3046\u3002 \u307e\u305a\u306fPHPbrew\u3092\u5c0e\u5165\u3057\u3066\u3082PHP\u306e\u30d3\u30eb\u30c9\u3067\u8e74\u3089\u308c\u308b\u30b1\u30fc\u30b9\u304c\u975e\u5e38\u306b\u591a\u3044\u306e\u3067\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1254","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/1254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1254"}],"version-history":[{"count":1,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/1254\/revisions"}],"predecessor-version":[{"id":1452,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/1254\/revisions\/1452"}],"wp:attachment":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1254"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}