Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"mysql_config: not found" but Dockerfile does include "libmysqlclient-dev" #7990

Closed
FrancescoCasalegno opened this issue Mar 5, 2021 · 1 comment

Comments

@FrancescoCasalegno
Copy link

FrancescoCasalegno commented Mar 5, 2021

Details

Expected Result

I would expect pip install .[dev] to run successfully without any issue.

The only tricky point is the mysqlclient dependency in the setup.py, because this package requires a C system library and I read that RTD "does not support installing random C libraries".
However this should not be an issue for the following reasons:

  1. The only C system library I need is libmysqlclient-dev and the RTD Dockerfile seems to include it
  2. I tried to docker pull readthedocs/build:latest and run the various commands locally, and everything worked fine. The mysql_config is also clearly there:
docs@27e903412d0f:/$ file /usr/bin/mysql_config 
/usr/bin/mysql_config: POSIX shell script, ASCII text executable

Actual Result

The RTD build fails when trying to install the mysqlclient dependency, saying mysql_config: not found.

@humitos
Copy link
Member

humitos commented Mar 18, 2021

I'm closing this issue we can continue the discussion in readthedocs/readthedocs-docker-images#158

@humitos humitos closed this as completed Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants