Hey guys i am using ubuntu 18.01.1 LTS and i use linuxbrew for install valet on my pc ,
i use sqlite in my laravel but i get php warning and it doesnot work
i install sqlite with brew and apt-get for ubuntu but still fail Here's my warning
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite.so' (tried: /usr/lib/php/20180731/pdo_sqlite.so (/usr/lib/php/20180731/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name), /usr/lib/php/20180731/pdo_sqlite.so.so (/usr/lib/php/20180731/pdo_sqlite.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module 'sqlite3' already loaded in Unknown on line 0
i install php-sqlite and i get SQLite 3.x driver for PDO Wez Furlong in my phpinfo but still not work can u help me ?
@THESOGAFOI - that's frustrated, a while ago, I had the same problem, I installed everything related to sqlite, sqlite3, php-sqlite, php7-slqlte :D just everything)) And it was starting to work somehow, did you restart your service after installations? sudo service apache2 restart ?
This enables some extra APIs that are required by some common systems, including Ruby-on-Rails.
... as well as aparently pdo_sqlite.so ^_^
Just purge linuxbrew sqlite and build from source. Keep OOB path suffixes....
sudo su
cd /usr/local/src
wget https://www.sqlite.org/2020/sqlite-autoconf-3330000.tar.gz
tar -xvzf sqlite-autoconf-3330000.tar.gz
cd sqlite-autoconf-3330000
CFLAGS="-O2 -DSQLITE_ENABLE_COLUMN_METADATA=1" ./configure
make
make install
Keep the /usr/local/src/sqlite-autoconf-3330000 so that you can make uninstall at any point.