$ sudo su -
[root] $ yum groupinstall -y "development tools"
[root] $ yum install -y \
libffi-devel \
zlib-devel \
bzip2-devel \
openssl-devel \
ncurses-devel \
sqlite-devel \
readline-devel \
tk-devel \
gdbm-devel \
db4-devel \
libpcap-devel \
xz-devel \
expat-devel
[root ] $ cd /usr/src
[root ] $ wget http://python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz
[root ] $ tar xf Python-3.6.4.tar.xz
[root ] $ cd Python-3.6.4
[root ] $ ./configure --enable-optimizations
[root ] $ make altinstall
[root ] $ exit
List of commands:
1 bash script.sh 2 ls -l 3 yum update 4 yum groupinstall -y "development tools" 5 yum install -y lsof wget vim-enhanced words which 6 exit 7 yum groupinstall -y "development tools" 8 yum yum install -y libffi-devel 9 yum install -y libffi-devel zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel tk-devel gdbm-devel libpcap-devel xz-devel expat-devel 10 cd /usr/src/ 11 ls -l 12 wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz 13 ls 14 tar xf Python-3.7.0.tgz 15 cd Python-3.7.0 16 ./configure --enable-optimizations 17 make altinstall 18 exit 19 history
No comments:
Post a Comment