Closed murchu27 closed 4 years ago
I've added the various libraries we're installing from the Dockerfile
. FWIW, I've found that's a good resource whenever I hit problems installing locally, but you're right that we should make sure the README is up-to-date as well.
I guess there is no chance to avoid the need for MySQL/MariaDB related dependencies right? I can't remember this being the case ~a month ago.
Just found it coming from the tokenserver
dependency update a few days ago:
tokenserver
dependency version raised from 1.4.5 to 1.5.6 here: https://github.com/mozilla-services/syncserver/commit/529dafc6f2d6289c8373681ba18b86a775271c44mysqlclient
added to dependencies of tokenserver
with 1.5.6 here: https://github.com/mozilla-services/tokenserver/commit/22b99ac9bd7de81ee07fccdef951c549d8b7edd7Since on Raspbian/Debian, this installs half of MariaDB server, probably a reason to migrate even smaller instances from SQLite to MySQL/MariaDB backend 😄.
Aye, sadly I think this is required because of how we pull in the dependencies of tokenserver, which as of the switch from python2.7 to pypy, is using a different MySQL module that requires the native support libs.
I'd be happy to review a patch that disables this requirement if anyone has to time to poke at it, but I don't think I'll have the bandwidth to investigate it myself. It would probably look like making the mysql dependency in tokenserver into an optional dependency.
Great to hear that you are basically open for it. But yes I think the motivation and reason to invest time is quite low, especially since medium-to-large instances likely use MySQL as backend anyway, or one is present for a different purpose which then would be a shame to not use in favour of SQLite.
Required step for installing on Ubuntu 18.04. Thanks
apt install default-libmysqlclient-dev -y
Or the actual non-meta package it pulls: libmysqlclient-dev
or, when using MariaDB: libmariadb-dev
I think "mysql-dev" + "(or similar, depending on your operating system)" from the readme covers the multiple options and names this can have 🙂.
Just tried to
make build
the latest commit, and got the following error.After some digging, I found that installing the
default-libmysqlclient-dev
package seemed to fix the issue. Should this be added toREADME.md
?I'm running on Raspbian 10, in case that makes a difference.
(Let me know if I've submitted this in the wrong place.)