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

[root@msdlva-dsnopm02 apps]# lsb_release -a
LSB 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-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 7.3 (Maipo)
Release:        7.3
Codename:       Maipo

Start working on installing the required modules.

[root@msdlvd-dsnavl02 ~]# pip install ordereddict
Collecting ordereddict
  Downloading ordereddict-1.1.tar.gz
Installing collected packages: ordereddict
  Running setup.py install for ordereddict ... done
Successfully installed ordereddict-1.1
[root@msdlvd-dsnavl02 ~]# pip install argparse
Collecting argparse
  Downloading argparse-1.4.0-py2.py3-none-any.whl
Installing collected packages: argparse
Successfully installed argparse-1.4.0
[root@msdlvd-dsnavl02 ~]# pip install python-dateutil
Requirement already satisfied: python-dateutil in /opt/rh/rh-python35/root/usr/lib/python3.5/site-packages
Requirement 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 matplotlib
Collecting matplotlib
  Downloading matplotlib-2.0.2-cp35-cp35m-manylinux1_x86_64.whl (14.6MB)
    100% |████████████████████████████████| 14.6MB 72kB/s
Collecting cycler>=0.10 (from matplotlib)
  Downloading cycler-0.10.0-py2.py3-none-any.whl
Requirement 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/s
Collecting 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/s
Requirement 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, matplotlib
Successfully installed cycler-0.10.0 matplotlib-2.0.2 numpy-1.13.1 pyparsing-2.2.0
[root@msdlvd-dsnavl02 ~]# pip install nose
Collecting nose
  Downloading nose-1.3.7-py3-none-any.whl (154kB)
    100% |████████████████████████████████| 163kB 4.6MB/s
Installing collected packages: nose
Successfully installed nose-1.3.7
[root@msdlvd-dsnavl02 ~]# pip install numpy pymongo psutil
Requirement already satisfied: numpy in /opt/rh/rh-python35/root/usr/lib64/python3.5/site-packages
Requirement already satisfied: pymongo in /opt/rh/rh-python35/root/usr/lib64/python3.5/site-packages
Collecting psutil
  Downloading psutil-5.2.2.tar.gz (348kB)
    100% |████████████████████████████████| 358kB 2.7MB/s
Installing collected packages: psutil
  Running setup.py install for psutil ... done
Successfully 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-matplotlib
Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-manager
This 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 Resolution
Dependencies Resolved
====================================================================================================
 Package                Arch     Version                               Repository              Size
====================================================================================================
Installing:
 python-matplotlib      x86_64   1.2.0-15.el7                          rhel-x86_64-server-7    26 M
Installing for dependencies:
 SDL                    x86_64   1.2.15-14.el7                         rhel-x86_64-server-7   204 k
 agg                    x86_64   2.5-18.el7                            rhel-x86_64-server-7   145 k
 atlas                  x86_64   3.10.1-12.el7                         rhel-x86_64-server-7   4.3 M
 blas                   x86_64   3.4.2-8.el7                           rhel-x86_64-server-7   399 k
 dejavu-fonts-common    noarch   2.33-6.el7                            rhel-x86_64-server-7    64 k
 dejavu-sans-fonts      noarch   2.33-6.el7                            rhel-x86_64-server-7   1.4 M
 gd                     x86_64   2.0.35-26.el7                         rhel-x86_64-server-7   146 k
 lapack                 x86_64   3.4.2-8.el7                           rhel-x86_64-server-7   5.4 M
 libXpm                 x86_64   3.5.12-1.el7                          rhel-x86_64-server-7    56 k
 libgfortran            x86_64   4.8.5-16.el7                          rhel-x86_64-server-7   296 k
 libquadmath            x86_64   4.8.5-16.el7                          rhel-x86_64-server-7   186 k
 numpy                  x86_64   1:1.7.1-11.el7                        rhel-x86_64-server-7   2.8 M
 pycairo                x86_64   1.8.10-8.el7                          rhel-x86_64-server-7   157 k
 pygtk2                 x86_64   2.24.0-9.el7                          rhel-x86_64-server-7   914 k
 python-nose            noarch   1.3.7-1.el7                           rhel-x86_64-server-7   276 k
 pytz                   noarch   2016.10-2.el7                         rhel-x86_64-server-7    46 k
 stix-fonts             noarch   1.1.0-5.el7                           rhel-x86_64-server-7   1.3 M
 t1lib                  x86_64   5.1.2-14.el7                          rhel-x86_64-server-7   166 k
 texlive-base           noarch   2:2012-38.20130427_r30134.el7         rhel-x86_64-server-7   325 k
 texlive-dvipng         noarch   2:svn26689.1.14-38.el7                rhel-x86_64-server-7    44 k
 texlive-dvipng-bin     x86_64   2:svn26509.0-38.20130427_r30134.el7   rhel-x86_64-server-7    63 k
 texlive-kpathsea       noarch   2:svn28792.0-38.el7                   rhel-x86_64-server-7   140 k
 texlive-kpathsea-bin   x86_64   2:svn27347.0-38.20130427_r30134.el7   rhel-x86_64-server-7    40 k
 texlive-kpathsea-lib   x86_64   2:2012-38.20130427_r30134.el7         rhel-x86_64-server-7    78 k
