ygrek / ocaml-mysql

OCaml bindings to libmysqlclient
https://ygrek.org.ua/p/ocaml-mysql
GNU Lesser General Public License v2.1
23 stars 11 forks source link

libmysqlclient-dev, libmariadb-dev #17

Open rmuthukrishnan opened 1 year ago

rmuthukrishnan commented 1 year ago

Hi, Thank you very much for this library. We have been using it for many years.

We were trying to move to reinstall the library in Ubuntu 20.04. We have libmysqlclient-dev installed. But during the installation of the ocaml-mysql library, we get the following message. If we install libmariadb-dev, then libmysqlclient-dev gets removed. Could you kindly help?

`#=== ERROR while compiling conf-mariadb.2 =====================================#

context 2.0.5 | linux/x86_64 | ocaml-base-compiler.4.04.2 | https://opam.ocaml.org#c24e66db

path /usr/lib/opam/4.04.2/.opam-switch/build/conf-mariadb.2

command /usr/lib/opam/opam-init/hooks/sandbox.sh build sh -exc pkg-config --exists libmariadb || pkg-config --exists mariadb

exit-code 1

env-file /usr/lib/opam/log/conf-mariadb-3414819-a2744c.env

output-file /usr/lib/opam/log/conf-mariadb-3414819-a2744c.out

output

+ pkg-config --exists libmariadb

+ pkg-config --exists mariadb

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ┌─ The following actions failed │ λ build conf-mariadb 2 └─ `

Thank you, Raman

rmuthukrishnan commented 1 year ago

Hi,

I found that the following patches were needed so that it will work with MySQL 8.0. These patches are from libmysql-ocaml debian package.

mysq8_my_bool.patch.txt mysql-8.0.patch.txt