I am using Ubuntu 22.04 LTS.
I tried building PHP 8.0.19 from source. I downloaded it from here.
I get this after calling ./configure
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.
sqlite3 --version
Output:
3.37.2 2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5dalt1
So I tried to configure without sqlite3
./configure --without-sqlite3
But I still get the same error.
If I try to install sqlite3
using apt-get update && apt-get install sqlite3 I get:
sqlite3 is already the newest version (3.37.2-2).
I tried building the latest sqlite3 version from source, but the latest version I found was 3.38.5.
https://www.sqlite.org/download.html
How to solve?
P粉7558637502023-12-13 13:51:24
I have to installlibsqlite3-dev
https://stackoverflow.com/a/62155296/4684797