저도 Solaris2.7 에서 MySQL설치할때 아래와 같은 에러메세지로 고생한적이 있거든요. 수없이 지우고 새로 설치하고... 그랬는데...
Solaris8 이라 조금 다를 수도 있지만요...그래도 한번 참조해 보세요.
저는 매뉴얼 4장에 있는 아래의 부분을 보고 해결했습니다.
----------------------------------------------------------------
If you get errors like this when you run make, it's because configure didn't detect the `curses.h' file (probably because of the error in /usr/include/widec.h:
In file included from mysql.cc:50:
/usr/include/term.h:1060: syntax error before `,'
/usr/include/term.h:1081: syntax error before `;'
The solution to this is to do one of the following steps:
1. Edit `/usr/include/widec.h' as indicted above and rerun configure
2. Remove the #define HAVE_TERM line from `config.h' file and run make again.
3. Configure with CFLAGS=-DHAVE_CURSES CXXFLAGS=-DHAVE_CURSES ./configure
----------------------------------------------------------------
그래도 안되면
4.11 System-specific issues
4.11.1 Solaris notes
4.11.2 Solaris 2.7 notes
4.11.3 Solaris x86 notes
매뉴얼을 한번 보시는것도 좋을 듯합니다.
> 사용환경
> OS: Solaris8 (x86)
> MySQL: 3.22.32(Source:mysql-3.22.32.tar.gz)
> GCC: egcs-2.91.6
> tar: GNU tar-1.13
> Shell: csh
>
> 솔라리스8에서 MySQL 소스 컴파일시 아래와 같은 에러가 발생합니다...
> -----------------------------------------------------------------------------
> # setenv CC gcc
> # setenv CFLAGS "-O6 -fomit-frame-pointer"
> # setenv CXX gcc
> # setenv CXXFLAGS "-O6 -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti"
> # ./configure --prefix=/usr/local/mysql --with-charset=euc_kr \r
> --localstatedir=/users/database
> .
> .
> .
> configure 문제 없음
>
> # make
> .
> .
> .
>
> gcc -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I.. -D_LARGEFILE_SOURCE -D_LARGEFILc
> In file included from mysql.cc:54:
> /usr/include/term.h:1060: syntax error before `,'
> /usr/include/term.h:1081: syntax error before `;'
> /usr/include/term.h:1082: syntax error before `;'
> /usr/include/term.h:1101: syntax error before `['
> /usr/include/term.h:1108: syntax error before `*'
> /usr/include/term.h:1111: syntax error before `;'
> /usr/include/term.h:1115: syntax error before `;'
> /usr/include/term.h:1116: syntax error before `;'
> /usr/include/term.h:1207: `chtype' was not declared in this scope
> /usr/include/term.h:1207: parse error before `('
> make[2]: *** [mysql.o] Error 1
> make[2]: Leaving directory `/usr/local/src/mysql-3.22.32/client'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/mysql-3.22.32'
> make: *** [all-recursive-am] Error 2
>
> 위와 같이 오류가 생깁니다...configure 하기전 setenv는 해도 안해도 에러는 없구요...
> make 할때가 문제입니다...
>
> 밑에 글중에도 이런글이 있던데...해결 하셨나요...?
>
> 정말 미치겠네요....
>
> MySQL 소스의 이상이나 tar 문제는 아닌것 같습니다...
>
|