GitHub user dosubot[bot] added a comment to the discussion: I am downloading 
the current master , what version of python , npm , nvm do i need

<!-- Answer -->
If you're being asked to manually set MYSQLCLIENT_CFLAGS and 
MYSQLCLIENT_LDFLAGS, it's usually because the build process for the mysqlclient 
Python package can't find the MySQL development headers or libraries on your 
system.

**Recommended fix:**  
On Debian/Ubuntu, install the MySQL development package with:
```sh
sudo apt update
sudo apt install default-libmysqlclient-dev
```
Or, if you see errors with that, try:
```sh
sudo apt install libmariadb-dev-compat
```
This should provide the necessary files so you don't need to set those 
environment variables manually 
([source](https://github.com/apache/superset/discussions/31432), 
[docs](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/pypi.mdx)).

On RHEL/CentOS/Fedora, use:
```sh
sudo yum install mysql-devel
```
or
```sh
sudo yum install mariadb-connector-c-devel
```

**Manual workaround:**  
If you still need to set the variables, first locate your MySQL headers and 
libraries (for example, `/usr/include/mysql` and `/usr/lib/x86_64-linux-gnu`). 
Then run:
```sh
export MYSQLCLIENT_CFLAGS="-I/usr/include/mysql"
export MYSQLCLIENT_LDFLAGS="-L/usr/lib/x86_64-linux-gnu"
```
Then install mysqlclient:
```sh
pip install mysqlclient
```
(Replace the paths above with the actual locations on your system.)

**General tip:**  
Setting CFLAGS and LDFLAGS is a common workaround for native Python packages 
when headers/libs aren't found ([docs 
example](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docs/docs/installation/pypi.mdx)).
 For most users, installing the correct dev package is all that's needed.


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/11b4e289-95b9-41de-a35a-cf58cebfd70f?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
 nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34881)

GitHub link: 
https://github.com/apache/superset/discussions/34881#discussioncomment-14243794

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: 
notifications-unsubscr...@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to