## 配置 root@pts/2 $ vim ~/.bashrc root@pts/2 $ cat ~/.bashrc # .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' ## add by liuchao at 20160607 export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi
root@pts/2 $ pyenv install 3.4.4 Downloading Python-3.4.4.tgz... -> https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz Installing Python-3.4.4... WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib? WARNING: The Python readline extension was not compiled. Missing the GNU readline lib? ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem. https://github.com/yyuu/pyenv/wiki/Common-build-problems
BUILD FAILED (CentOS Linux 7 using python-build 20160509-25-g4c654d7)
Inspect or clean up the working tree at /tmp/python-build.20160607105740.3166 Results logged to /tmp/python-build.20160607105740.3166.log
Last 10 log lines: (cd /root/.pyenv/versions/3.4.4/share/man/man1; ln -s python3.4.1 python3.1) if test "xupgrade" != "xno" ; then \ case upgrade in \ upgrade) ensurepip="--upgrade" ;; \ install|*) ensurepip="" ;; \ esac; \ ./python -E -m ensurepip \ $ensurepip --root=/ ; \ fi Ignoring ensurepip failure: pip 7.1.2 requires SSL/TLS