리눅스에서 php 인스톨시 오류입니다.
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-zlib-dir --with-gd --with-xml-dir --with-mysql=/usr/local/mysql --with-jpeg-dir --with-freetype --with-imap-dir --with-imap-ssl --with-kerberos --with-language=koran --with-charset=euc_kr --disable-debug --with-config-file-path=/usr/local/apache/conf --enable-track-vars=yes --with-mod-charset
이렇게 값을 주고 configure 성공후
make를 실행하면
Making all in Zend
make[1]: Entering directory `/home/crash/php-4.2.3/Zend'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/crash/php-4.2.3/Zend'
Making all in main
make[1]: Entering directory `/home/crash/php-4.2.3/main'
make[2]: Entering directory `/home/crash/php-4.2.3/main'
make[2]: Nothing to be done for `all-p'.
make[2]: Leaving directory `/home/crash/php-4.2.3/main'
make[1]: Leaving directory `/home/crash/php-4.2.3/main'
Making all in ext
make[1]: Entering directory `/home/crash/php-4.2.3/ext'
Making all in zlib
make[2]: Entering directory `/home/crash/php-4.2.3/ext/zlib'
make[3]: Entering directory `/home/crash/php-4.2.3/ext/zlib'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/home/crash/php-4.2.3/ext/zlib'
make[2]: Leaving directory `/home/crash/php-4.2.3/ext/zlib'
Making all in ctype
make[2]: Entering directory `/home/crash/php-4.2.3/ext/ctype'
make[3]: Entering directory `/home/crash/php-4.2.3/ext/ctype'
make[3]: Nothing to be done for `all-p'.
make[3]: Leaving directory `/home/crash/php-4.2.3/ext/ctype'
make[2]: Leaving directory `/home/crash/php-4.2.3/ext/ctype'
Making all in gd
make[2]: Entering directory `/home/crash/php-4.2.3/ext/gd'
make[3]: Entering directory `/home/crash/php-4.2.3/ext/gd'
/bin/sh /home/crash/php-4.2.3/libtool --silent --mode=compile gcc -I. -I/home/crash/php-4.2.3/ext/gd -I/home/crash/php-4.2.3/main -I/home/crash/php-4.2.3 -I/usr/local/apache/include -I/home/crash/php-4.2.3/Zend -I/usr/local/mysql/include/mysql -I/home/crash/php-4.2.3/ext/xml/expat -D_REENTRANT -I/home/crash/php-4.2.3/TSRM -g -O2 -pthread -DZTS -prefer-pic -c gd.c
In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: error: structure has no member named `free'
gd_ctx.c:98: error: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: error: structure has no member named `free'
gd.c:1017: error: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1209: error: structure has no member named `free'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/home/crash/php-4.2.3/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/crash/php-4.2.3/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/crash/php-4.2.3/ext'
make: *** [all-recursive] Error 1
이런 오류가 뜨네요.
GD는 인스톨했습니다.
왜그럴까요 고수님들 ㅠㅠ
-with-gd 라고 하면
-with-gd 라고 하면 bundle gd가 설치되는데...
gd를 따로 소스설치 하셨다면 경로를 지정해서 한번 해보세요..
with-gd=/usr/local/gd 이런식으로..
아니면 소스설치를 삭제하시고 with-gd만 하셔서 컴파일해보시던지요...
댓글 달기