docker code-server 이미지에서 pyenv를 설치하려는데 다음과 같은 오류가 발생한다
기타 ubuntu / wsl에서도 동일한 메세지 발생시 조치는 아래방법으로
ERROR
Inspect or clean up the working tree at
Results logged to /tmp/python-build
checking for --enable-universalsdk... no
이런저런 방법을 찾다보니
- 사전모듈을 설치하고
- 이후 curl pyenv.run 을 실행하여 설치하니 정상적으로 진행이 된다.
https://gist.github.com/cedricbonhomme/ababe00d0a675ea5c69d777276e8f375
# Prerequisites to build Python 사전모듈 설치
sudo apt update; sudo apt install make build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm \
libncurses5-dev libncursesw5-dev xz-utils tk-dev \
libffi-dev liblzma-dev \
libxmlsec1-dev libxml2-dev libxslt-dev libpq-dev python3-openssl
sudo apt-get update
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libgdbm-dev libdb5.3-dev liblzma-dev libexpat1-dev
sudo apt install libreadline-dev liblzma-dev
sudo apt-get install libffi-dev
sudo apt-get install libssl-dev zlib1g-dev
# Installation of pyenv 설치
curl https://pyenv.run | bash
# Always use the latest stable version of Python
pyenv install 3.9.10
# if needed:
# CONFIGURE_OPTS=--enable-shared pyenv install 3.9.10
# if you encouter a GCC bug, try:
# CFLAGS="-O0 -ggdb" CONFIGURE_OPTS=--enable-shared pyenv install 3.9.10
pyenv global 3.9.10
# Installation of pipx
python -m pip install --user pipx
python -m userpath append ~/.local/bin
다음 유사사례에서도 모듈설치를 한번 점검해 보자.
https://thekkom.tistory.com/69
_
반응형