{"id":1015,"date":"2016-12-18T03:11:00","date_gmt":"2016-12-18T03:11:00","guid":{"rendered":"https:\/\/rawbytes.org\/?p=1015"},"modified":"2025-11-24T02:59:29","modified_gmt":"2025-11-24T02:59:29","slug":"raspbian%e3%81%a7pyenv%e7%92%b0%e5%a2%83%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/rawbytes.org\/?p=1015","title":{"rendered":"Raspbian\u3067pyenv\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b"},"content":{"rendered":"<p>Raspbian\u74b0\u5883\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u3064\u3044\u3067\u306bpyenv\/pyenv-virtualenv\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3088\u3046\u3068\u304a\u3082\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u969b\u3001pyenv\u3092\u4f7f\u3063\u305fpython\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u3001\u305d\u306e\u69cb\u7bc9\u30e1\u30e2\u3067\u3059\u3002<\/p>\n<h2>\n0.\u74b0\u5883<\/h2>\n<p>\u8a18\u4e8b\u57f7\u7b46\u3057\u305f\u6642\u70b9\u3067\u3001 $ sudo aptitude safe-upgrade \u3057\u305f\u72b6\u614b\u3067\u3059\u3002<br \/>\n\u65e5\u672c\u8a9e\u74b0\u5883\u3092\u5165\u308c\u305f\u308a\u306f\u3057\u3066\u308b\u306e\u3067\u3001\u304b\u306a\u3089\u305a\u3057\u3082\u30c7\u30d5\u30a9\u3067\u306f\u306a\u3044\u3067\u3059\u3002<\/p>\n<pre class='prettyprint'>\n$ uname -a\nLinux raspberrypi 4.4.34+ #930 Wed Nov 23 15:12:30 GMT 2016 armv6l GNU\/Linux\n<\/pre>\n<h2>\n<br \/>\uff11\uff0e\u30a8\u30e9\u30fc<\/h2>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306breadline\u3068\u304bbzip2\u3068\u304b\u3044\u304b\u306b\u3082\u5fc5\u8981\u305d\u3046\u306a\u3082\u306e\u304c\u306a\u3044\u3068\u304b\u6012\u3089\u308c\u307e\u3059\u3002<\/p>\n<pre class='prettyprint'>\n$ pyenv install 2.7.12\nDownloading Python-2.7.12.tar.xz...\n-&gt; https:\/\/www.python.org\/ftp\/python\/2.7.12\/Python-2.7.12.tar.xz\nInstalling Python-2.7.12...\n\nWARNING: The Python readline extension was not compiled. Missing the GNU readline lib?\nWARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?\nWARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib?\nERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?\n\nPlease consult to the Wiki page to fix the problem.\nhttps:\/\/github.com\/yyuu\/pyenv\/wiki\/Common-build-problems\n\n\nBUILD FAILED (Raspbian 8.0 using python-build 1.0.4-13-g1000c2f)\n<\/pre>\n<p><\/p>\n<h2>\n\uff12\uff0e\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\uff08\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u306e\u3082\u306e\u3092\u9664\u3044\u305f\uff09<\/h2>\n<p>\u4e0b\u8a18\u306e\u53c2\u7167\u5148\u306e\u30ea\u30f3\u30af\u306b\u60c5\u5831\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u53c2\u8003\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u306e\u3082\u306e\u306f\u9664\u304d\u307e\u3057\u305f\u3002<br \/>\nRapPi\u306f\u975e\u529b\u306a\u306e\u3067\u3001\u4f59\u8a08\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d7\u30ed\u30bb\u30b9\u306f\u7701\u304d\u305f\u304b\u3063\u305f\u3002<\/p>\n<pre class='prettyprint'>\n$ sudo aptitude -y install libssl-dev libbz2-dev libreadline-dev libsqlite3-dev llvm libncurses5-dev libncursesw5-dev\n<\/pre>\n<p><\/p>\n<h2>\n3.\u53c2\u7167<\/h2>\n<p>https:\/\/github.com\/yyuu\/pyenv\/wiki\/Common-build-problems<\/p>\n<p>\u3042\u308b\u3066\u3044\u3069\u4e88\u60f3\u3067\u304d\u305f\u7d50\u679c\u3067\u3059\u304c\u3001pyenv install\u3059\u308b\u3068\u305f\u3076\u3093zip\u3068\u304b\u304c\u3082\u306e\u3059\u3054\u3044\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3067\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u3067\u3001\u5b9f\u7528\u306b\u8010\u3048\u308b\u306e\u304b\u306f\u4e0d\u660e\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raspbian\u74b0\u5883\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u305f\u3064\u3044\u3067\u306bpyenv\/pyenv-virtualenv\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u3088\u3046\u3068\u304a\u3082\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u969b\u3001pyenv\u3092\u4f7f\u3063\u305fpython\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u3001\u305d\u306e\u69cb\u7bc9\u30e1\u30e2\u3067\u3059\u3002 0.\u74b0\u5883 \u8a18\u4e8b\u57f7\u7b46\u3057\u305f\u6642\u70b9\u3067\u3001 $ sudo aptitude safe-upgrade \u3057\u305f\u72b6\u614b\u3067\u3059\u3002 \u65e5\u672c\u8a9e\u74b0\u5883\u3092\u5165\u308c\u305f\u308a\u306f\u3057\u3066\u308b\u306e\u3067\u3001\u304b\u306a\u3089\u305a\u3057\u3082\u30c7\u30d5\u30a9\u3067\u306f\u306a\u3044\u3067\u3059\u3002 $ uname -a Linux raspberrypi 4.4.34+ #930 Wed Nov 23 15:12:30 GMT 2016 armv6l GNU\/Linux \uff11\uff0e\u30a8\u30e9\u30fc \u4ee5\u4e0b\u306e\u3088\u3046\u306breadline\u3068\u304bbzip2\u3068\u304b\u3044\u304b\u306b\u3082\u5fc5\u8981\u305d\u3046\u306a\u3082\u306e\u304c\u306a\u3044\u3068\u304b\u6012\u3089\u308c\u307e\u3059\u3002 $ pyenv install 2.7.12 Downloading Python-2.7.12.tar.xz&#8230; -&gt; https:\/\/www.python.org\/ftp\/python\/2.7.12\/Python-2.7.12.tar.xz Installing Python-2.7.12&#8230; WARNING: The Python readline extension was not compiled. Missing the GNU readline lib? WARNING: The Python bz2 extension was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1015","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1015"}],"version-history":[{"count":1,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1015\/revisions"}],"predecessor-version":[{"id":1016,"href":"https:\/\/rawbytes.org\/index.php?rest_route=\/wp\/v2\/posts\/1015\/revisions\/1016"}],"wp:attachment":[{"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rawbytes.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}