{"id":373,"date":"2020-01-04T03:13:30","date_gmt":"2020-01-03T18:13:30","guid":{"rendered":"https:\/\/blog.hgrs.me\/?p=373"},"modified":"2020-06-09T14:23:31","modified_gmt":"2020-06-09T05:23:31","slug":"pyenv-%e3%81%a7-framework-shared-library-%e3%81%a7%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/blog.hgrs.me\/archives\/373.html","title":{"rendered":"pyenv \u3067 Framework \/ Shared library \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"

\u306f\u3058\u3081\u306b<\/h2>\n

py2app \u306a\u3069\u4e00\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b\u306e\u3067\u7d39\u4ecb\u3067\u3059\u3002<\/p>\n

Framework \/ Shared library \u3068\u306f<\/h2>\n

\u7d20\u306e Python \u3067\u306f\u51fa\u6765\u306a\u3044\u3053\u3068\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306b OS \u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u305d\u3053\u3067 Python \u3092\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3059\u308b\u3053\u3068\u3067\u3001OS \u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306e\u3067\u3059\u3002<\/p>\n

Shared library \u3082\u5171\u6709\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u53ef\u80fd\u306b\u3059\u308b\u3053\u3068\u3067 Python \u3060\u3051\u3067\u306f\u51fa\u6765\u306a\u3044\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/p>\n

\u3053\u308c\u3089\u304c\u306a\u3044\u72b6\u614b\u3067\u4f7f\u7528\u3059\u308b\u3068 Python is not installed as a framework.<\/code> \u3084 A Python runtime not could be located.<\/code> \u3068\u3044\u3063\u305f\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n

Framework<\/h3>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b PYTHON_CONFIGURE_OPTS="--enable-framework"<\/code> \u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n

\u4f8b\u3048\u3070 3.8.1<\/code> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

$ env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.8.1<\/code><\/pre>\n

Shared library<\/h3>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b PYTHON_CONFIGURE_OPTS="--enable-shared"<\/code> \u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n

\u4f8b\u3048\u3070 3.8.1<\/code> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u306e\u3067\u3042\u308c\u3070\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n

$ env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.8.1<\/code><\/pre>\n

\u304a\u308f\u308a\u306b<\/h2>\n

\u4eee\u60f3\u74b0\u5883\u306f\u4fbf\u5229\u3067\u3059\u3051\u3069\u3001\u305f\u307e\u306b\u3084\u3084\u3053\u3057\u3044\u306e\u3067\u3082\u3046\u3061\u3087\u3063\u3068\u4fbf\u5229\u306b\u4f7f\u3044\u305f\u3044\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u306f\u3058\u3081\u306b py2app \u306a\u3069\u4e00\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u969b\u306b\u5fc5\u8981\u3068\u306a\u308b\u306e\u3067\u7d39\u4ecb\u3067\u3059\u3002 Framework \/…<\/p>\n","protected":false},"author":1,"featured_media":374,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[14],"_links":{"self":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/373"}],"collection":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/comments?post=373"}],"version-history":[{"count":1,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/373\/revisions"}],"predecessor-version":[{"id":375,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/posts\/373\/revisions\/375"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media\/374"}],"wp:attachment":[{"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/media?parent=373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/categories?post=373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hgrs.me\/wp-json\/wp\/v2\/tags?post=373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}