금일 (2007년 1월25일) 기준 최신버전의 MYSQL인 5.0.33 설치 중 다음과 같은 에러가 발생한다.
네이버…구글 등 한글 검색사이트 검색 결과 관련 정보가 하나도 -.- 없었다.
./configure — …..
sql_class.cc: In constructor ‘THD::THD()’:
sql_class.cc:265: error: ‘query_cache_init_query’ was not declared in this
scope
make[5]: *** [sql_class.o] Error 1
이 에러는 configure 옵션 중
./configure –without-query-cache
위의 옵션을 줄 경우 발생한다.
— 해결방법—
소스디렉토리 아래의 sql 디렉토리에 sql_class.cc 파일을 열고 다음과 같이 두줄을 추가해 준 뒤 다시 configure와 make, make install을 실행한다.
client_capabilities= 0; // minimalistic client
net.last_error[0]=0; // If error on boot
query_cache_init_query(&net); // If error on boot
ull=0;
system_thread= NON_SYSTEM_THREAD;
cleanup_done= abort_on_warning= no_warnings_for_error= 0;