Rate This Document
Findability
Accuracy
Completeness
Readability

Installing SQLite

The compilation of the Hyperscan tool hsbench depends on SQLite 3. Run the Yum command to install SQLite and the SQLite development suite. After the installation is complete, check the SQLite version.

  1. Install SQLite and the SQLite development suite.
    yum install sqlite sqlite-devel
  2. After the installation is complete, run the following command to check whether the development suite is properly configured:
    pkg-config --libs sqlite3
    • If yes, the following information is displayed.

    • If not, perform the following steps:
      1. Open the /usr/lib64/pkgconfig/sqlite3.pc file.
        vim /usr/lib64/pkgconfig/sqlite3.pc
      2. Press i to enter the insert mode and add the following content to the /usr/lib64/pkgconfig/sqlite3.pc file:
        # Package Information for pkg-config
        
        prefix=/usr
        exec_prefix=/usr
        libdir=/usr/lib64
        includedir=/usr/include
        
        Name: SQLite
        Description: SQL database engine
        Version: 3.37.2
        Libs: -L${libdir} -lsqlite3
        Libs.private: -lm -lz
        Cflags: -I${includedir}

        Replace libdir and includedir with the actual installation paths.

      3. Press Esc, type :wq!, and press Enter to save the file and exit.