Transaction Summary
====================================================================================================
Install  1 Package (+24 Dependent packages)
Total download size: 45 M
Installed size: 112 M
Is this ok [y/d/N]: y
Downloading 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:05
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libquadmath-4.8.5-16.el7.x86_64                                                 1/25
  Installing : libgfortran-4.8.5-16.el7.x86_64                                                 2/25
  Installing : pycairo-1.8.10-8.el7.x86_64                                                     3/25
  Installing : 2:texlive-kpathsea-lib-2012-38.20130427_r30134.el7.x86_64                       4/25
  Installing : 2:texlive-kpathsea-bin-svn27347.0-38.20130427_r30134.el7.x86_64                 5/25
  Installing : 2:texlive-kpathsea-svn28792.0-38.el7.noarch                                     6/25
  Installing : 2:texlive-base-2012-38.20130427_r30134.el7.noarch                               7/25
  Installing : pygtk2-2.24.0-9.el7.x86_64                                                      8/25
  Installing : blas-3.4.2-8.el7.x86_64                                                         9/25
  Installing : lapack-3.4.2-8.el7.x86_64                                                      10/25
  Installing : atlas-3.10.1-12.el7.x86_64                                                     11/25
  Installing : t1lib-5.1.2-14.el7.x86_64                                                      12/25
  Installing : libXpm-3.5.12-1.el7.x86_64                                                     13/25
  Installing : gd-2.0.35-26.el7.x86_64                                                        14/25
  Installing : 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64                  15/25
  Installing : 2:texlive-dvipng-svn26689.1.14-38.el7.noarch                                   16/25
  Installing : SDL-1.2.15-14.el7.x86_64                                                       17/25
  Installing : agg-2.5-18.el7.x86_64                                                          18/25
  Installing : dejavu-fonts-common-2.33-6.el7.noarch                                          19/25
  Installing : dejavu-sans-fonts-2.33-6.el7.noarch                                            20/25
  Installing : pytz-2016.10-2.el7.noarch                                                      21/25
  Installing : stix-fonts-1.1.0-5.el7.noarch                                                  22/25
  Installing : python-nose-1.3.7-1.el7.noarch                                                 23/25
  Installing : 1:numpy-1.7.1-11.el7.x86_64                                                    24/25
  Installing : python-matplotlib-1.2.0-15.el7.x86_64                                          25/25
  Verifying  : libgfortran-4.8.5-16.el7.x86_64                                                 1/25
  Verifying  : blas-3.4.2-8.el7.x86_64                                                         2/25
  Verifying  : agg-2.5-18.el7.x86_64                                                           3/25
  Verifying  : 2:texlive-kpathsea-svn28792.0-38.el7.noarch                                     4/25
  Verifying  : atlas-3.10.1-12.el7.x86_64                                                      5/25
  Verifying  : python-nose-1.3.7-1.el7.noarch                                                  6/25
  Verifying  : 2:texlive-base-2012-38.20130427_r30134.el7.noarch                               7/25
  Verifying  : stix-fonts-1.1.0-5.el7.noarch                                                   8/25
  Verifying  : pytz-2016.10-2.el7.noarch                                                       9/25
  Verifying  : pygtk2-2.24.0-9.el7.x86_64                                                     10/25
  Verifying  : dejavu-fonts-common-2.33-6.el7.noarch                                          11/25
  Verifying  : lapack-3.4.2-8.el7.x86_64                                                      12/25
  Verifying  : SDL-1.2.15-14.el7.x86_64                                                       13/25
  Verifying  : 2:texlive-kpathsea-lib-2012-38.20130427_r30134.el7.x86_64                      14/25
  Verifying  : libXpm-3.5.12-1.el7.x86_64                                                     15/25
  Verifying  : t1lib-5.1.2-14.el7.x86_64                                                      16/25
  Verifying  : dejavu-sans-fonts-2.33-6.el7.noarch                                            17/25
  Verifying  : gd-2.0.35-26.el7.x86_64                                                        18/25
  Verifying  : pycairo-1.8.10-8.el7.x86_64                                                    19/25
  Verifying  : python-matplotlib-1.2.0-15.el7.x86_64                                          20/25
  Verifying  : libquadmath-4.8.5-16.el7.x86_64                                                21/25
  Verifying  : 2:texlive-dvipng-bin-svn26509.0-38.20130427_r30134.el7.x86_64                  22/25
  Verifying  : 2:texlive-dvipng-svn26689.1.14-38.el7.noarch                                   23/25
  Verifying  : 2:texlive-kpathsea-bin-svn27347.0-38.20130427_r30134.el7.x86_64                24/25
  Verifying  : 1:numpy-1.7.1-11.el7.x86_64                                                    25/25
