I'm having difficulty running composer install
on Jenkins.
I have a Jenkins job that I need to run composer install
for. I have installed php7.2 and composer. When I run the command, I get the following errors:
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite.so' (tried: /usr/lib/php/20170718/pdo_sqlite.so (/usr/lib/php/20170718/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name), /usr/lib/php/20170718/pdo_sqlite.so.so (/usr/lib/php/20170718/pdo_sqlite.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Your requirements could not be resolved to an installable set of packages.
Problem 1 - teamtnt/tntsearch v1.3.2 requires ext-pdo_sqlite * -> the requested PHP extension pdo_sqlite is missing from your system. - teamtnt/tntsearch v1.3.2 requires ext-pdo_sqlite * -> the requested PHP extension pdo_sqlite is missing from your system. - Installation request for teamtnt/tntsearch v1.3.2 -> satisfiable by teamtnt/tntsearch[v1.3.2].
When I ssh into the Jenkins box and run composer install
from the workspace directory, everything runs as expected and the vendor directory is generated with no errors.
I have spent a lot of time looking at the answers to existing questions on StackOverflow.
I've purged everything that is not php7.2, and removed any previous versions of my machine. I have also installed the php7.2-pdo_sqlite, and ensured that it is displayed in the php.ini file. When I run php --ini
I see /etc/php/7.2/cli/conf.d/20-pdo_mysql.ini, and /etc/php/7.2/cli/conf.d/20-pdo_sqlite.ini displayed on the list.
What else can I do to resolve the error above?
from Dealing with "the requested PHP extension pdo_sqlite is missing from your system. " when running composer install
No comments:
Post a Comment