|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81526 --without-sqlite3 not working
Submitted: 2021-10-14 23:30 UTC Modified: 2021-10-15 03:50 UTC
From: fhorio at perforce dot com Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 8.0.11 OS: CentOS 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
40 + 42 = ?
Subscribe to this entry?

 [2021-10-14 23:30 UTC] fhorio at perforce dot com
configure with --without-sqlite3 option doesn't work. I had to install sqlight-devel package in order to make it work.

./configure --with-zlib --enable-mbstring --enable-exif  --with-openssl=/usr/local/ssl/ --disable-cli --with-apxs2=/usr/local/apache2/bin/apxs  --enable-maintainer-zts --without-sqlite3 --disable-mbregex
checking for ODBC v3 support for PDO... no
checking for PostgreSQL support for PDO... no
checking for sqlite 3 support for PDO... yes
checking for PDO includes... /root/download/php-8.0.11/ext
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-15 00:13 UTC]
-Status: Open +Status: Not a bug
 [2021-10-15 00:13 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

As of PHP 7.4 the sqlite3 library is no longer bundled and so must be installed separately.
 [2021-10-15 03:50 UTC], I've not been doing well lately. But at least I was close.

--without-sqlite3 controls the sqlite3 extension. PHP will still require libsqlite3 if you try to compile support for pdo_sqlite - which the output in those few lines before the error message suggests it will be doing. You're probably encountering this now because of what I said before.

If you don't want pdo_sqlite either then use --without-pdo-sqlite.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 12 13:01:30 2024 UTC