Installed:
  python-matplotlib.x86_64 0:1.2.0-15.el7
Dependency Installed:
  SDL.x86_64 0:1.2.15-14.el7
  agg.x86_64 0:2.5-18.el7
  atlas.x86_64 0:3.10.1-12.el7
  blas.x86_64 0:3.4.2-8.el7
  dejavu-fonts-common.noarch 0:2.33-6.el7
  dejavu-sans-fonts.noarch 0:2.33-6.el7
  gd.x86_64 0:2.0.35-26.el7
  lapack.x86_64 0:3.4.2-8.el7
  libXpm.x86_64 0:3.5.12-1.el7
  libgfortran.x86_64 0:4.8.5-16.el7
  libquadmath.x86_64 0:4.8.5-16.el7
  numpy.x86_64 1:1.7.1-11.el7
  pycairo.x86_64 0:1.8.10-8.el7
  pygtk2.x86_64 0:2.24.0-9.el7
  python-nose.noarch 0:1.3.7-1.el7
  pytz.noarch 0:2016.10-2.el7
  stix-fonts.noarch 0:1.1.0-5.el7
  t1lib.x86_64 0:5.1.2-14.el7
  texlive-base.noarch 2:2012-38.20130427_r30134.el7
  texlive-dvipng.noarch 2:svn26689.1.14-38.el7
  texlive-dvipng-bin.x86_64 2:svn26509.0-38.20130427_r30134.el7
  texlive-kpathsea.noarch 2:svn28792.0-38.el7
  texlive-kpathsea-bin.x86_64 2:svn27347.0-38.20130427_r30134.el7
  texlive-kpathsea-lib.x86_64 2:2012-38.20130427_r30134.el7
Complete!

pip install psutil doesn't work straight away,
Instead,

[root@msdlva-dsnopm02 ~]# yum install gcc python-devel
Loaded plugins: langpacks, product-id, rhnplugin, search-disabled-repos, subscription-manager
This 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 Resolution
Dependencies Resolved
====================================================================================================
 Package                  Arch            Version               Repository                     Size
====================================================================================================
Installing:
 python-devel             x86_64          2.7.5-58.el7          rhel-x86_64-server-7          395 k
Updating:
 gcc                      x86_64          4.8.5-16.el7          rhel-x86_64-server-7           16 M
Updating for dependencies:
 cpp                      x86_64          4.8.5-16.el7          rhel-x86_64-server-7          5.9 M
 gcc-c++                  x86_64          4.8.5-16.el7          rhel-x86_64-server-7          7.2 M
 libgcc                   i686            4.8.5-16.el7          rhel-x86_64-server-7          106 k
 libgcc                   x86_64          4.8.5-16.el7          rhel-x86_64-server-7           98 k
 libgomp                  x86_64          4.8.5-16.el7          rhel-x86_64-server-7          154 k
 libstdc++                i686            4.8.5-16.el7          rhel-x86_64-server-7          314 k
 libstdc++                x86_64          4.8.5-16.el7          rhel-x86_64-server-7          301 k
 libstdc++-devel          i686            4.8.5-16.el7          rhel-x86_64-server-7          1.5 M
 libstdc++-devel          x86_64          4.8.5-16.el7          rhel-x86_64-server-7          1.5 M
