Unable to build PHP 8.0.19 from source - no package 'sqlite3'; established
P粉214089349
P粉214089349 2023-12-12 14:38:19

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粉214089349
P粉214089349

reply all(1)
P粉755863750

I have to installlibsqlite3-dev

https://stackoverflow.com/a/62155296/4684797

Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!