php 5.2.3 + mysqlnd 컴파일 해보신 분 계신가요 ?

monovision의 이미지

이런저런 테스트를 위해 php 5.2.3 을 mysqlnd 라이브러리와 연동해서 컴파일을 하는 도중에 아래와 같은 메세지를 보내고 중단이 되는데 GD 라이브러리를 왜 저기서 찾고 있는지 모르겠습니다.

make: *** No rule to make target `/usr/local/src/php-5.2.3/ext/mysqli/libgd/gd.c', needed by `ext/mysqli/libgd/gd.lo'. Stop.

해당 GD 라이브러리를 해당 경로에 복사를 해 놓으면 mysqlnd 는 넘어가지는데 후에 GD 라이브러리 컴파일시에 또 에러가 나구요.

mysqlnd 또는 GD 라이브러리 옵션을 빼버리면 아무 이상없이 잘 되구요....

어떻게 하면 mysqlnd 와 gd 를 같이 컴파일 할 수 있을까요 ?

gd 라이브러리는 yum -y install libgd 로 설치하였으며, php 컴파일시의 옵션은 다음과 같습니다.

./configure --prefix=/usr/local/phptest --with-apxs2=/usr/local/apache/bin/apxs --with-kerberos --with-imap-dir --with-imap-ssl --with-pdflib --with-cpdflib --with-mhash --enable-sockets --with-regex=php --with-mod_charset --enable-track-vars --enable-ftp --enable-inline-optimization --disable-debug --with-gdbm --with-zlib --with-curl --with-iconv --with-dbx --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-tiff-dir --enable-mbstring --enable-mbregex --enable-sigchild --with-xml --enable-dba --with-mysqli --enable-mysqlnd --with-zend-multibytei --enable-saft-mode --enable-magic-quotes --enable-debugger --enable-sysvsem --enable-sysvshm && make clean && make && make install;

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.