mysql 4.0 컴파일시 에러
mysql 설치중 아래와 같은 error 메세지 발생시
checking "LinuxThreads"... "Not found"
configure: error: This is a linux system and Linuxthreads was not
found. On linux Linuxthreads should be used. Please install Linuxthreads
(or a new glibc) and try again. See the Installation chapter in the
Reference Manual for more information.
방법:
/usr/include/pthread.h 화일을 열어 맨위 부분쯤에 아래 내용을 추가 하고 저장 합니다.
/* Linuxthreads */
mysql configure 과정에서 pthread.h 파일을 찾아 위 내용이 있는지 확인하는 것으로
glibc에서 없는 경우 에러 메세지가 난다고 합니다.
make && make install 시 에러
expected primary-expression before ‘?’ token
해당 에러는 gcc 버전 문제로 설치가 안됨
보통 gcc g++ 버전이 높아 설치시 에러 발생
대처방법은 호환성 라이브러리 설치 후
해결방법
yum -y install compat-*
cd /usr/bin
mv gcc gcc-backup
mv g++ g++-backup
ln -s gcc34 gcc
ln -s g++34 g++
그리고 make && make install