Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

fatal error: 'my_config.h' file not found

New Contributor

Getting following error while building the hue.Please help


--- Building egg for MySQL-python-1.2.5

running bdist_egg

running egg_info

writing MySQL_python.egg-info/PKG-INFO

writing top-level names to MySQL_python.egg-info/top_level.txt

writing dependency_links to MySQL_python.egg-info/dependency_links.txt

reading manifest file 'MySQL_python.egg-info/SOURCES.txt'

reading manifest template ''

writing manifest file 'MySQL_python.egg-info/SOURCES.txt'

installing library code to build/bdist.macosx-10.12-intel/egg

running install_lib

running build_py

copying MySQLdb/ -> build/lib.macosx-10.12-intel-2.7/MySQLdb

running build_ext

building '_mysql' extension

cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -I/usr/local/opt/openssl/include -arch x86_64 -arch i386 -pipe -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/Cellar/mysql/8.0.13/include/mysql -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.12-intel-2.7/_mysql.o

_mysql.c:44:10: fatal error: 'my_config.h' file not found

#include "my_config.h"


1 error generated.

error: command 'cc' failed with exit status 1

make[2]: *** [/Users/lifeview/hue/desktop/core/build/MySQL-python-1.2.5/egg.stamp] Error 1

make[1]: *** [.recursive-env-install/core] Error 2

make: *** [desktop] Error 2



Hi @NileshG,


I googled the error and came across this article. Maybe you can give it a try?


Thanks and hope this helps,




Li Wang, Technical Solution Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

Learn more about the Cloudera Community:

Terms of Service

Community Guidelines

How to use the forum

New Contributor

Hi @lwang,


Yes i have the StackOverflow didn't work for me. I am starting the fresh installation again lets see what happens.