I’m having trouble working with Diesel on a CentOS 7 system with the latest version of MariaDB installed, and am interested in any pointers anyone might be able to give that could help me move forward.
I’m stuck at the very beginning of the process, unable to build the diesel command line tool that is needed to work with Diesel effectively.
In particular, when I try to build diesel-cli with the following command,
cargo install diesel_cli --no-default-features --features mysql
the build fails with the (infamous) error:
/usr/bin/ld: cannot find -lmysqlclient
I’ve tried a number of potential solutions to this error, but none have worked so far. (I can go into the potential solutions later in this thread; I don’t want to bias things up front by discussing them now.)
So I’m wondering if anyone else has had any luck getting Diesel up and running on a CentOS 7 system with MariaDB, especially the latest stable version of Maria DB, and if so, what you had to do to get the setup to work.
EDIT: Here are the MariaDB packages I have installed on my system:
yum list installed mariadb* Installed Packages MariaDB-client.x86_64 10.3.13-1.el7.centos @mariadb MariaDB-common.x86_64 10.3.13-1.el7.centos @mariadb MariaDB-compat.x86_64 10.3.13-1.el7.centos @mariadb MariaDB-devel.x86_64 10.3.13-1.el7.centos @mariadb MariaDB-server.x86_64 10.3.13-1.el7.centos @mariadb