9
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Python3.6 sourceインストール時のエラーであわてた

Last updated at Posted at 2019-08-20

環境

  • Ubuntu16.04LTS
  • Vagrant/virtualbox

必要なライブラリと最新化

sudo apt update && sudo apt upgrade
sudo apt install build-essential
sudo apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev 

Pythonのソースを入手

wget https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tgz

make&install:システム全体にインストール

tar -xvf Python-3.6.7.tgz
cd Python-3.6.7/

./configure --enable-shared --enable-optimizations
sudo make altinstall

エラー

と、ここで躓きました

エラーメッセージ

python3.6: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory

原因

共有ライブラリが参照できていないようです
ありかを探して見える場所に配置します


sudo find / -name libpython3.6m.so.1.0
=> /lib64/libpython3.6m.so.1.0

sudo ln   /usr/local/lib/libpython3.6m.so.1.0 /lib64/libpython3.6m.so.1.0
sudo ldconfig

めでたし、めでたし
今日も一慌てしました、何事も勉強ですね

9
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?