{"id":1353,"date":"2017-12-23T10:57:39","date_gmt":"2017-12-23T01:57:39","guid":{"rendered":"http:\/\/blue-bear.jp\/kb\/?p=1353"},"modified":"2017-12-23T10:57:39","modified_gmt":"2017-12-23T01:57:39","slug":"linux-python2-6-2-7%e3%81%b8update%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blue-bear.jp\/kb\/linux-python2-6-2-7%e3%81%b8update%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"[Linux] python2.6->2.7\u3078update\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>python2.6->2.7\u3078update\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u624b\u9806<\/p>\n<p>\u307e\u305a\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/p>\n<pre>python -V\r\nPython 2.6.6<\/pre>\n<p>Version\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u30921\u30b3\u3065\u3064\u5b9f\u884c\u3057\u3066\u3044\u304f<\/p>\n<pre>yum install zlib-devel openssl-devel\r\ncd \/usr\/local\/src\r\ncurl -O https:\/\/www.python.org\/ftp\/python\/2.7.11\/Python-2.7.11.tgz\r\ntar zxf Python-2.7.11.tgz\r\ncd Python-2.7.11\r\n.\/configure\r\nmake && make altinstall\r\nmv \/usr\/bin\/python \/usr\/bin\/python.26\r\ncp \/usr\/local\/src\/Python-2.7.11\/python \/usr\/bin\/python\r\npython -V\r\n<\/pre>\n<p>Python 2.7.11\u3068\u306a\u3063\u3066\u3044\u305f\u3089\u6210\u529f<\/p>\n<p>\u3061\u306a\u307f\u306b\u300c.\/configure\u300d\u3067\u300cconfigure: error: no acceptable C compiler found in $PATH\u300d\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u305f<\/p>\n<p>C\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067C\u30b3\u30f3\u30d1\u30a4\u30e9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070OK<\/p>\n<pre>yum install gcc<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>python2.6->2.7\u3078updat<\/p>\n","protected":false},"author":1,"featured_media":855,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1353"}],"collection":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/comments?post=1353"}],"version-history":[{"count":1,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1353\/revisions"}],"predecessor-version":[{"id":1354,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/posts\/1353\/revisions\/1354"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media\/855"}],"wp:attachment":[{"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/media?parent=1353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/categories?post=1353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blue-bear.jp\/kb\/wp-json\/wp\/v2\/tags?post=1353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}