php4 configure 실행시 나오는 에러입니다. 어떻하죠?

moonspace의 이미지

checking base type of last arg to accept... socklen_t
checking return type of qsort... void
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.

kihoori의 이미지

MySQL을 못찾네요..

MySQL이 설치된 경로를 확인해 보세요

잘 모르시겠다면 mysql,php의 configure시의 옵션부분을 적어 주시구여

moonspace의 이미지

-------------------------------------------------------------------
mysql 설치시 옵션

CFLAGS=" -static -march=i686 -funroll-loops -fomit-frame-pointer"\
> CXXFLAGS=" -static -march=i686 -funroll-loops -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" \
> ./configure \
> --prefix=/usr \
> --sysconfdir=/etc \
> --localstatedir=/var/lib/mysql \
> --mandir=/usr/share/man \
> --disable-shared \
> --with-mysqld-user=mysql \
> --with-unix-socket-path=/var/lib/mysql/mysql.sock \
> --with-client-ldflags=-all-static \
> --with-mysqld-ldflags=-all-static \
> --without-debug \
> --without-docs \
> --without-bench

------------------------------------------------------------------------
php 설치시 옵션

./configure --with-apache=/usr/local/apache --with-mysql=/usr --with-zlib=/usr

kihoori의 이미지

Quote:

--with-client-ldflags=-all-static

이 옵션과

Quote:
--with-mysqld-ldflags=-all-static

이 옵션이 문제라고생각 합니다..

어디 까지나 짐작입니다만..

위 옵션은 컴파일시에 라이브러리 화일을 실행화일안에 포함시키라고 하는 옵션인거 같은데요.. static 컴파일이 컴파일시에 라이브러리 화일을 따로 컴파일 하는것이 아니고 실행화일안에 포함을 시키는것 인것이거든요..

위의 옵션이 필요 하시면 라이브러리를 따로 컴파일 하신후에 위의 디렉토리에 저장을 하셔야 하실듯 합니다.

확인 방법은.. /usr/lib/mysql 이 디렉토리 안에
libmysqlclient.a 와 같은 화일들이 있는지 확인 하시기 바랍니다.