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.
- Install SQLite and the SQLite development suite.
yum install sqlite sqlite-devel
- 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:
- Open the /usr/lib64/pkgconfig/sqlite3.pc file.
vim /usr/lib64/pkgconfig/sqlite3.pc
- 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.
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the /usr/lib64/pkgconfig/sqlite3.pc file.
Parent topic: Configuring the Compilation Environment
