메뉴 닫기

mysql make시 mysql.cc: In function ‘void print_table_data(MYSQL_RES*)’: 발생

centos 64비트 운영체제에서 mysql 3.x 버전을 make 발생 되는 문제 입니다.

[오류 메세지]

mysql.cc: In function ‘void print_table_data(MYSQL_RES*)’:

mysql.cc:1650: error: expected primary-expression before ‘?’ token

mysql.cc:1650: error: expected ‘:’ before ‘)’ token

mysql.cc:1650: error: expected primary-expression before ‘)’ token

mysql.cc:1652: error: expected primary-expression before ‘?’ token

mysql.cc:1652: error: expected ‘:’ before ‘)’ token

mysql.cc:1652: error: expected primary-expression before ‘)’ token

mysql.cc:1666: error: expected primary-expression before ‘?’ token

mysql.cc:1666: error: expected ‘:’ before ‘)’ token

mysql.cc:1666: error: expected primary-expression before ‘)’ token

make[1]: *** [mysql.o] Error 1

make[1]: Leaving directory `/usr/local/src/APM_Setup/mysql-3.0.27/client’

make: *** [install-recursive] Error 1

 

[해결]

# yum install compat-*

 gcc와 g++의 이름변경 후 gcc34, g++34 심볼릭 링크로 gcc,gcc++를 생성해주면 됩니다.

# cd /usr/bin

# mv gcc gcc-backup

# mv g++ g++-backup

# ln -s gcc34 gcc

# ln -s g++34 g++

진행 후 make & make install 진행

 

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x