Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to load dynamic library

Tags:

php

sqlite

I get this warning message in my php:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/sqlite.so' - /usr/lib64/php/modules/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0

How should I fix that? Where can I get this sqlite.so file?

like image 556
King Julien Avatar asked Dec 22 '11 14:12

King Julien


1 Answers

You don't need to get it. Just remove the line referencing the shared object.

cd /etc/php5
grep -rinH sqlite .

Since PHP 5.4 sqlite is only available via PECL.

If you want to get the library, try sudo apt-get install php-sqlite or yum install php-sqlite or similar.

like image 86
Janus Troelsen Avatar answered Oct 16 '22 08:10

Janus Troelsen