Skip to content

my_config.h is not were it is expected in MariaDB 10.2.8 #197

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

Closed
friscoMad opened this issue Aug 28, 2017 · 5 comments · Fixed by #198
Closed

my_config.h is not were it is expected in MariaDB 10.2.8 #197

friscoMad opened this issue Aug 28, 2017 · 5 comments · Fixed by #198

Comments

@friscoMad
Copy link
Contributor

I found yesterday an error trying to install mysqlclient:


Package python-devel-2.7.5-48.el7.x86_64 already installed and latest version
Package MariaDB-devel-10.2.8-1.el7.centos.x86_64 already installed and latest version
Nothing to do
root@host [~]# pip install mysqlclient
Collecting mysqlclient
  Using cached mysqlclient-1.3.10.tar.gz
Installing collected packages: mysqlclient
  Running setup.py install for mysqlclient ... error
    Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-WQf5SH/mysqlclient/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-moASQ3-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-2.7
    copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.7
    creating build/lib.linux-x86_64-2.7/MySQLdb
    copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb
    copying MySQLdb/compat.py -> build/lib.linux-x86_64-2.7/MySQLdb
    copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.7/MySQLdb
    copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.7/MySQLdb
    copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.7/MySQLdb
    copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb
    copying MySQLdb/times.py -> build/lib.linux-x86_64-2.7/MySQLdb
    creating build/lib.linux-x86_64-2.7/MySQLdb/constants
    copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
    copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
    copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
    copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
    copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
    copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
    copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants
    running build_ext
    building '_mysql' extension
    creating build/temp.linux-x86_64-2.7
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,3,10,'final',0) -D__version__=1.3.10 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o
    _mysql.c:29:23: fatal error: my_config.h: No such file or directory
     #include "my_config.h"
                           ^
    compilation terminated.
    error: command 'gcc' failed with exit status 1

I did google a bit and opened an Jira Issue for it in MariaDB project but it seems that my_config.h file is part of the server headers and that headers were moved to /server folder in the latest MariaDB release: https://jira.mariadb.org/browse/MDEV-13370

@methane
Copy link
Member

methane commented Aug 28, 2017

I googled "mariadb-devel my_config" and found this.
https://stackoverflow.com/questions/45905026/error-installing-mysqlclient-with-mariadb-10-2

Why don't you google?
I'm not free tech support and here is not user forum.

@methane methane closed this as completed Aug 28, 2017
@friscoMad
Copy link
Contributor Author

That's my fucking question that I did open after googling, not finding anything and reading carefully your issue template.
I did opened a Jira issue at MariaDB found that the file is not there for a reason and from my point of view it needs to be fixed in your side. In fact by the comments on https://jira.mariadb.org/browse/MDEV-13370 they don't expect any client connector needing any server header, but that's out of my scope.

So yes I googled, follow your requirements and still think that there is an error in this component that should be fixed.
I tried to give you all the details and you disregarded the issue without even looking at the avatar of your googled "solution" or check that my question does not have an answer yet, as I still don't see any way to install without manual intervention.

@methane
Copy link
Member

methane commented Aug 28, 2017

I'm sorry. I have received many noisy questions from this project.

@methane
Copy link
Member

methane commented Aug 28, 2017

fixed. But please don't ask me "when it's released?"

I don't have time and motivation to build windows binary for now.
And I don't want to make release without Windows binary wheel,
because I will receive massive "I can't install" issue report.

@friscoMad
Copy link
Contributor Author

No problem, thank you so much for the fast reply and fix.

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

Successfully merging a pull request may close this issue.

2 participants