geerlingguy / ansible-role-php

Ansible Role - PHP
https://galaxy.ansible.com/geerlingguy/php/
MIT License
496 stars 441 forks source link

Source configure fails on Debian 10 with 'wrong mysql library version or lib not found' #306

Closed geerlingguy closed 3 years ago

geerlingguy commented 4 years ago

Getting the following error on Debian 10 after setting php_source_mysql_config: "/usr/bin/mariadb_config":

error: wrong mysql library version or lib not found. Check config.log for more information
...
checking for mysql_set_server_option in -lmysqlclient... no

The fix was to override php_source_configure_command and replace the --with-mysqli option with:

php_source_configure_command: >
  ./configure
  [...]
  --with-mysqli=mysqlnd
  --with-pdo-mysql=mysqlnd

(Or maybe, just set: php_source_mysql_config: "mysqlnd"?)

stale[bot] commented 4 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] commented 3 years ago

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.