Skip to content

Errors with SQLite when launching tests #5

@misaert

Description

@misaert

Hi @bpolaszek,

I try to launch tests but I have errors like:

  Schema-Tool failed with Error 'An exception occurred in driver: could not find driver' while executing DDL: CREATE TABLE User (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(255) NOT NULL)

  at vendor/doctrine/orm/src/Tools/ToolsException.php:19

I suppose it is because I don't have SQLite in my laptop.

I tried to install it but no success:

sudo apt install sqlite3

Same issue.

I tried to enable to PDO SQLite extension but I can't find it in APT with sudo add-apt-repository ppa:ondrej/php for the packages php8.X-sqlite.

I tried to install it manually but no success too. I have this error:

PHP Warning:  PHP Startup: Unable to load dynamic library 'sqlite3' (tried: /usr/lib/php/20220829/sqlite3 (/usr/lib/php/20220829/sqlite3: cannot open shared object file: No such file or directory), /usr/lib/php/20220829/sqlite3.so (/usr/lib/php/20220829/sqlite3.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Do I forget something?

Thanks,

Mickaël

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions