configure: error: Package requirements (sqlite3 > 3.7.4) were not met:
Posted On February 6, 2022
You may encounter the following error when you compile php from source. configure: error: Package requirements (sqlite3 > 3.7.4) were not met:
checking for sqlite3 > 3.7.4... no
configure: error: Package requirements (sqlite3 > 3.7.4) were not met:
No package 'sqlite3' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables SQLITE_CFLAGS
and SQLITE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
This is an error which appears when devel package for sqlite3 is missing.
Solve “configure: error: Package requirements (sqlite3 > 3.7.4) were not met:” in Centos or similar Linux servers.
This error can be solved by installing sqlite-devel package using yum
yum install sqlite-devel
Solve “configure: error: Package requirements (sqlite3 > 3.7.4) were not met:” in Ubuntu or similar Linux servers.
apt install libsqlite3-dev
Conclusion: We learned how to solve this error in Centos, Ubuntu or similar Linux machines.
If you encountered this error during apache installation, you can refer this link to see how to configure apache from source.