MongoDB tip: mtools setup
This is just a quick guide on setting up mtools, there will be a separate post with examples.
Determine the version of Redhat I am working with
Start working on installing the required modules.
All the dependent modules seemed to be loaded without an issue until when I attempted to run
pip install mtool
I realized my version of python is not supported, mtool only works with python 2.x while I am running python 3.x
Start over on new server...
I started over and attempted the same installation on a different server and I had to work around some obstacles to get these packages setup. First of all, I had to install pip on this new server.
pip install mplotlib doesn't work,
Instead,
pip install psutil doesn't work straight away,
Instead,
The rest work pretty much the same way as my failed attempt
Once you have all the required modules loaded, then
Determine the version of Redhat I am working with
[root@msdlva-dsnopm02 apps]# lsb_release -aLSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarchDistributor ID: RedHatEnterpriseServerDescription: Red Hat Enterprise Linux Server release 7.3 (Maipo)Release: 7.3Codename: Maipo
Start working on installing the required modules.
[root@msdlvd-dsnavl02 ~]# pip install ordereddictCollecting ordereddictDownloading ordereddict-1.1.tar.gzInstalling collected packages: ordereddictRunning setup.py install for ordereddict ... doneSuccessfully installed ordereddict-1.1[root@msdlvd-dsnavl02 ~]# pip install argparseCollecting argparseDownloading argparse-1.4.0-py2.py3-none-any.whlInstalling collected packages: argparseSuccessfully installed argparse-1.4.0[root@msdlvd-dsnavl02 ~]# pip install python-dateutilRequirement already satisfied: python-dateutil in /opt/rh/rh-python35/root/usr/lib/python3.5/site-packagesRequirement already satisfied: six>=1.5 in /opt/rh/rh-python35/root/usr/lib/python3.5/site-packages (from python-dateutil)[root@msdlvd-dsnavl02 ~]# pip install matplotlibCollecting matplotlibDownloading matplotlib-2.0.2-cp35-cp35m-manylinux1_x86_64.whl (14.6MB)100% |████████████████████████████████| 14.6MB 72kB/sCollecting cycler>=0.10 (from matplotlib)Downloading cycler-0.10.0-py2.py3-none-any.whlRequirement already satisfied: pytz in /opt/rh/rh-python35/root/usr/lib/python3.5/site-packages (from matplotlib)Collecting numpy>=1.7.1 (from matplotlib)Downloading numpy-1.13.1-cp35-cp35m-manylinux1_x86_64.whl (16.9MB)100% |████████████████████████████████| 16.9MB 62kB/sCollecting pyparsing!=2.0.0,!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 (from matplotlib)Downloading pyparsing-2.2.0-py2.py3-none-any.whl (56kB)100% |████████████████████████████████| 61kB 8.7MB/sRequirement already satisfied: python-dateutil in /opt/rh/rh-python35/root/usr/lib/python3.5/site-packages (from matplotlib)Requirement already satisfied: six>=1.10 in /opt/rh/rh-python35/root/usr/lib/python3.5/site-packages (from matplotlib)Installing collected packages: cycler, numpy, pyparsing, matplotlibSuccessfully installed cycler-0.10.0 matplotlib-2.0.2 numpy-1.13.1 pyparsing-2.2.0[root@msdlvd-dsnavl02 ~]# pip install noseCollecting noseDownloading nose-1.3.7-py3-none-any.whl (154kB)100% |████████████████████████████████| 163kB 4.6MB/sInstalling collected packages: noseSuccessfully installed nose-1.3.7[root@msdlvd-dsnavl02 ~]# pip install numpy pymongo psutilRequirement already satisfied: numpy in /opt/rh/rh-python35/root/usr/lib64/python3.5/site-packagesRequirement already satisfied: pymongo in /opt/rh/rh-python35/root/usr/lib64/python3.5/site-packagesCollecting psutilDownloading psutil-5.2.2.tar.gz (348kB)100% |████████████████████████████████| 358kB 2.7MB/sInstalling collected packages: psutilRunning setup.py install for psutil ... doneSuccessfully installed psutil-5.2.2
All the dependent modules seemed to be loaded without an issue until when I attempted to run
pip install mtool
I realized my version of python is not supported, mtool only works with python 2.x while I am running python 3.x
Start over on new server...
I started over and attempted the same installation on a different server and I had to work around some obstacles to get these packages setup. First of all, I had to install pip on this new server.
# download pip
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
# to install pip
python get-pip.py
pip install mplotlib doesn't work,
Instead,
[root@msdlva-dsnopm02 ~]# yum install python-matplotlibLoaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-managerThis system is receiving updates from RHN Classic or Red Hat Satellite.Resolving Dependencies--> Running transaction check---> Package python-matplotlib.x86_64 0:1.2.0-15.el7 will be installed--> Processing Dependency: stix-fonts for package: python-matplotlib-1.2.0-15.el7.x86_64--> Processing Dependency: dvipng for package: python-matplotlib-1.2.0-15.el7.x86_64--> Processing Dependency: pytz for package: python-matplotlib-1.2.0-15.el7.x86_64--> Processing Dependency: numpy for package: python-matplotlib-1.2.0-15.el7.x86_64--> Processing Dependency: dejavu-sans-fonts for package: python-matplotlib-1.2.0-15.el7.x86_64--> Processing Dependency: pycairo for package: python-matplotlib-1.2.0-15.el7.x86_64--> Processing Dependency: pygtk2 for package: python-matplotlib-1.2.0-15.el7.x86_64--> Processing Dependency: libagg.so.2()(64bit) for package: python-matplotlib-1.2.0-15.el7.x86_64--> Running transaction check---> Package agg.x86_64 0:2.5-18.el7 will be installed--> Processing Dependency: libSDL-1.2.so.0()(64bit) for package: agg-2.5-18.el7.x86_64---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed--> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch---> Package numpy.x86_64 1:1.7.1-11.el7 will be installed--> Processing Dependency: python-nose for package: 1:numpy-1.7.1-11.el7.x86_64--> Processing Dependency: libquadmath.so.0()(64bit) for package: 1:numpy-1.7.1-11.el7.x86_64--> Processing Dependency: libtatlas.so.3()(64bit) for package: 1:numpy-1.7.1-11.el7.x86_64--> Processing Dependency: libgfortran.so.3()(64bit) for package: 1:numpy-1.7.1-11.el7.x86_64--> Processing Dependency: liblapack.so.3()(64bit) for package: 1:numpy-1.7.1-11.el7.x86_64---> Package pycairo.x86_64 0:1.8.10-8.el7 will be installed---> Package pygtk2.x86_64 0:2.24.0-9.el7 will be installed---> Package pytz.noarch 0:2016.10-2.el7 will be installed---> Package stix-fonts.noarch 0:1.1.0-5.el7 will be installed---> Package texlive-dvipng-bin.x86_64 2:svn26509.0-38.20130427_r30134.el7 will be installed--> Processing Dependency: texlive-kpathsea-lib = 2:2012-38.20130427_r30134.el7 for package: 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64--> Processing Dependency: tex-dvipng for package: 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64--> Processing Dependency: texlive-base for package: 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64--> Processing Dependency: libkpathsea.so.6()(64bit) for package: 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64--> Processing Dependency: libt1.so.5()(64bit) for package: 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64--> Processing Dependency: libgd.so.2()(64bit) for package: 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64--> Running transaction check---> Package SDL.x86_64 0:1.2.15-14.el7 will be installed---> Package atlas.x86_64 0:3.10.1-12.el7 will be installed---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed---> Package gd.x86_64 0:2.0.35-26.el7 will be installed--> Processing Dependency: libXpm.so.4()(64bit) for package: gd-2.0.35-26.el7.x86_64---> Package lapack.x86_64 0:3.4.2-8.el7 will be installed--> Processing Dependency: libblas.so.3()(64bit) for package: lapack-3.4.2-8.el7.x86_64---> Package libgfortran.x86_64 0:4.8.5-16.el7 will be installed---> Package libquadmath.x86_64 0:4.8.5-16.el7 will be installed---> Package python-nose.noarch 0:1.3.7-1.el7 will be installed---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed---> Package texlive-base.noarch 2:2012-38.20130427_r30134.el7 will be installed---> Package texlive-dvipng.noarch 2:svn26689.1.14-38.el7 will be installed--> Processing Dependency: texlive-kpathsea-bin for package: 2:texlive-dvipng-svn26689.1.14-38.el7.noarch--> Processing Dependency: tex-kpathsea for package: 2:texlive-dvipng-svn26689.1.14-38.el7.noarch---> Package texlive-kpathsea-lib.x86_64 2:2012-38.20130427_r30134.el7 will be installed--> Running transaction check---> Package blas.x86_64 0:3.4.2-8.el7 will be installed---> Package libXpm.x86_64 0:3.5.12-1.el7 will be installed---> Package texlive-kpathsea.noarch 2:svn28792.0-38.el7 will be installed---> Package texlive-kpathsea-bin.x86_64 2:svn27347.0-38.20130427_r30134.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved====================================================================================================Package Arch Version Repository Size====================================================================================================Installing:python-matplotlib x86_64 1.2.0-15.el7 rhel-x86_64-server-7 26 MInstalling for dependencies:SDL x86_64 1.2.15-14.el7 rhel-x86_64-server-7 204 kagg x86_64 2.5-18.el7 rhel-x86_64-server-7 145 katlas x86_64 3.10.1-12.el7 rhel-x86_64-server-7 4.3 Mblas x86_64 3.4.2-8.el7 rhel-x86_64-server-7 399 kdejavu-fonts-common noarch 2.33-6.el7 rhel-x86_64-server-7 64 kdejavu-sans-fonts noarch 2.33-6.el7 rhel-x86_64-server-7 1.4 Mgd x86_64 2.0.35-26.el7 rhel-x86_64-server-7 146 klapack x86_64 3.4.2-8.el7 rhel-x86_64-server-7 5.4 MlibXpm x86_64 3.5.12-1.el7 rhel-x86_64-server-7 56 klibgfortran x86_64 4.8.5-16.el7 rhel-x86_64-server-7 296 klibquadmath x86_64 4.8.5-16.el7 rhel-x86_64-server-7 186 knumpy x86_64 1:1.7.1-11.el7 rhel-x86_64-server-7 2.8 Mpycairo x86_64 1.8.10-8.el7 rhel-x86_64-server-7 157 kpygtk2 x86_64 2.24.0-9.el7 rhel-x86_64-server-7 914 kpython-nose noarch 1.3.7-1.el7 rhel-x86_64-server-7 276 kpytz noarch 2016.10-2.el7 rhel-x86_64-server-7 46 kstix-fonts noarch 1.1.0-5.el7 rhel-x86_64-server-7 1.3 Mt1lib x86_64 5.1.2-14.el7 rhel-x86_64-server-7 166 ktexlive-base noarch 2:2012-38.20130427_r30134.el7 rhel-x86_64-server-7 325 ktexlive-dvipng noarch 2:svn26689.1.14-38.el7 rhel-x86_64-server-7 44 ktexlive-dvipng-bin x86_64 2:svn26509.0-38.20130427_r30134.el7 rhel-x86_64-server-7 63 ktexlive-kpathsea noarch 2:svn28792.0-38.el7 rhel-x86_64-server-7 140 ktexlive-kpathsea-bin x86_64 2:svn27347.0-38.20130427_r30134.el7 rhel-x86_64-server-7 40 ktexlive-kpathsea-lib x86_64 2:2012-38.20130427_r30134.el7 rhel-x86_64-server-7 78 kTransaction Summary====================================================================================================Install 1 Package (+24 Dependent packages)Total download size: 45 MInstalled size: 112 MIs this ok [y/d/N]: yDownloading packages:(1/25): SDL-1.2.15-14.el7.x86_64.rpm | 204 kB 00:00:00(2/25): agg-2.5-18.el7.x86_64.rpm | 145 kB 00:00:00(3/25): atlas-3.10.1-12.el7.x86_64.rpm | 4.3 MB 00:00:00(4/25): blas-3.4.2-8.el7.x86_64.rpm | 399 kB 00:00:00(5/25): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:00(6/25): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:00(7/25): gd-2.0.35-26.el7.x86_64.rpm | 146 kB 00:00:00(8/25): lapack-3.4.2-8.el7.x86_64.rpm | 5.4 MB 00:00:00(9/25): libXpm-3.5.12-1.el7.x86_64.rpm | 56 kB 00:00:00(10/25): libgfortran-4.8.5-16.el7.x86_64.rpm | 296 kB 00:00:00(11/25): libquadmath-4.8.5-16.el7.x86_64.rpm | 186 kB 00:00:00(12/25): numpy-1.7.1-11.el7.x86_64.rpm | 2.8 MB 00:00:00(13/25): pycairo-1.8.10-8.el7.x86_64.rpm | 157 kB 00:00:00(14/25): pygtk2-2.24.0-9.el7.x86_64.rpm | 914 kB 00:00:00(15/25): python-matplotlib-1.2.0-15.el7.x86_64.rpm | 26 MB 00:00:01(16/25): python-nose-1.3.7-1.el7.noarch.rpm | 276 kB 00:00:00(17/25): pytz-2016.10-2.el7.noarch.rpm | 46 kB 00:00:00(18/25): stix-fonts-1.1.0-5.el7.noarch.rpm | 1.3 MB 00:00:00(19/25): t1lib-5.1.2-14.el7.x86_64.rpm | 166 kB 00:00:00(20/25): texlive-base-2012-38.20130427_r30134.el7.noarch.rpm | 325 kB 00:00:00(21/25): texlive-dvipng-svn26689.1.14-38.el7.noarch.rpm | 44 kB 00:00:00(22/25): texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64.rpm | 63 kB 00:00:00(23/25): texlive-kpathsea-svn28792.0-38.el7.noarch.rpm | 140 kB 00:00:00(24/25): texlive-kpathsea-bin-svn27347.0-38.20130427_r30134.el7.x86_64.rpm | 40 kB 00:00:00(25/25): texlive-kpathsea-lib-2012-38.20130427_r30134.el7.x86_64.rpm | 78 kB 00:00:00----------------------------------------------------------------------------------------------------Total 7.5 MB/s | 45 MB 00:00:05Running transaction checkRunning transaction testTransaction test succeededRunning transactionInstalling : libquadmath-4.8.5-16.el7.x86_64 1/25Installing : libgfortran-4.8.5-16.el7.x86_64 2/25Installing : pycairo-1.8.10-8.el7.x86_64 3/25Installing : 2:texlive-kpathsea-lib-2012-38.20130427_r30134.el7.x86_64 4/25Installing : 2:texlive-kpathsea-bin-svn27347.0-38.20130427_r30134.el7.x86_64 5/25Installing : 2:texlive-kpathsea-svn28792.0-38.el7.noarch 6/25Installing : 2:texlive-base-2012-38.20130427_r30134.el7.noarch 7/25Installing : pygtk2-2.24.0-9.el7.x86_64 8/25Installing : blas-3.4.2-8.el7.x86_64 9/25Installing : lapack-3.4.2-8.el7.x86_64 10/25Installing : atlas-3.10.1-12.el7.x86_64 11/25Installing : t1lib-5.1.2-14.el7.x86_64 12/25Installing : libXpm-3.5.12-1.el7.x86_64 13/25Installing : gd-2.0.35-26.el7.x86_64 14/25Installing : 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64 15/25Installing : 2:texlive-dvipng-svn26689.1.14-38.el7.noarch 16/25Installing : SDL-1.2.15-14.el7.x86_64 17/25Installing : agg-2.5-18.el7.x86_64 18/25Installing : dejavu-fonts-common-2.33-6.el7.noarch 19/25Installing : dejavu-sans-fonts-2.33-6.el7.noarch 20/25Installing : pytz-2016.10-2.el7.noarch 21/25Installing : stix-fonts-1.1.0-5.el7.noarch 22/25Installing : python-nose-1.3.7-1.el7.noarch 23/25Installing : 1:numpy-1.7.1-11.el7.x86_64 24/25Installing : python-matplotlib-1.2.0-15.el7.x86_64 25/25Verifying : libgfortran-4.8.5-16.el7.x86_64 1/25Verifying : blas-3.4.2-8.el7.x86_64 2/25Verifying : agg-2.5-18.el7.x86_64 3/25Verifying : 2:texlive-kpathsea-svn28792.0-38.el7.noarch 4/25Verifying : atlas-3.10.1-12.el7.x86_64 5/25Verifying : python-nose-1.3.7-1.el7.noarch 6/25Verifying : 2:texlive-base-2012-38.20130427_r30134.el7.noarch 7/25Verifying : stix-fonts-1.1.0-5.el7.noarch 8/25Verifying : pytz-2016.10-2.el7.noarch 9/25Verifying : pygtk2-2.24.0-9.el7.x86_64 10/25Verifying : dejavu-fonts-common-2.33-6.el7.noarch 11/25Verifying : lapack-3.4.2-8.el7.x86_64 12/25Verifying : SDL-1.2.15-14.el7.x86_64 13/25Verifying : 2:texlive-kpathsea-lib-2012-38.20130427_r30134.el7.x86_64 14/25Verifying : libXpm-3.5.12-1.el7.x86_64 15/25Verifying : t1lib-5.1.2-14.el7.x86_64 16/25Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 17/25Verifying : gd-2.0.35-26.el7.x86_64 18/25Verifying : pycairo-1.8.10-8.el7.x86_64 19/25Verifying : python-matplotlib-1.2.0-15.el7.x86_64 20/25Verifying : libquadmath-4.8.5-16.el7.x86_64 21/25Verifying : 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64 22/25Verifying : 2:texlive-dvipng-svn26689.1.14-38.el7.noarch 23/25Verifying : 2:texlive-kpathsea-bin-svn27347.0-38.20130427_r30134.el7.x86_64 24/25Verifying : 1:numpy-1.7.1-11.el7.x86_64 25/25Installed:python-matplotlib.x86_64 0:1.2.0-15.el7Dependency Installed:SDL.x86_64 0:1.2.15-14.el7agg.x86_64 0:2.5-18.el7atlas.x86_64 0:3.10.1-12.el7blas.x86_64 0:3.4.2-8.el7dejavu-fonts-common.noarch 0:2.33-6.el7dejavu-sans-fonts.noarch 0:2.33-6.el7gd.x86_64 0:2.0.35-26.el7lapack.x86_64 0:3.4.2-8.el7libXpm.x86_64 0:3.5.12-1.el7libgfortran.x86_64 0:4.8.5-16.el7libquadmath.x86_64 0:4.8.5-16.el7numpy.x86_64 1:1.7.1-11.el7pycairo.x86_64 0:1.8.10-8.el7pygtk2.x86_64 0:2.24.0-9.el7python-nose.noarch 0:1.3.7-1.el7pytz.noarch 0:2016.10-2.el7stix-fonts.noarch 0:1.1.0-5.el7t1lib.x86_64 0:5.1.2-14.el7texlive-base.noarch 2:2012-38.20130427_r30134.el7texlive-dvipng.noarch 2:svn26689.1.14-38.el7texlive-dvipng-bin.x86_64 2:svn26509.0-38.20130427_r30134.el7texlive-kpathsea.noarch 2:svn28792.0-38.el7texlive-kpathsea-bin.x86_64 2:svn27347.0-38.20130427_r30134.el7texlive-kpathsea-lib.x86_64 2:2012-38.20130427_r30134.el7Complete!
pip install psutil doesn't work straight away,
Instead,
[root@msdlva-dsnopm02 ~]# yum install gcc python-develLoaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-managerThis system is receiving updates from RHN Classic or Red Hat Satellite.Resolving Dependencies--> Running transaction check---> Package gcc.x86_64 0:4.8.5-11.el7 will be updated--> Processing Dependency: gcc = 4.8.5-11.el7 for package: gcc-c++-4.8.5-11.el7.x86_64---> Package gcc.x86_64 0:4.8.5-16.el7 will be an update--> Processing Dependency: cpp = 4.8.5-16.el7 for package: gcc-4.8.5-16.el7.x86_64--> Processing Dependency: libgomp = 4.8.5-16.el7 for package: gcc-4.8.5-16.el7.x86_64--> Processing Dependency: libgcc >= 4.8.5-16.el7 for package: gcc-4.8.5-16.el7.x86_64---> Package python-devel.x86_64 0:2.7.5-58.el7 will be installed--> Running transaction check---> Package cpp.x86_64 0:4.8.5-11.el7 will be updated---> Package cpp.x86_64 0:4.8.5-16.el7 will be an update---> Package gcc-c++.x86_64 0:4.8.5-11.el7 will be updated---> Package gcc-c++.x86_64 0:4.8.5-16.el7 will be an update--> Processing Dependency: libstdc++ = 4.8.5-16.el7 for package: gcc-c++-4.8.5-16.el7.x86_64--> Processing Dependency: libstdc++-devel = 4.8.5-16.el7 for package: gcc-c++-4.8.5-16.el7.x86_64---> Package libgcc.i686 0:4.8.5-11.el7 will be updated---> Package libgcc.x86_64 0:4.8.5-11.el7 will be updated---> Package libgcc.i686 0:4.8.5-16.el7 will be an update---> Package libgcc.x86_64 0:4.8.5-16.el7 will be an update---> Package libgomp.x86_64 0:4.8.5-11.el7 will be updated---> Package libgomp.x86_64 0:4.8.5-16.el7 will be an update--> Running transaction check---> Package libstdc++.i686 0:4.8.5-11.el7 will be updated---> Package libstdc++.x86_64 0:4.8.5-11.el7 will be updated---> Package libstdc++.i686 0:4.8.5-16.el7 will be an update---> Package libstdc++.x86_64 0:4.8.5-16.el7 will be an update---> Package libstdc++-devel.i686 0:4.8.5-11.el7 will be updated---> Package libstdc++-devel.x86_64 0:4.8.5-11.el7 will be updated---> Package libstdc++-devel.i686 0:4.8.5-16.el7 will be an update---> Package libstdc++-devel.x86_64 0:4.8.5-16.el7 will be an update--> Finished Dependency ResolutionDependencies Resolved====================================================================================================Package Arch Version Repository Size====================================================================================================Installing:python-devel x86_64 2.7.5-58.el7 rhel-x86_64-server-7 395 kUpdating:gcc x86_64 4.8.5-16.el7 rhel-x86_64-server-7 16 MUpdating for dependencies:cpp x86_64 4.8.5-16.el7 rhel-x86_64-server-7 5.9 Mgcc-c++ x86_64 4.8.5-16.el7 rhel-x86_64-server-7 7.2 Mlibgcc i686 4.8.5-16.el7 rhel-x86_64-server-7 106 klibgcc x86_64 4.8.5-16.el7 rhel-x86_64-server-7 98 klibgomp x86_64 4.8.5-16.el7 rhel-x86_64-server-7 154 klibstdc++ i686 4.8.5-16.el7 rhel-x86_64-server-7 314 klibstdc++ x86_64 4.8.5-16.el7 rhel-x86_64-server-7 301 klibstdc++-devel i686 4.8.5-16.el7 rhel-x86_64-server-7 1.5 Mlibstdc++-devel x86_64 4.8.5-16.el7 rhel-x86_64-server-7 1.5 MTransaction Summary====================================================================================================Install 1 PackageUpgrade 1 Package (+9 Dependent packages)Total download size: 34 MIs this ok [y/d/N]: yDownloading packages:Delta RPMs disabled because /usr/bin/applydeltarpm not installed.(1/11): cpp-4.8.5-16.el7.x86_64.rpm | 5.9 MB 00:00:00(2/11): gcc-4.8.5-16.el7.x86_64.rpm | 16 MB 00:00:00(3/11): gcc-c++-4.8.5-16.el7.x86_64.rpm | 7.2 MB 00:00:00(4/11): libgcc-4.8.5-16.el7.i686.rpm | 106 kB 00:00:00(5/11): libgcc-4.8.5-16.el7.x86_64.rpm | 98 kB 00:00:00(6/11): libgomp-4.8.5-16.el7.x86_64.rpm | 154 kB 00:00:00(7/11): libstdc++-4.8.5-16.el7.i686.rpm | 314 kB 00:00:00(8/11): libstdc++-4.8.5-16.el7.x86_64.rpm | 301 kB 00:00:00(9/11): libstdc++-devel-4.8.5-16.el7.i686.rpm | 1.5 MB 00:00:00(10/11): libstdc++-devel-4.8.5-16.el7.x86_64.rpm | 1.5 MB 00:00:00(11/11): python-devel-2.7.5-58.el7.x86_64.rpm | 395 kB 00:00:00----------------------------------------------------------------------------------------------------Total 18 MB/s | 34 MB 00:00:01Running transaction checkRunning transaction testTransaction test succeededRunning transactionUpdating : libgcc-4.8.5-16.el7.x86_64 1/21Updating : libstdc++-4.8.5-16.el7.x86_64 2/21Updating : libstdc++-devel-4.8.5-16.el7.x86_64 3/21Updating : libgomp-4.8.5-16.el7.x86_64 4/21Updating : cpp-4.8.5-16.el7.x86_64 5/21Updating : gcc-4.8.5-16.el7.x86_64 6/21Updating : gcc-c++-4.8.5-16.el7.x86_64 7/21Installing : python-devel-2.7.5-58.el7.x86_64 8/21Updating : libgcc-4.8.5-16.el7.i686 9/21Updating : libstdc++-4.8.5-16.el7.i686 10/21Updating : libstdc++-devel-4.8.5-16.el7.i686 11/21Cleanup : gcc-c++-4.8.5-11.el7.x86_64 12/21Cleanup : libstdc++-devel-4.8.5-11.el7 13/21Cleanup : libstdc++-devel-4.8.5-11.el7 14/21Cleanup : gcc-4.8.5-11.el7.x86_64 15/21Cleanup : libstdc++-4.8.5-11.el7 16/21Cleanup : libstdc++-4.8.5-11.el7 17/21Cleanup : libgcc-4.8.5-11.el7 18/21Cleanup : libgcc-4.8.5-11.el7 19/21Cleanup : cpp-4.8.5-11.el7.x86_64 20/21Cleanup : libgomp-4.8.5-11.el7.x86_64 21/21Verifying : libstdc++-4.8.5-16.el7.i686 1/21Verifying : python-devel-2.7.5-58.el7.x86_64 2/21Verifying : gcc-c++-4.8.5-16.el7.x86_64 3/21Verifying : libgcc-4.8.5-16.el7.i686 4/21Verifying : libgcc-4.8.5-16.el7.x86_64 5/21Verifying : libstdc++-4.8.5-16.el7.x86_64 6/21Verifying : libstdc++-devel-4.8.5-16.el7.x86_64 7/21Verifying : cpp-4.8.5-16.el7.x86_64 8/21Verifying : libstdc++-devel-4.8.5-16.el7.i686 9/21Verifying : gcc-4.8.5-16.el7.x86_64 10/21Verifying : libgomp-4.8.5-16.el7.x86_64 11/21Verifying : libgomp-4.8.5-11.el7.x86_64 12/21Verifying : gcc-c++-4.8.5-11.el7.x86_64 13/21Verifying : libgcc-4.8.5-11.el7.i686 14/21Verifying : libgcc-4.8.5-11.el7.x86_64 15/21Verifying : libstdc++-4.8.5-11.el7.i686 16/21Verifying : libstdc++-devel-4.8.5-11.el7.i686 17/21Verifying : cpp-4.8.5-11.el7.x86_64 18/21Verifying : gcc-4.8.5-11.el7.x86_64 19/21Verifying : libstdc++-4.8.5-11.el7.x86_64 20/21Verifying : libstdc++-devel-4.8.5-11.el7.x86_64 21/21Installed:python-devel.x86_64 0:2.7.5-58.el7Updated:gcc.x86_64 0:4.8.5-16.el7Dependency Updated:cpp.x86_64 0:4.8.5-16.el7 gcc-c++.x86_64 0:4.8.5-16.el7libgcc.i686 0:4.8.5-16.el7 libgcc.x86_64 0:4.8.5-16.el7libgomp.x86_64 0:4.8.5-16.el7 libstdc++.i686 0:4.8.5-16.el7libstdc++.x86_64 0:4.8.5-16.el7 libstdc++-devel.i686 0:4.8.5-16.el7libstdc++-devel.x86_64 0:4.8.5-16.el7Complete![root@msdlva-dsnopm02 ~]# pip install psutilCollecting psutilUsing cached psutil-5.2.2.tar.gzBuilding wheels for collected packages: psutilRunning setup.py bdist_wheel for psutil ... doneStored in directory: /root/.cache/pip/wheels/65/e8/6f/b3fa73e0b422fab906cd67e8446901b27c2769a29890151135Successfully built psutilInstalling collected packages: psutilSuccessfully installed psutil-5.2.2
The rest work pretty much the same way as my failed attempt
Once you have all the required modules loaded, then
[root@msdlva-dsnopm02 ~]# pip install mtoolsCollecting mtoolsRequirement already satisfied: psutil>=2.0 in /usr/lib64/python2.7/site-packages (from mtools)Installing collected packages: mtoolsSuccessfully installed mtools-1.2.3
Comments
Post a Comment