読者です 読者をやめる 読者になる 読者になる

DRYな備忘録

Don't Repeat Yourself.

pyenv installで"Missing the OpenSSL lib?"と叱られる

問題

$ pyenv install 3.3.5
Downloading readline-6.3.tar.gz...
-> http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz
Installing readline-6.3...
Installed readline-6.3 to /Users/otiai10/.pyenv/versions/3.3.5

Downloading Python-3.3.5.tgz...
-> http://yyuu.github.io/pythons/30b60839bfe0ae8a2dba11e909328459bb8ee4a258afe7494b06b2ceda080efc
Installing Python-3.3.5...
patching file ./Modules/readline.c
ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

解決

Thanks so much!

$ xcode-select --install
xcode-select: note: install requested for command line developer tools
$ pyenv install 3.3.5
Downloading readline-6.3.tar.gz...
-> http://ftpmirror.gnu.org/readline/readline-6.3.tar.gz
Installing readline-6.3...
Installed readline-6.3 to /Users/otiai10/.pyenv/versions/3.3.5

Downloading Python-3.3.5.tgz...
-> http://yyuu.github.io/pythons/916bc57dd8524dc27429bebae7b39d6942742cf9699b875b2b496a3d960c7168
Installing Python-3.3.5...
Installing setuptools from https://bootstrap.pypa.io/ez_setup.py...
Installing pip from https://bootstrap.pypa.io/get-pip.py...
Installed Python-3.3.5 to /Users/otiai10/.pyenv/versions/3.3.5

$ pyenv versions
* system (set by /Users/otiai10/.pyenv/version)
  3.3.5

DRY