Transaction Summary
====================================================================================================
Install  1 Package
Upgrade  1 Package (+9 Dependent packages)
Total download size: 34 M
Is this ok [y/d/N]: y
Downloading 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:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libgcc-4.8.5-16.el7.x86_64                                                      1/21
  Updating   : libstdc++-4.8.5-16.el7.x86_64                                                   2/21
  Updating   : libstdc++-devel-4.8.5-16.el7.x86_64                                             3/21
  Updating   : libgomp-4.8.5-16.el7.x86_64                                                     4/21
  Updating   : cpp-4.8.5-16.el7.x86_64                                                         5/21
  Updating   : gcc-4.8.5-16.el7.x86_64                                                         6/21
  Updating   : gcc-c++-4.8.5-16.el7.x86_64                                                     7/21
  Installing : python-devel-2.7.5-58.el7.x86_64                                                8/21
  Updating   : libgcc-4.8.5-16.el7.i686                                                        9/21
  Updating   : libstdc++-4.8.5-16.el7.i686                                                    10/21
  Updating   : libstdc++-devel-4.8.5-16.el7.i686                                              11/21
  Cleanup    : gcc-c++-4.8.5-11.el7.x86_64                                                    12/21
  Cleanup    : libstdc++-devel-4.8.5-11.el7                                                   13/21
  Cleanup    : libstdc++-devel-4.8.5-11.el7                                                   14/21
  Cleanup    : gcc-4.8.5-11.el7.x86_64                                                        15/21
  Cleanup    : libstdc++-4.8.5-11.el7                                                         16/21
  Cleanup    : libstdc++-4.8.5-11.el7                                                         17/21
  Cleanup    : libgcc-4.8.5-11.el7                                                            18/21
  Cleanup    : libgcc-4.8.5-11.el7                                                            19/21
  Cleanup    : cpp-4.8.5-11.el7.x86_64                                                        20/21
  Cleanup    : libgomp-4.8.5-11.el7.x86_64                                                    21/21
  Verifying  : libstdc++-4.8.5-16.el7.i686                                                     1/21
  Verifying  : python-devel-2.7.5-58.el7.x86_64                                                2/21
  Verifying  : gcc-c++-4.8.5-16.el7.x86_64                                                     3/21
  Verifying  : libgcc-4.8.5-16.el7.i686                                                        4/21
  Verifying  : libgcc-4.8.5-16.el7.x86_64                                                      5/21
  Verifying  : libstdc++-4.8.5-16.el7.x86_64                                                   6/21
  Verifying  : libstdc++-devel-4.8.5-16.el7.x86_64                                             7/21
  Verifying  : cpp-4.8.5-16.el7.x86_64                                                         8/21
  Verifying  : libstdc++-devel-4.8.5-16.el7.i686                                               9/21
  Verifying  : gcc-4.8.5-16.el7.x86_64                                                        10/21
  Verifying  : libgomp-4.8.5-16.el7.x86_64                                                    11/21
  Verifying  : libgomp-4.8.5-11.el7.x86_64                                                    12/21
  Verifying  : gcc-c++-4.8.5-11.el7.x86_64                                                    13/21
  Verifying  : libgcc-4.8.5-11.el7.i686                                                       14/21
  Verifying  : libgcc-4.8.5-11.el7.x86_64                                                     15/21
  Verifying  : libstdc++-4.8.5-11.el7.i686                                                    16/21
  Verifying  : libstdc++-devel-4.8.5-11.el7.i686                                              17/21
  Verifying  : cpp-4.8.5-11.el7.x86_64                                                        18/21
  Verifying  : gcc-4.8.5-11.el7.x86_64                                                        19/21
  Verifying  : libstdc++-4.8.5-11.el7.x86_64                                                  20/21
  Verifying  : libstdc++-devel-4.8.5-11.el7.x86_64                                            21/21
Installed:
  python-devel.x86_64 0:2.7.5-58.el7
Updated:
  gcc.x86_64 0:4.8.5-16.el7
Dependency Updated:
  cpp.x86_64 0:4.8.5-16.el7                         gcc-c++.x86_64 0:4.8.5-16.el7
  libgcc.i686 0:4.8.5-16.el7                        libgcc.x86_64 0:4.8.5-16.el7
  libgomp.x86_64 0:4.8.5-16.el7                     libstdc++.i686 0:4.8.5-16.el7
  libstdc++.x86_64 0:4.8.5-16.el7                   libstdc++-devel.i686 0:4.8.5-16.el7
  libstdc++-devel.x86_64 0:4.8.5-16.el7
Complete!
[root@msdlva-dsnopm02 ~]# pip install psutil
Collecting psutil
  Using cached psutil-5.2.2.tar.gz
Building wheels for collected packages: psutil
  Running setup.py bdist_wheel for psutil ... done
  Stored in directory: /root/.cache/pip/wheels/65/e8/6f/b3fa73e0b422fab906cd67e8446901b27c2769a29890151135
Successfully built psutil
Installing collected packages: psutil
Successfully 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 mtools
Collecting mtools
Requirement already satisfied: psutil>=2.0 in /usr/lib64/python2.7/site-packages (from mtools)
Installing collected packages: mtools
Successfully installed mtools-1.2.3


Comments

Popular posts from this blog

MongoDB Ops Manager Basic Installation and Configuration

Oracle Goldengate Extract, Pump, and Replicat

Oracle Goldengate Extract and Replicat within same DB from one schema to another plus some issues and fixes