一. Linux默认安装的python版本都是2,安装python3需要先安装相关包
1. gcc
[root@localhost ~]# yum install gcc Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): extras/7/x86_64/primary_db | 191 kB 00:00:00 (2/4): base/7/x86_64/primary_db | 5.6 MB 00:00:01 (3/4): base/7/x86_64/group_gz | 155 kB 00:00:02 updates/7/x86_64/primary_db FAILED ] 3.4 B/s | 9.4 MB 375:49:19 ETA http://mirrors.nwsuaf.edu.cn/centos/7.3.1611/updates/x86_64/repodata/33fdce604445f67a26ce5ddc354ea0c835ed119ac8cb7404cc2b565bf80722a1-primary.sqlite.bz2: [Errno 12] Timeout on http://mirrors.nwsuaf.edu.cn/centos/7.3.1611/updates/x86_64/repodata/33fdce604445f67a26ce5ddc354ea0c835ed119ac8cb7404cc2b565bf80722a1-primary.sqlite.bz2: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. (4/4): updates/7/x86_64/primary_db | 7.8 MB 00:00:02 Determining fastest mirrors * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package gcc.x86_64 0:4.8.5-11.el7 will be installed --> Processing Dependency: libgomp = 4.8.5-11.el7 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: cpp = 4.8.5-11.el7 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libgcc >= 4.8.5-11.el7 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-11.el7.x86_64 --> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-11.el7.x86_64 --> Running transaction check ---> Package cpp.x86_64 0:4.8.5-11.el7 will be installed ---> Package glibc-devel.x86_64 0:2.17-157.el7_3.5 will be installed --> Processing Dependency: glibc-headers = 2.17-157.el7_3.5 for package: glibc-devel-2.17-157.el7_3.5.x86_64 --> Processing Dependency: glibc = 2.17-157.el7_3.5 for package: glibc-devel-2.17-157.el7_3.5.x86_64 --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-157.el7_3.5.x86_64 ---> Package libgcc.x86_64 0:4.8.5-4.el7 will be updated ---> Package libgcc.x86_64 0:4.8.5-11.el7 will be an update ---> Package libgomp.x86_64 0:4.8.5-4.el7 will be updated ---> Package libgomp.x86_64 0:4.8.5-11.el7 will be an update ---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed ---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed --> Running transaction check ---> Package glibc.x86_64 0:2.17-105.el7 will be updated --> Processing Dependency: glibc = 2.17-105.el7 for package: glibc-common-2.17-105.el7.x86_64 ---> Package glibc.x86_64 0:2.17-157.el7_3.5 will be an update ---> Package glibc-headers.x86_64 0:2.17-157.el7_3.5 will be installed --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-157.el7_3.5.x86_64 --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-157.el7_3.5.x86_64 --> Running transaction check ---> Package glibc-common.x86_64 0:2.17-105.el7 will be updated ---> Package glibc-common.x86_64 0:2.17-157.el7_3.5 will be an update ---> Package kernel-headers.x86_64 0:3.10.0-514.26.2.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: gcc x86_64 4.8.5-11.el7 base 16 M Installing for dependencies: cpp x86_64 4.8.5-11.el7 base 5.9 M glibc-devel x86_64 2.17-157.el7_3.5 updates 1.1 M glibc-headers x86_64 2.17-157.el7_3.5 updates 669 k kernel-headers x86_64 3.10.0-514.26.2.el7 updates 4.8 M libmpc x86_64 1.0.1-3.el7 base 51 k mpfr x86_64 3.1.1-4.el7 base 203 k Updating for dependencies: glibc x86_64 2.17-157.el7_3.5 updates 3.6 M glibc-common x86_64 2.17-157.el7_3.5 updates 11 M libgcc x86_64 4.8.5-11.el7 base 97 k libgomp x86_64 4.8.5-11.el7 base 152 k Transaction Summary ======================================================================================================================== Install 1 Package (+6 Dependent packages) Upgrade ( 4 Dependent packages) Total download size: 44 M Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. warning: /var/cache/yum/x86_64/7/updates/packages/glibc-2.17-157.el7_3.5.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for glibc-2.17-157.el7_3.5.x86_64.rpm is not installed (1/11): glibc-2.17-157.el7_3.5.x86_64.rpm | 3.6 MB 00:00:02 (2/11): glibc-headers-2.17-157.el7_3.5.x86_64.rpm | 669 kB 00:00:00 Public key for cpp-4.8.5-11.el7.x86_64.rpm is not installed=======- ] 3.7 MB/s | 20 MB 00:00:06 ETA (3/11): cpp-4.8.5-11.el7.x86_64.rpm | 5.9 MB 00:00:04 (4/11): libgcc-4.8.5-11.el7.x86_64.rpm | 97 kB 00:00:00 (5/11): libgomp-4.8.5-11.el7.x86_64.rpm | 152 kB 00:00:00 (6/11): kernel-headers-3.10.0-514.26.2.el7.x86_64.rpm | 4.8 MB 00:00:01 (7/11): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00:00 (8/11): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00:00 (9/11): gcc-4.8.5-11.el7.x86_64.rpm | 16 MB 00:00:08 (10/11): glibc-common-2.17-157.el7_3.5.x86_64.rpm | 11 MB 00:00:10 (11/11): glibc-devel-2.17-157.el7_3.5.x86_64.rpm | 1.1 MB 00:00:13 ------------------------------------------------------------------------------------------------------------------------ Total 3.2 MB/s | 44 MB 00:00:13 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-2.1511.el7.centos.2.10.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libgcc-4.8.5-11.el7.x86_64 1/15 Updating : glibc-common-2.17-157.el7_3.5.x86_64 2/15 Updating : glibc-2.17-157.el7_3.5.x86_64 3/15 warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew Installing : mpfr-3.1.1-4.el7.x86_64 4/15 Installing : libmpc-1.0.1-3.el7.x86_64 5/15 Installing : cpp-4.8.5-11.el7.x86_64 6/15 Updating : libgomp-4.8.5-11.el7.x86_64 7/15 Installing : kernel-headers-3.10.0-514.26.2.el7.x86_64 8/15 Installing : glibc-headers-2.17-157.el7_3.5.x86_64 9/15 Installing : glibc-devel-2.17-157.el7_3.5.x86_64 10/15 Installing : gcc-4.8.5-11.el7.x86_64 11/15 Cleanup : libgomp-4.8.5-4.el7.x86_64 12/15 Cleanup : glibc-common-2.17-105.el7.x86_64 13/15 Cleanup : glibc-2.17-105.el7.x86_64 14/15 Cleanup : libgcc-4.8.5-4.el7.x86_64 15/15 Verifying : glibc-devel-2.17-157.el7_3.5.x86_64 1/15 Verifying : glibc-2.17-157.el7_3.5.x86_64 2/15 Verifying : kernel-headers-3.10.0-514.26.2.el7.x86_64 3/15 Verifying : glibc-common-2.17-157.el7_3.5.x86_64 4/15 Verifying : mpfr-3.1.1-4.el7.x86_64 5/15 Verifying : libgcc-4.8.5-11.el7.x86_64 6/15 Verifying : cpp-4.8.5-11.el7.x86_64 7/15 Verifying : libgomp-4.8.5-11.el7.x86_64 8/15 Verifying : gcc-4.8.5-11.el7.x86_64 9/15 Verifying : glibc-headers-2.17-157.el7_3.5.x86_64 10/15 Verifying : libmpc-1.0.1-3.el7.x86_64 11/15 Verifying : libgomp-4.8.5-4.el7.x86_64 12/15 Verifying : libgcc-4.8.5-4.el7.x86_64 13/15 Verifying : glibc-common-2.17-105.el7.x86_64 14/15 Verifying : glibc-2.17-105.el7.x86_64 15/15 Installed: gcc.x86_64 0:4.8.5-11.el7 Dependency Installed: cpp.x86_64 0:4.8.5-11.el7 glibc-devel.x86_64 0:2.17-157.el7_3.5 glibc-headers.x86_64 0:2.17-157.el7_3.5 kernel-headers.x86_64 0:3.10.0-514.26.2.el7 libmpc.x86_64 0:1.0.1-3.el7 mpfr.x86_64 0:3.1.1-4.el7 Dependency Updated: glibc.x86_64 0:2.17-157.el7_3.5 glibc-common.x86_64 0:2.17-157.el7_3.5 libgcc.x86_64 0:4.8.5-11.el7 libgomp.x86_64 0:4.8.5-11.el7 Complete! [root@localhost ~]#
2. zlib-devel
[root@localhost ~]# yum install zlib-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package zlib-devel.x86_64 0:1.2.7-17.el7 will be installed --> Processing Dependency: zlib = 1.2.7-17.el7 for package: zlib-devel-1.2.7-17.el7.x86_64 --> Running transaction check ---> Package zlib.x86_64 0:1.2.7-15.el7 will be updated ---> Package zlib.x86_64 0:1.2.7-17.el7 will be an update --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: zlib-devel x86_64 1.2.7-17.el7 base 50 k Updating for dependencies: zlib x86_64 1.2.7-17.el7 base 90 k Transaction Summary ======================================================================================================================== Install 1 Package Upgrade ( 1 Dependent package) Total download size: 140 k Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/2): zlib-devel-1.2.7-17.el7.x86_64.rpm | 50 kB 00:00:00 (2/2): zlib-1.2.7-17.el7.x86_64.rpm | 90 kB 00:00:00 ------------------------------------------------------------------------------------------------------------------------ Total 371 kB/s | 140 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : zlib-1.2.7-17.el7.x86_64 1/3 Installing : zlib-devel-1.2.7-17.el7.x86_64 2/3 Cleanup : zlib-1.2.7-15.el7.x86_64 3/3 Verifying : zlib-devel-1.2.7-17.el7.x86_64 1/3 Verifying : zlib-1.2.7-17.el7.x86_64 2/3 Verifying : zlib-1.2.7-15.el7.x86_64 3/3 Installed: zlib-devel.x86_64 0:1.2.7-17.el7 Dependency Updated: zlib.x86_64 0:1.2.7-17.el7 Complete! [root@localhost ~]#
3. make
[root@localhost ~]# yum install make Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package make.x86_64 1:3.82-21.el7 will be updated ---> Package make.x86_64 1:3.82-23.el7 will be an update --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Updating: make x86_64 1:3.82-23.el7 base 420 k Transaction Summary ======================================================================================================================== Upgrade 1 Package Total download size: 420 k Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. make-3.82-23.el7.x86_64.rpm | 420 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : 1:make-3.82-23.el7.x86_64 1/2 Cleanup : 1:make-3.82-21.el7.x86_64 2/2 Verifying : 1:make-3.82-23.el7.x86_64 1/2 Verifying : 1:make-3.82-21.el7.x86_64 2/2 Updated: make.x86_64 1:3.82-23.el7 Complete! [root@localhost ~]#
4. openssl-devel
[root@localhost ~]# yum install openssl-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package openssl-devel.x86_64 1:1.0.1e-60.el7_3.1 will be installed --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-60.el7_3.1 for package: 1:openssl-devel-1.0.1e-60.el7_3.1.x86_64 --> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.1e-60.el7_3.1.x86_64 --> Running transaction check ---> Package krb5-devel.x86_64 0:1.14.1-27.el7_3 will be installed --> Processing Dependency: libkadm5(x86-64) = 1.14.1-27.el7_3 for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: krb5-libs(x86-64) = 1.14.1-27.el7_3 for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libverto-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libselinux-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.14.1-27.el7_3.x86_64 ---> Package openssl-libs.x86_64 1:1.0.1e-42.el7.9 will be updated --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-42.el7.9 for package: 1:openssl-1.0.1e-42.el7.9.x86_64 ---> Package openssl-libs.x86_64 1:1.0.1e-60.el7_3.1 will be an update --> Running transaction check ---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed ---> Package krb5-libs.x86_64 0:1.13.2-10.el7 will be updated ---> Package krb5-libs.x86_64 0:1.14.1-27.el7_3 will be an update ---> Package libcom_err-devel.x86_64 0:1.42.9-9.el7 will be installed --> Processing Dependency: libcom_err(x86-64) = 1.42.9-9.el7 for package: libcom_err-devel-1.42.9-9.el7.x86_64 ---> Package libkadm5.x86_64 0:1.14.1-27.el7_3 will be installed ---> Package libselinux-devel.x86_64 0:2.5-6.el7 will be installed --> Processing Dependency: libselinux(x86-64) = 2.5-6.el7 for package: libselinux-devel-2.5-6.el7.x86_64 --> Processing Dependency: libsepol-devel(x86-64) >= 2.5-6 for package: libselinux-devel-2.5-6.el7.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-6.el7.x86_64 --> Processing Dependency: pkgconfig(libpcre) for package: libselinux-devel-2.5-6.el7.x86_64 ---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed ---> Package openssl.x86_64 1:1.0.1e-42.el7.9 will be updated ---> Package openssl.x86_64 1:1.0.1e-60.el7_3.1 will be an update --> Running transaction check ---> Package libcom_err.x86_64 0:1.42.9-7.el7 will be updated --> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: e2fsprogs-libs-1.42.9-7.el7.x86_64 --> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: e2fsprogs-1.42.9-7.el7.x86_64 --> Processing Dependency: libcom_err(x86-64) = 1.42.9-7.el7 for package: libss-1.42.9-7.el7.x86_64 ---> Package libcom_err.x86_64 0:1.42.9-9.el7 will be an update ---> Package libselinux.x86_64 0:2.2.2-6.el7 will be updated --> Processing Dependency: libselinux = 2.2.2-6.el7 for package: libselinux-utils-2.2.2-6.el7.x86_64 --> Processing Dependency: libselinux = 2.2.2-6.el7 for package: libselinux-python-2.2.2-6.el7.x86_64 ---> Package libselinux.x86_64 0:2.5-6.el7 will be an update --> Processing Dependency: libsepol(x86-64) >= 2.5-6 for package: libselinux-2.5-6.el7.x86_64 --> Processing Dependency: libsepol.so.1(LIBSEPOL_1.0)(64bit) for package: libselinux-2.5-6.el7.x86_64 ---> Package libsepol-devel.x86_64 0:2.5-6.el7 will be installed ---> Package pcre-devel.x86_64 0:8.32-15.el7_2.1 will be installed --> Processing Dependency: pcre(x86-64) = 8.32-15.el7_2.1 for package: pcre-devel-8.32-15.el7_2.1.x86_64 --> Running transaction check ---> Package e2fsprogs.x86_64 0:1.42.9-7.el7 will be updated ---> Package e2fsprogs.x86_64 0:1.42.9-9.el7 will be an update ---> Package e2fsprogs-libs.x86_64 0:1.42.9-7.el7 will be updated ---> Package e2fsprogs-libs.x86_64 0:1.42.9-9.el7 will be an update ---> Package libselinux-python.x86_64 0:2.2.2-6.el7 will be updated ---> Package libselinux-python.x86_64 0:2.5-6.el7 will be an update ---> Package libselinux-utils.x86_64 0:2.2.2-6.el7 will be updated ---> Package libselinux-utils.x86_64 0:2.5-6.el7 will be an update ---> Package libsepol.x86_64 0:2.1.9-3.el7 will be updated ---> Package libsepol.x86_64 0:2.5-6.el7 will be an update ---> Package libss.x86_64 0:1.42.9-7.el7 will be updated ---> Package libss.x86_64 0:1.42.9-9.el7 will be an update ---> Package pcre.x86_64 0:8.32-15.el7 will be updated ---> Package pcre.x86_64 0:8.32-15.el7_2.1 will be an update --> Processing Conflict: libselinux-2.5-6.el7.x86_64 conflicts systemd < 219-20 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package systemd.x86_64 0:219-19.el7 will be updated --> Processing Dependency: systemd = 219-19.el7 for package: systemd-python-219-19.el7.x86_64 --> Processing Dependency: systemd = 219-19.el7 for package: systemd-sysv-219-19.el7.x86_64 ---> Package systemd.x86_64 0:219-30.el7_3.9 will be an update --> Processing Dependency: systemd-libs = 219-30.el7_3.9 for package: systemd-219-30.el7_3.9.x86_64 --> Running transaction check ---> Package systemd-libs.x86_64 0:219-19.el7 will be updated --> Processing Dependency: systemd-libs = 219-19.el7 for package: libgudev1-219-19.el7.x86_64 ---> Package systemd-libs.x86_64 0:219-30.el7_3.9 will be an update ---> Package systemd-python.x86_64 0:219-19.el7 will be updated ---> Package systemd-python.x86_64 0:219-30.el7_3.9 will be an update ---> Package systemd-sysv.x86_64 0:219-19.el7 will be updated ---> Package systemd-sysv.x86_64 0:219-30.el7_3.9 will be an update --> Running transaction check ---> Package libgudev1.x86_64 0:219-19.el7 will be updated ---> Package libgudev1.x86_64 0:219-30.el7_3.9 will be an update --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: openssl-devel x86_64 1:1.0.1e-60.el7_3.1 updates 1.2 M Updating: systemd x86_64 219-30.el7_3.9 updates 5.2 M Installing for dependencies: keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k krb5-devel x86_64 1.14.1-27.el7_3 updates 651 k libcom_err-devel x86_64 1.42.9-9.el7 base 31 k libkadm5 x86_64 1.14.1-27.el7_3 updates 173 k libselinux-devel x86_64 2.5-6.el7 base 186 k libsepol-devel x86_64 2.5-6.el7 base 74 k libverto-devel x86_64 0.2.5-4.el7 base 12 k pcre-devel x86_64 8.32-15.el7_2.1 base 479 k Updating for dependencies: e2fsprogs x86_64 1.42.9-9.el7 base 698 k e2fsprogs-libs x86_64 1.42.9-9.el7 base 166 k krb5-libs x86_64 1.14.1-27.el7_3 updates 740 k libcom_err x86_64 1.42.9-9.el7 base 40 k libgudev1 x86_64 219-30.el7_3.9 updates 77 k libselinux x86_64 2.5-6.el7 base 161 k libselinux-python x86_64 2.5-6.el7 base 234 k libselinux-utils x86_64 2.5-6.el7 base 151 k libsepol x86_64 2.5-6.el7 base 288 k libss x86_64 1.42.9-9.el7 base 45 k openssl x86_64 1:1.0.1e-60.el7_3.1 updates 713 k openssl-libs x86_64 1:1.0.1e-60.el7_3.1 updates 959 k pcre x86_64 8.32-15.el7_2.1 base 420 k systemd-libs x86_64 219-30.el7_3.9 updates 369 k systemd-python x86_64 219-30.el7_3.9 updates 110 k systemd-sysv x86_64 219-30.el7_3.9 updates 64 k Transaction Summary ======================================================================================================================== Install 1 Package (+ 8 Dependent packages) Upgrade 1 Package (+16 Dependent packages) Total download size: 13 M Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/26): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00:00 (2/26): libcom_err-1.42.9-9.el7.x86_64.rpm | 40 kB 00:00:00 (3/26): e2fsprogs-libs-1.42.9-9.el7.x86_64.rpm | 166 kB 00:00:00 (4/26): libcom_err-devel-1.42.9-9.el7.x86_64.rpm | 31 kB 00:00:00 (5/26): e2fsprogs-1.42.9-9.el7.x86_64.rpm | 698 kB 00:00:00 (6/26): krb5-libs-1.14.1-27.el7_3.x86_64.rpm | 740 kB 00:00:00 (7/26): libselinux-2.5-6.el7.x86_64.rpm | 161 kB 00:00:00 (8/26): libgudev1-219-30.el7_3.9.x86_64.rpm | 77 kB 00:00:00 (9/26): libselinux-python-2.5-6.el7.x86_64.rpm | 234 kB 00:00:00 (10/26): krb5-devel-1.14.1-27.el7_3.x86_64.rpm | 651 kB 00:00:01 (11/26): libsepol-2.5-6.el7.x86_64.rpm | 288 kB 00:00:00 (12/26): libselinux-devel-2.5-6.el7.x86_64.rpm | 186 kB 00:00:00 (13/26): libsepol-devel-2.5-6.el7.x86_64.rpm | 74 kB 00:00:00 (14/26): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:00:00 (15/26): libss-1.42.9-9.el7.x86_64.rpm | 45 kB 00:00:00 (16/26): libselinux-utils-2.5-6.el7.x86_64.rpm | 151 kB 00:00:00 (17/26): pcre-8.32-15.el7_2.1.x86_64.rpm | 420 kB 00:00:00 (18/26): openssl-devel-1.0.1e-60.el7_3.1.x86_64.rpm | 1.2 MB 00:00:00 (19/26): openssl-1.0.1e-60.el7_3.1.x86_64.rpm | 713 kB 00:00:01 (20/26): openssl-libs-1.0.1e-60.el7_3.1.x86_64.rpm | 959 kB 00:00:01 (21/26): systemd-libs-219-30.el7_3.9.x86_64.rpm | 369 kB 00:00:00 (22/26): pcre-devel-8.32-15.el7_2.1.x86_64.rpm | 479 kB 00:00:00 (23/26): systemd-sysv-219-30.el7_3.9.x86_64.rpm | 64 kB 00:00:00 (24/26): systemd-python-219-30.el7_3.9.x86_64.rpm | 110 kB 00:00:00 (25/26): libkadm5-1.14.1-27.el7_3.x86_64.rpm | 173 kB 00:00:02 (26/26): systemd-219-30.el7_3.9.x86_64.rpm | 5.2 MB 00:00:01 ------------------------------------------------------------------------------------------------------------------------ Total 3.1 MB/s | 13 MB 00:00:04 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : libcom_err-1.42.9-9.el7.x86_64 1/43 Updating : libsepol-2.5-6.el7.x86_64 2/43 Updating : pcre-8.32-15.el7_2.1.x86_64 3/43 Updating : libselinux-2.5-6.el7.x86_64 4/43 Updating : 1:openssl-libs-1.0.1e-60.el7_3.1.x86_64 5/43 Updating : krb5-libs-1.14.1-27.el7_3.x86_64 6/43 Updating : systemd-libs-219-30.el7_3.9.x86_64 7/43 Updating : systemd-219-30.el7_3.9.x86_64 8/43 Installing : libkadm5-1.14.1-27.el7_3.x86_64 9/43 Installing : pcre-devel-8.32-15.el7_2.1.x86_64 10/43 Installing : libsepol-devel-2.5-6.el7.x86_64 11/43 Installing : libselinux-devel-2.5-6.el7.x86_64 12/43 Updating : libss-1.42.9-9.el7.x86_64 13/43 Installing : libcom_err-devel-1.42.9-9.el7.x86_64 14/43 Updating : e2fsprogs-libs-1.42.9-9.el7.x86_64 15/43 Installing : libverto-devel-0.2.5-4.el7.x86_64 16/43 Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 17/43 Installing : krb5-devel-1.14.1-27.el7_3.x86_64 18/43 Installing : 1:openssl-devel-1.0.1e-60.el7_3.1.x86_64 19/43 Updating : e2fsprogs-1.42.9-9.el7.x86_64 20/43 Updating : systemd-sysv-219-30.el7_3.9.x86_64 21/43 Updating : systemd-python-219-30.el7_3.9.x86_64 22/43 Updating : libgudev1-219-30.el7_3.9.x86_64 23/43 Updating : 1:openssl-1.0.1e-60.el7_3.1.x86_64 24/43 Updating : libselinux-python-2.5-6.el7.x86_64 25/43 Updating : libselinux-utils-2.5-6.el7.x86_64 26/43 Cleanup : e2fsprogs-1.42.9-7.el7.x86_64 27/43 Cleanup : 1:openssl-1.0.1e-42.el7.9.x86_64 28/43 Cleanup : systemd-sysv-219-19.el7.x86_64 29/43 Cleanup : systemd-python-219-19.el7.x86_64 30/43 Cleanup : systemd-219-19.el7.x86_64 31/43 Cleanup : krb5-libs-1.13.2-10.el7.x86_64 32/43 Cleanup : 1:openssl-libs-1.0.1e-42.el7.9.x86_64 33/43 Cleanup : e2fsprogs-libs-1.42.9-7.el7.x86_64 34/43 Cleanup : libss-1.42.9-7.el7.x86_64 35/43 Cleanup : libgudev1-219-19.el7.x86_64 36/43 Cleanup : systemd-libs-219-19.el7.x86_64 37/43 Cleanup : libselinux-utils-2.2.2-6.el7.x86_64 38/43 Cleanup : libselinux-python-2.2.2-6.el7.x86_64 39/43 Cleanup : libselinux-2.2.2-6.el7.x86_64 40/43 Cleanup : pcre-8.32-15.el7.x86_64 41/43 Cleanup : libsepol-2.1.9-3.el7.x86_64 42/43 Cleanup : libcom_err-1.42.9-7.el7.x86_64 43/43 Verifying : 1:openssl-1.0.1e-60.el7_3.1.x86_64 1/43 Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 2/43 Verifying : libkadm5-1.14.1-27.el7_3.x86_64 3/43 Verifying : libss-1.42.9-9.el7.x86_64 4/43 Verifying : libsepol-2.5-6.el7.x86_64 5/43 Verifying : libsepol-devel-2.5-6.el7.x86_64 6/43 Verifying : pcre-devel-8.32-15.el7_2.1.x86_64 7/43 Verifying : libselinux-python-2.5-6.el7.x86_64 8/43 Verifying : libselinux-devel-2.5-6.el7.x86_64 9/43 Verifying : 1:openssl-libs-1.0.1e-60.el7_3.1.x86_64 10/43 Verifying : libcom_err-devel-1.42.9-9.el7.x86_64 11/43 Verifying : systemd-sysv-219-30.el7_3.9.x86_64 12/43 Verifying : libverto-devel-0.2.5-4.el7.x86_64 13/43 Verifying : krb5-libs-1.14.1-27.el7_3.x86_64 14/43 Verifying : libselinux-utils-2.5-6.el7.x86_64 15/43 Verifying : 1:openssl-devel-1.0.1e-60.el7_3.1.x86_64 16/43 Verifying : libgudev1-219-30.el7_3.9.x86_64 17/43 Verifying : e2fsprogs-libs-1.42.9-9.el7.x86_64 18/43 Verifying : systemd-python-219-30.el7_3.9.x86_64 19/43 Verifying : libselinux-2.5-6.el7.x86_64 20/43 Verifying : libcom_err-1.42.9-9.el7.x86_64 21/43 Verifying : krb5-devel-1.14.1-27.el7_3.x86_64 22/43 Verifying : e2fsprogs-1.42.9-9.el7.x86_64 23/43 Verifying : systemd-libs-219-30.el7_3.9.x86_64 24/43 Verifying : pcre-8.32-15.el7_2.1.x86_64 25/43 Verifying : systemd-219-30.el7_3.9.x86_64 26/43 Verifying : libcom_err-1.42.9-7.el7.x86_64 27/43 Verifying : systemd-sysv-219-19.el7.x86_64 28/43 Verifying : libgudev1-219-19.el7.x86_64 29/43 Verifying : pcre-8.32-15.el7.x86_64 30/43 Verifying : e2fsprogs-1.42.9-7.el7.x86_64 31/43 Verifying : systemd-libs-219-19.el7.x86_64 32/43 Verifying : e2fsprogs-libs-1.42.9-7.el7.x86_64 33/43 Verifying : libselinux-utils-2.2.2-6.el7.x86_64 34/43 Verifying : systemd-219-19.el7.x86_64 35/43 Verifying : libsepol-2.1.9-3.el7.x86_64 36/43 Verifying : 1:openssl-libs-1.0.1e-42.el7.9.x86_64 37/43 Verifying : krb5-libs-1.13.2-10.el7.x86_64 38/43 Verifying : libss-1.42.9-7.el7.x86_64 39/43 Verifying : libselinux-python-2.2.2-6.el7.x86_64 40/43 Verifying : systemd-python-219-19.el7.x86_64 41/43 Verifying : libselinux-2.2.2-6.el7.x86_64 42/43 Verifying : 1:openssl-1.0.1e-42.el7.9.x86_64 43/43 Installed: openssl-devel.x86_64 1:1.0.1e-60.el7_3.1 Dependency Installed: keyutils-libs-devel.x86_64 0:1.5.8-3.el7 krb5-devel.x86_64 0:1.14.1-27.el7_3 libcom_err-devel.x86_64 0:1.42.9-9.el7 libkadm5.x86_64 0:1.14.1-27.el7_3 libselinux-devel.x86_64 0:2.5-6.el7 libsepol-devel.x86_64 0:2.5-6.el7 libverto-devel.x86_64 0:0.2.5-4.el7 pcre-devel.x86_64 0:8.32-15.el7_2.1 Updated: systemd.x86_64 0:219-30.el7_3.9 Dependency Updated: e2fsprogs.x86_64 0:1.42.9-9.el7 e2fsprogs-libs.x86_64 0:1.42.9-9.el7 krb5-libs.x86_64 0:1.14.1-27.el7_3 libcom_err.x86_64 0:1.42.9-9.el7 libgudev1.x86_64 0:219-30.el7_3.9 libselinux.x86_64 0:2.5-6.el7 libselinux-python.x86_64 0:2.5-6.el7 libselinux-utils.x86_64 0:2.5-6.el7 libsepol.x86_64 0:2.5-6.el7 libss.x86_64 0:1.42.9-9.el7 openssl.x86_64 1:1.0.1e-60.el7_3.1 openssl-libs.x86_64 1:1.0.1e-60.el7_3.1 pcre.x86_64 0:8.32-15.el7_2.1 systemd-libs.x86_64 0:219-30.el7_3.9 systemd-python.x86_64 0:219-30.el7_3.9 systemd-sysv.x86_64 0:219-30.el7_3.9 Complete! [root@localhost ~]#
5. bzip2-devel
[root@localhost ~]# yum install bzip2-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package bzip2-devel.x86_64 0:1.0.6-13.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: bzip2-devel x86_64 1.0.6-13.el7 base 218 k Transaction Summary ======================================================================================================================== Install 1 Package Total download size: 218 k Installed size: 382 k Is this ok [y/d/N]: y Downloading packages: bzip2-devel-1.0.6-13.el7.x86_64.rpm | 218 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : bzip2-devel-1.0.6-13.el7.x86_64 1/1 Verifying : bzip2-devel-1.0.6-13.el7.x86_64 1/1 Installed: bzip2-devel.x86_64 0:1.0.6-13.el7 Complete! [root@localhost ~]#
6. ncurses-devel
[root@localhost ~]# yum install ncurses-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package ncurses-devel.x86_64 0:5.9-13.20130511.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: ncurses-devel x86_64 5.9-13.20130511.el7 base 713 k Transaction Summary ======================================================================================================================== Install 1 Package Total download size: 713 k Installed size: 2.1 M Is this ok [y/d/N]: y Downloading packages: ncurses-devel-5.9-13.20130511.el7.x86_64.rpm | 713 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : ncurses-devel-5.9-13.20130511.el7.x86_64 1/1 Verifying : ncurses-devel-5.9-13.20130511.el7.x86_64 1/1 Installed: ncurses-devel.x86_64 0:5.9-13.20130511.el7 Complete! [root@localhost ~]#
7. sqlite-devel
[root@localhost ~]# yum install sqlite-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package sqlite-devel.x86_64 0:3.7.17-8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: sqlite-devel x86_64 3.7.17-8.el7 base 104 k Transaction Summary ======================================================================================================================== Install 1 Package Total download size: 104 k Installed size: 366 k Is this ok [y/d/N]: y Downloading packages: sqlite-devel-3.7.17-8.el7.x86_64.rpm | 104 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : sqlite-devel-3.7.17-8.el7.x86_64 1/1 Verifying : sqlite-devel-3.7.17-8.el7.x86_64 1/1 Installed: sqlite-devel.x86_64 0:3.7.17-8.el7 Complete! [root@localhost ~]#
8. readline-devel
[root@localhost ~]# yum install readline-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package readline-devel.x86_64 0:6.2-9.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: readline-devel x86_64 6.2-9.el7 base 138 k Transaction Summary ======================================================================================================================== Install 1 Package Total download size: 138 k Installed size: 259 k Is this ok [y/d/N]: y Downloading packages: readline-devel-6.2-9.el7.x86_64.rpm | 138 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : readline-devel-6.2-9.el7.x86_64 1/1 Verifying : readline-devel-6.2-9.el7.x86_64 1/1 Installed: readline-devel.x86_64 0:6.2-9.el7 Complete! [root@localhost ~]#
9. tk-devel
[root@localhost ~]# yum install tk-devel Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.ustc.edu.cn * extras: centos.ustc.edu.cn * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package tk-devel.x86_64 1:8.5.13-6.el7 will be installed --> Processing Dependency: tk = 1:8.5.13-6.el7 for package: 1:tk-devel-8.5.13-6.el7.x86_64 --> Processing Dependency: tcl-devel = 1:8.5.13 for package: 1:tk-devel-8.5.13-6.el7.x86_64 --> Processing Dependency: libXft-devel for package: 1:tk-devel-8.5.13-6.el7.x86_64 --> Processing Dependency: libX11-devel for package: 1:tk-devel-8.5.13-6.el7.x86_64 --> Running transaction check ---> Package libX11-devel.x86_64 0:1.6.3-3.el7 will be installed --> Processing Dependency: libX11 = 1.6.3-3.el7 for package: libX11-devel-1.6.3-3.el7.x86_64 --> Processing Dependency: pkgconfig(xcb) >= 1.1.92 for package: libX11-devel-1.6.3-3.el7.x86_64 --> Processing Dependency: pkgconfig(xproto) for package: libX11-devel-1.6.3-3.el7.x86_64 --> Processing Dependency: pkgconfig(xcb) for package: libX11-devel-1.6.3-3.el7.x86_64 --> Processing Dependency: pkgconfig(kbproto) for package: libX11-devel-1.6.3-3.el7.x86_64 ---> Package libXft-devel.x86_64 0:2.3.2-2.el7 will be installed --> Processing Dependency: libXft = 2.3.2-2.el7 for package: libXft-devel-2.3.2-2.el7.x86_64 --> Processing Dependency: pkgconfig(xrender) for package: libXft-devel-2.3.2-2.el7.x86_64 --> Processing Dependency: pkgconfig(freetype2) for package: libXft-devel-2.3.2-2.el7.x86_64 --> Processing Dependency: pkgconfig(fontconfig) for package: libXft-devel-2.3.2-2.el7.x86_64 --> Processing Dependency: libXft.so.2()(64bit) for package: libXft-devel-2.3.2-2.el7.x86_64 ---> Package tcl-devel.x86_64 1:8.5.13-8.el7 will be installed --> Processing Dependency: tcl = 1:8.5.13-8.el7 for package: 1:tcl-devel-8.5.13-8.el7.x86_64 ---> Package tk.x86_64 1:8.5.13-6.el7 will be installed --> Running transaction check ---> Package fontconfig-devel.x86_64 0:2.10.95-10.el7 will be installed --> Processing Dependency: fontconfig(x86-64) = 2.10.95-10.el7 for package: fontconfig-devel-2.10.95-10.el7.x86_64 --> Processing Dependency: pkgconfig(expat) for package: fontconfig-devel-2.10.95-10.el7.x86_64 --> Processing Dependency: libfontconfig.so.1()(64bit) for package: fontconfig-devel-2.10.95-10.el7.x86_64 ---> Package freetype-devel.x86_64 0:2.4.11-12.el7 will be installed --> Processing Dependency: freetype = 2.4.11-12.el7 for package: freetype-devel-2.4.11-12.el7.x86_64 ---> Package libX11.x86_64 0:1.6.3-2.el7 will be updated ---> Package libX11.x86_64 0:1.6.3-3.el7 will be an update --> Processing Dependency: libX11-common >= 1.6.3-3.el7 for package: libX11-1.6.3-3.el7.x86_64 ---> Package libXft.x86_64 0:2.3.2-2.el7 will be installed --> Processing Dependency: libXrender.so.1()(64bit) for package: libXft-2.3.2-2.el7.x86_64 ---> Package libXrender-devel.x86_64 0:0.9.8-2.1.el7 will be installed ---> Package libxcb-devel.x86_64 0:1.11-4.el7 will be installed --> Processing Dependency: pkgconfig(xau) >= 0.99.2 for package: libxcb-devel-1.11-4.el7.x86_64 ---> Package tcl.x86_64 1:8.5.13-8.el7 will be installed ---> Package xorg-x11-proto-devel.noarch 0:7.7-13.el7 will be installed --> Running transaction check ---> Package expat-devel.x86_64 0:2.1.0-10.el7_3 will be installed --> Processing Dependency: expat = 2.1.0-10.el7_3 for package: expat-devel-2.1.0-10.el7_3.x86_64 ---> Package fontconfig.x86_64 0:2.10.95-10.el7 will be installed --> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.10.95-10.el7.x86_64 ---> Package freetype.x86_64 0:2.4.11-11.el7 will be updated ---> Package freetype.x86_64 0:2.4.11-12.el7 will be an update ---> Package libX11-common.noarch 0:1.6.3-2.el7 will be updated ---> Package libX11-common.noarch 0:1.6.3-3.el7 will be an update ---> Package libXau-devel.x86_64 0:1.0.8-2.1.el7 will be installed ---> Package libXrender.x86_64 0:0.9.8-2.1.el7 will be installed --> Running transaction check ---> Package expat.x86_64 0:2.1.0-8.el7 will be updated ---> Package expat.x86_64 0:2.1.0-10.el7_3 will be an update ---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================== Package Arch Version Repository Size ======================================================================================================================== Installing: tk-devel x86_64 1:8.5.13-6.el7 base 488 k Installing for dependencies: expat-devel x86_64 2.1.0-10.el7_3 updates 57 k fontconfig x86_64 2.10.95-10.el7 base 229 k fontconfig-devel x86_64 2.10.95-10.el7 base 128 k fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k freetype-devel x86_64 2.4.11-12.el7 base 356 k libX11-devel x86_64 1.6.3-3.el7 base 980 k libXau-devel x86_64 1.0.8-2.1.el7 base 14 k libXft x86_64 2.3.2-2.el7 base 58 k libXft-devel x86_64 2.3.2-2.el7 base 19 k libXrender x86_64 0.9.8-2.1.el7 base 25 k libXrender-devel x86_64 0.9.8-2.1.el7 base 16 k libxcb-devel x86_64 1.11-4.el7 base 1.1 M tcl x86_64 1:8.5.13-8.el7 base 1.9 M tcl-devel x86_64 1:8.5.13-8.el7 base 165 k tk x86_64 1:8.5.13-6.el7 base 1.4 M xorg-x11-proto-devel noarch 7.7-13.el7 base 281 k Updating for dependencies: expat x86_64 2.1.0-10.el7_3 updates 81 k freetype x86_64 2.4.11-12.el7 base 391 k libX11 x86_64 1.6.3-3.el7 base 606 k libX11-common noarch 1.6.3-3.el7 base 162 k Transaction Summary ======================================================================================================================== Install 1 Package (+16 Dependent packages) Upgrade ( 4 Dependent packages) Total download size: 8.3 M Is this ok [y/d/N]: y Downloading packages: Delta RPMs disabled because /usr/bin/applydeltarpm not installed. (1/21): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:00 (2/21): expat-devel-2.1.0-10.el7_3.x86_64.rpm | 57 kB 00:00:00 (3/21): expat-2.1.0-10.el7_3.x86_64.rpm | 81 kB 00:00:00 (4/21): fontconfig-devel-2.10.95-10.el7.x86_64.rpm | 128 kB 00:00:00 (5/21): fontconfig-2.10.95-10.el7.x86_64.rpm | 229 kB 00:00:00 (6/21): freetype-2.4.11-12.el7.x86_64.rpm | 391 kB 00:00:00 (7/21): libX11-common-1.6.3-3.el7.noarch.rpm | 162 kB 00:00:00 (8/21): libXau-devel-1.0.8-2.1.el7.x86_64.rpm | 14 kB 00:00:00 (9/21): libXft-2.3.2-2.el7.x86_64.rpm | 58 kB 00:00:00 (10/21): libXft-devel-2.3.2-2.el7.x86_64.rpm | 19 kB 00:00:00 (11/21): libXrender-0.9.8-2.1.el7.x86_64.rpm | 25 kB 00:00:00 (12/21): libXrender-devel-0.9.8-2.1.el7.x86_64.rpm | 16 kB 00:00:00 (13/21): libX11-devel-1.6.3-3.el7.x86_64.rpm | 980 kB 00:00:00 (14/21): tcl-devel-8.5.13-8.el7.x86_64.rpm | 165 kB 00:00:00 (15/21): libxcb-devel-1.11-4.el7.x86_64.rpm | 1.1 MB 00:00:00 (16/21): tk-8.5.13-6.el7.x86_64.rpm | 1.4 MB 00:00:00 (17/21): libX11-1.6.3-3.el7.x86_64.rpm | 606 kB 00:00:01 (18/21): tcl-8.5.13-8.el7.x86_64.rpm | 1.9 MB 00:00:01 (19/21): xorg-x11-proto-devel-7.7-13.el7.noarch.rpm | 281 kB 00:00:00 (20/21): tk-devel-8.5.13-6.el7.x86_64.rpm | 488 kB 00:00:00 (21/21): freetype-devel-2.4.11-12.el7.x86_64.rpm | 356 kB 00:00:03 ------------------------------------------------------------------------------------------------------------------------ Total 2.4 MB/s | 8.3 MB 00:00:03 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : freetype-2.4.11-12.el7.x86_64 1/25 Installing : xorg-x11-proto-devel-7.7-13.el7.noarch 2/25 Installing : freetype-devel-2.4.11-12.el7.x86_64 3/25 Updating : expat-2.1.0-10.el7_3.x86_64 4/25 Installing : 1:tcl-8.5.13-8.el7.x86_64 5/25 Installing : 1:tcl-devel-8.5.13-8.el7.x86_64 6/25 Installing : expat-devel-2.1.0-10.el7_3.x86_64 7/25 Installing : libXau-devel-1.0.8-2.1.el7.x86_64 8/25 Installing : libxcb-devel-1.11-4.el7.x86_64 9/25 Updating : libX11-common-1.6.3-3.el7.noarch 10/25 Updating : libX11-1.6.3-3.el7.x86_64 11/25 Installing : libXrender-0.9.8-2.1.el7.x86_64 12/25 Installing : libX11-devel-1.6.3-3.el7.x86_64 13/25 Installing : libXrender-devel-0.9.8-2.1.el7.x86_64 14/25 Installing : fontpackages-filesystem-1.44-8.el7.noarch 15/25 Installing : fontconfig-2.10.95-10.el7.x86_64 16/25 Installing : libXft-2.3.2-2.el7.x86_64 17/25 Installing : 1:tk-8.5.13-6.el7.x86_64 18/25 Installing : fontconfig-devel-2.10.95-10.el7.x86_64 19/25 Installing : libXft-devel-2.3.2-2.el7.x86_64 20/25 Installing : 1:tk-devel-8.5.13-6.el7.x86_64 21/25 Cleanup : libX11-1.6.3-2.el7.x86_64 22/25 Cleanup : libX11-common-1.6.3-2.el7.noarch 23/25 Cleanup : expat-2.1.0-8.el7.x86_64 24/25 Cleanup : freetype-2.4.11-11.el7.x86_64 25/25 Verifying : libXft-devel-2.3.2-2.el7.x86_64 1/25 Verifying : 1:tcl-8.5.13-8.el7.x86_64 2/25 Verifying : libxcb-devel-1.11-4.el7.x86_64 3/25 Verifying : freetype-devel-2.4.11-12.el7.x86_64 4/25 Verifying : fontpackages-filesystem-1.44-8.el7.noarch 5/25 Verifying : expat-devel-2.1.0-10.el7_3.x86_64 6/25 Verifying : 1:tk-devel-8.5.13-6.el7.x86_64 7/25 Verifying : libXft-2.3.2-2.el7.x86_64 8/25 Verifying : libXrender-0.9.8-2.1.el7.x86_64 9/25 Verifying : xorg-x11-proto-devel-7.7-13.el7.noarch 10/25 Verifying : libXrender-devel-0.9.8-2.1.el7.x86_64 11/25 Verifying : 1:tk-8.5.13-6.el7.x86_64 12/25 Verifying : libX11-devel-1.6.3-3.el7.x86_64 13/25 Verifying : freetype-2.4.11-12.el7.x86_64 14/25 Verifying : libX11-1.6.3-3.el7.x86_64 15/25 Verifying : fontconfig-devel-2.10.95-10.el7.x86_64 16/25 Verifying : expat-2.1.0-10.el7_3.x86_64 17/25 Verifying : libX11-common-1.6.3-3.el7.noarch 18/25 Verifying : fontconfig-2.10.95-10.el7.x86_64 19/25 Verifying : 1:tcl-devel-8.5.13-8.el7.x86_64 20/25 Verifying : libXau-devel-1.0.8-2.1.el7.x86_64 21/25 Verifying : libX11-common-1.6.3-2.el7.noarch 22/25 Verifying : freetype-2.4.11-11.el7.x86_64 23/25 Verifying : libX11-1.6.3-2.el7.x86_64 24/25 Verifying : expat-2.1.0-8.el7.x86_64 25/25 Installed: tk-devel.x86_64 1:8.5.13-6.el7 Dependency Installed: expat-devel.x86_64 0:2.1.0-10.el7_3 fontconfig.x86_64 0:2.10.95-10.el7 fontconfig-devel.x86_64 0:2.10.95-10.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 freetype-devel.x86_64 0:2.4.11-12.el7 libX11-devel.x86_64 0:1.6.3-3.el7 libXau-devel.x86_64 0:1.0.8-2.1.el7 libXft.x86_64 0:2.3.2-2.el7 libXft-devel.x86_64 0:2.3.2-2.el7 libXrender.x86_64 0:0.9.8-2.1.el7 libXrender-devel.x86_64 0:0.9.8-2.1.el7 libxcb-devel.x86_64 0:1.11-4.el7 tcl.x86_64 1:8.5.13-8.el7 tcl-devel.x86_64 1:8.5.13-8.el7 tk.x86_64 1:8.5.13-6.el7 xorg-x11-proto-devel.noarch 0:7.7-13.el7 Dependency Updated: expat.x86_64 0:2.1.0-10.el7_3 freetype.x86_64 0:2.4.11-12.el7 libX11.x86_64 0:1.6.3-3.el7 libX11-common.noarch 0:1.6.3-3.el7 Complete! [root@localhost ~]#
二. 下载安装python3
1. 创建安装文件夹
[rossi@localhost ~]$ mkdir /usr/local/python3
2. 下载python3安装源文件
[root@localhost ~]# wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tgz
3. 解压安装文件
[root@localhost ~]# tar -xzvf Python-3.6.2.tgz
4. 配置安装
[root@localhost ~]# cd Python-3.6.2/ [root@localhost Python-3.6.2]# ./configure --prefix=/usr/local/python3 --enable-shared --with-ssl
5. make
[root@localhost Python-3.6.2]# make
make的时候报了一些warning,但不影响最后的安装
/root/Downloads/Python-3.6.2/Modules/expat/xmlparse.c: In function ‘gather_time_entropy’: /root/Downloads/Python-3.6.2/Modules/expat/xmlparse.c:780:7: warning: variable ‘gettimeofday_res’ set but not used [-Wunused-but-set-variable] int gettimeofday_res; ^ /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c: In function ‘classify_argument’: /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c:195:18: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] FFI_ASSERT (0); ^ /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c:224:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < words; i++) ^ /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c:245:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < num; i++) ^ /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c:264:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 1; i < words; i++) ^ /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c:270:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < words; i++) ^ /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c: In function ‘examine_argument’: /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c:323:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < n; ++i) ^ /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c: In function ‘ffi_call’: /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c:484:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j = 0; j < n; j++, a += 8, size -= 8) ^ /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c: In function ‘ffi_closure_unix64_inner’: /root/Downloads/Python-3.6.2/Modules/_ctypes/libffi/src/x86/ffi64.c:659:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j = 0; j < n; j++, a += 8) ^
6. make install
[root@localhost Python-3.6.2]# make install
7. 清除编译的可执行文件及配置文件
[root@localhost Python-3.6.2]# make clean
find . -depth -name '__pycache__' -exec rm -rf {} ';'
find . -name '*.py[co]' -exec rm -f {} ';'
find . -name '*.[oa]' -exec rm -f {} ';'
find . -name '*.s[ol]' -exec rm -f {} ';'
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
find build -name 'fficonfig.h' -exec rm -f {} ';' || true
find build -name '*.py' -exec rm -f {} ';' || true
find build -name '*.py[co]' -exec rm -f {} ';' || true
rm -f pybuilddir.txt
rm -f Lib/lib2to3/*Grammar*.pickle
rm -f Programs/_testembed Programs/_freeze_importlib
find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
rm -f Include/pydtrace_probes.h
[root@localhost Python-3.6.2]#
8. 清除所有生成的文件
[root@localhost Python-3.6.2]# make distclean
find . -depth -name '__pycache__' -exec rm -rf {} ';'
find . -name '*.py[co]' -exec rm -f {} ';'
find . -name '*.[oa]' -exec rm -f {} ';'
find . -name '*.s[ol]' -exec rm -f {} ';'
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
find build -name 'fficonfig.h' -exec rm -f {} ';' || true
find build -name '*.py' -exec rm -f {} ';' || true
find build -name '*.py[co]' -exec rm -f {} ';' || true
rm -f pybuilddir.txt
rm -f Lib/lib2to3/*Grammar*.pickle
rm -f Programs/_testembed Programs/_freeze_importlib
find build -type f -a ! -name '*.gc??' -exec rm -f {} ';'
rm -f Include/pydtrace_probes.h
find . -name '*.gc??' -exec rm -f {} ';'
find . -name '*.profclang?' -exec rm -f {} ';'
find . -name '*.dyn' -exec rm -f {} ';'
rm -f /root/Downloads/Python-3.6.2/coverage.info
rm -rf /root/Downloads/Python-3.6.2/lcov-report
rm -f python Parser/pgen libpython3.6m.a libpython3.6m.so \
tags TAGS \
config.cache config.log pyconfig.h Modules/config.c
rm -rf build platform
rm -rf no-framework
rm -f python-config.py python-config
for file in ./Lib/test/data/* ; do \
if test "$file" != "./Lib/test/data/README"; then rm "$file"; fi; \
done
rm -f core Makefile Makefile.pre config.status \
Modules/Setup Modules/Setup.local Modules/Setup.config \
Modules/ld_so_aix Modules/python.exp Misc/python.pc \
Misc/python-config.sh
rm -f python*-gdb.py
# Issue #28258: set LC_ALL to avoid issues with Estonian locale.
# Expansion is performed here by shell (spawned by make) itself before
# arguments are passed to find. So LC_ALL=C must be set as a separate
# command.
LC_ALL=C; find ./[a-zA-Z]* '(' -name '*.fdc' -o -name '*~' \
-o -name '[@,#]*' -o -name '*.old' \
-o -name '*.orig' -o -name '*.rej' \
-o -name '*.bak' ')' \
-exec rm -f {} ';'
[root@localhost Python-3.6.2]#
三. 系统配置
1. 新建python3的软连接
[root@localhost Python-3.6.2]# cd /usr/bin [root@localhost bin]# ls -ltr python* -rwxr-xr-x. 1 root root 7136 Nov 19 2015 python2.7 lrwxrwxrwx. 1 root root 9 Sep 4 11:25 python2 -> python2.7 lrwxrwxrwx. 1 root root 7 Sep 4 11:25 python -> python2 [root@localhost bin]# ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3 [root@localhost bin]# ls -ltr python* -rwxr-xr-x. 1 root root 7136 Nov 19 2015 python2.7 lrwxrwxrwx. 1 root root 9 Sep 4 11:25 python2 -> python2.7 lrwxrwxrwx. 1 root root 7 Sep 4 11:25 python -> python2 lrwxrwxrwx. 1 root root 32 Sep 5 11:24 python3 -> /usr/local/python3/bin/python3.6 [root@localhost bin]#
2. 解决安装时设置enable-shared造成的报错
[root@localhost bin]# python3
python3: error while loading shared libraries: libpython3.6m.so.1.0: cannot open shared object file: No such file or directory
[root@localhost bin]# cd /etc/ld.so.conf.d/
[root@localhost ld.so.conf.d]# dir
dyninst-x86_64.conf kernel-3.10.0-327.el7.x86_64.conf mariadb-x86_64.conf
[root@localhost ld.so.conf.d]# vim python3.conf
[root@localhost ld.so.conf.d]# ldconfig
[root@localhost ld.so.conf.d]# python3
Python 3.6.2 (default, Sep 5 2017, 10:47:56)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
python3.conf文件键入以下内容
3. 新建pip3软连接
[root@localhost bin]# ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 [root@localhost bin]# cd /usr/bin [root@localhost bin]# ls -lta pip* lrwxrwxrwx. 1 root root 27 Sep 5 12:09 pip3 -> /usr/local/python3/bin/pip3 [root@localhost bin]#
本文详细介绍了在CentOS7上安装Python3的过程,包括需要安装的依赖包,如gcc、zlib-devel等,下载Python3源文件,进行编译、安装,并解决安装过程中遇到的问题,如创建python3的软链接和配置python3.conf文件。

4万+

被折叠的 条评论
为什么被折叠?



