Created
December 1, 2016 04:50
-
-
Save monkut/c3e16d7310d3a01daa5bb2ac1e6ec43e to your computer and use it in GitHub Desktop.
python3 build on RHEL72
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 install | |
------------------------ | |
1. install dependencies:: | |
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel li | |
2. Configure/build make:: | |
cd /tmp/alarmapi-packages | |
tar xvf Python-3.5.2.tar.xz | |
cd Python-3.5.2 | |
./configure | |
make | |
make altinstall | |
# create symlink for ease | |
ln -s /usr/local/bin/python3.5 /usr/bin/python3 | |
3. python3がインストールしているか確認:: | |
cd ~ | |
python3 | |
# pythonのコンソールが起動されればOK! | |
# 起動しないなら、PATHを確認してください。/usr/local/binがPATHに入っていることを期待している。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment