Deploying AI-ML in Unix-based Operating Systems

To deploy AI-ML component in RHEL and SuSE, complete the following procedures:

Configuring Python files

Before you begin

Even if you have Python-3.10.10 installed on your system, you must install Python-3.11.7.

Procedure

  1. Access the Python-3.11.7 folder within the Platform/ML directory.
  2. Change the directory to Python-3.11.7 and run the following command:
    • RHEL: yum update -y && yum install -y xz gcc zlib-devel openssl-devel bzip2-devel libffi-devel sqlite-devel pip
    • SuSE: zypper update -y && yum install -y xz gcc zlib-devel openssl-devel bzip2-devel libffi-devel sqlite-devel pip
  3. Run the following commands in the same order:
    • ./configure LDFLAGS='-L/usr/lib64'
    • make clean
    • make install
  4. Note: Skip this step if you are not using Oracle as your user database.
    This step is relevant only when working with the data stored in Oracle database. To facilitate access to the Oracle database, it is necessary to install the appropriate Oracle client libraries for Python (cx_Oracle). For step-by-step instructions on the installation process, see the following official page:
  5. In the file Platform/ML/startup.sh, at line number 1, replace the placeholder [REPLACE_WITH_THE_ABSOLUTE_PYTHON_PATH] with the absolute path to Python 3.11.7 version. For example Platform/ML/Python-3.11.7.
  6. In the Platform/ML/lib directory, access the site-packages folder.
  7. In the Platform/ML/startup.sh file, replace the placeholder [REPLACE_WITH_THE_SITEPACKAGES_PATH] with the absolute path to site-packages directory.

Starting the ML services

Procedure

  1. Change the directory to Platform/ML directory.
  2. To launch the ML service, run startup.sh.