Skip to main content

Appendix O: Configuration steps for MIP Labeling

Setup MIP SDK for Ubuntu 16 and Ubuntu 18

Run the following scripts to automatically configure MIP SDK for Ubuntu 16 and Ubuntu 18.

  • For Ubuntu 16: mip-ubuntu-16-installation.sh

  • For Ubuntu 18: mip-ubuntu-18-installation.sh

Perform the following steps to manually configure MIP SDK for Ubuntu 16 and Ubuntu 18:

  1. Unzip the dg_mip.zip file on any location of your system and use this path as installation path.

  2. Open any terminal and run the following commands:

    1. sudo apt-get update

    2. sudo apt-get install scons libgsf-1-dev libssl-dev libsecret-1-dev freeglut3-dev libcpprest-dev libcurl3-dev uuid-dev

  3. Navigate to the samples directory of the package unzipped in step 1 (dg_mip e.g. dg_mip/ubuntu1604/file/samples).

  4. Run the below command in samples directory: 
    scons arch=ARCHITECTURE configuration=CONFIGURATION

  5. Create a text file at any location of the system.
    For example, input.text.

*Note: We can also create this file as hidden, for safety point of view.

  1. Add your Azure account username and password in the text file as depicted in the below screenshot.

  2. In MIP Configuration file, provide the path of the text file in Credential File Path key property.

  3. In MIP Configuration file, provide the installation path (where the dg_mip.zip file has been unzipped) in Installation Path Key property.

  4. Run the below command to check whether all configurations are working fine. It will fetch the list of MIP labels created in the corresponding Azure account.

    <Installation_Path>/ubuntu1604/file/bins/debug/x86_64/list-labels.sh GET <Installation_Path>

    /ubuntu1604/file/bins/debug/x86_64/ /<Azure_Account_Credentials_Filepath>/<filename.text>

    For example:
    /home/praveen.kumar/Desktop/Abhi/ubuntu1604/file/bins/debug/x86_64/list-labels.sh GET

    /home/praveen.kumar/Desktop/Abhi/ubuntu1604/file/bins/debug/x86_64/

    /home/praveen.kumar/Desktop/Abhi/input.text

Setup MIP SDK for CentOS 7 and RHEL/RedHat

Run the following scripts to automatically configure MIP SDK for CentOS 7 and RHEL/RedHat.

  • For CentOS 7: mip-centos-installation.sh

  • For RHEL/RedHat : mip-redhat-installation.sh

Perform the following steps to manually configure MIP SDK for CentOS 7 and RHEL/RedHat:

  1. Unzip the dg_mip.zip file on any location of your system and use this path as installation path.

  2. Open any terminal and run the following commands:

    1. For CentOS, run the below command:
      sudo yum upgrade

    2. For RHEL/RedHat, run the below command:
      sudo yum install epel-release

  3. Enable EPEL-release repo as depicted below:
    https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F

  4. scl enable devtoolset-7 bash.
    If you are getting error in step 4, perform the following steps:

    • For CentOS, run the below command to install centos-release-scl package available in CentOS repository:

      $ sudo yum install centos-release-scl

    • Run the below command to install the collection:

      $ sudo yum install devtoolset-7

    • Run the below command to start using the software collections:

      $ scl enable devtoolset-7 bash

  5. sudo yum install openssl-devel libxml2-devel libcurl-devel gdk-pixbuf2 glib2-devel python2-scons devtoolset-7 libuuid-devel

  6. Install newer libGSF:

    1. wget https://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Pa ckages/l/libgsf-1.14.43-2.fc29.x86_64.rpm

      Use this url in case of error (404):

      ftp://ftp.pbone.net/mirror/ftp.redhat.com/pub/redhat/rhel/rhel-8beta/appstream/x86_64/Packages/libgsf-1.14.41-5.el8.x86_64.rpm

    2. sudo rpm -Uvh libgsf-1.14.41-5.el8.x86_64.rpm

  7. Build and install newer Boost:

    1. wget -nv -q https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz.

    2. tar -xzf boost_1_67_0.tar.gz

    3. cd boost_1_67_0

    4. ./bootstrap.sh --prefix=/usr --libdir=/usr/lib64  --
      withlibraries=chrono,random,system,thread,filesystem,atomic,date_time,regex

    5. sudo ./b2 install --prefix=/usr --libdir=/usr/lib64 -j$(nproc) f.  

    6. cd ..

  8. Navigate to the samples directory of the package unzipped in step 1 (dg_mip eg. dg_mip/rhel7/mip_sdk_file_rhel7_1.7.145/file/samples).

  9. Run the below command in samples directory: 
    scons arch=ARCHITECTURE configuration=CONFIGURATION

  10. Create a text file at any location of the system. For example, input.text.

*Note: We can also create this file as hidden, for safety point of view.

  1. Add your Azure account username and password in the text file as depicted in the screenshot below:

  2. In MIP Configuration file, provide the path of the text file in Credential File Path key property.

  3. In MIP Configuration file, provide the installation path (where the dg_mip.zip file has been unzipped) in Installation Path Key property.

  4. Run the below command to check whether all configurations are working fine. It will fetch the list of MIP labels created in the corresponding Azure account.
    <Installation_Path>/mip_sdk_rhel7_1.7.145/rhel7/mip_sdk_file_rhel7_1.7.145/file/bins/debug/x86_64/<filename.bat><Installation_Path>/mip_sdk_rhel7_1.7.145/rhel7/mip_sdk_file_rhel7_1.7.145/file/bins/debug/x86_64/<Azureaccount_credentials_FilePath/<filename.bat>

    For example :  C:\Users\Administrator\Downloads\mip_sdk_rhel7_1.7.145/rhel7/mip_sdk_file_rhel7_1.7.145/file/bi ns/debug/x86_64/list-labels.bat
    C:\Users\Administrator\Downloads\mip_sdk_rhel7_1.7.145/rhel7/mip_sdk_file_rhel7_1.7.145/file/bi ns/debug/x86_64/
    C:\Users\Administrator\Downloads\mip_sdk_rhel7_1.7.145/rhel7/mip_sdk_file_rhel7_1.7.145/file/bi ns/debug/x86_64/ input.bat

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.