본문 바로가기
빅데이터/Hue

[hue] hue 빌드 중 my_config.h: No such file or directory 오류 처리 하는 방법

by hs_seo 2023. 4. 17.

hue 빌드 중 다음과 같은 오류가 발생하는 경우가 있습니다.

 

building '_mysql' extension
x86_64-linux-gnu-gcc -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-W40Ff2/python2.7-2.7.18=. -flto=auto -ffat-lto-objects -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o
_mysql.c:44:10: fatal error: my_config.h: No such file or directory
   44 | #include "my_config.h"
      |          ^~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

 

이는 라이센스 문제로 발생한다고 휴 빌드 문서에 나와있습니다.

다음의 my_confg.h 파일을 복사하여 오류가 발생하는 위치에 생성합니다.

휴를 빌드 하고 있는 위치에서 _mysql.c 파일을 찾아서 해당 파일이 존재하는 위치에 파일을 생성하면 오류를 해결할 수 있습니다.

 

 

반응형