php 설치 문제입니다.
어제도 물어보고 오늘 또 물어보게 되네요..ㅜㅜ
php configure시에 나는 에러입니다.
configure: error: Problem with libpng.(a|so) or libz.(a|so). Please check config.log for more information.
libpng가 os 설치시에 rpm으로 깔려있었습니다.
libpng-1.2.10-7
그런데 혹시나 해서 제가 다시 소스로 설치를 하는데 소스 설치시에 또 에러가 나더군요..
make test
gcc -o pngtest -I../zlib -Wall -O3 -funroll-loops pngtest.o -L. -Wl,-rpath,. -L../zlib -Wl,-rpath,../zlib -lpng12 -lz -lm
./libpng12.so: undefined reference to `png_mmx_support'
collect2: ld returned 1 exit status
make: *** [pngtest] 오류 1
php 컴파일 옵션은
./configure --prefix=/usr/local/php --with-exec-dir=/usr/local/php/bin --with-pgsql=/usr/local/pgsql --with-config-file=/usr/local/apache/conf --with-apxs2=/usr/local/apache/bin/apxs --enable-sysvshm=yes --enable-sysvsem=yes --enable-debug=no --enable-track-vars=yes --enable-url-fopen-wrapper=yes --with-ttf --with-png-dir=/usr --with-zlib-dir --with-jpeg-dir=/usr --with-gdbm=/usr --enable-ftp --with-tiff-dir=/usr --enable-memory-limit --enable-mbstring --with-expat-dir=/usr --enable-sockets --enable-wddx --with-freetype-dir=/usr --enable-bcmath --enable-mbstr-enc-trans --enable-mbregex --enable-exif --with-gd --enable-gd-native-ttf --enable-gd-imgstrttf --enable-calendar --with-openssl=/usr --with-iconv=/usr/local --with-xml --with-xmlrpc --with-pgsql --with-mysql=/usr/local/mysql
이거거든요...
libpng가 잘못된건지..어떤건지 확실히 모르겠습니다.
잘 몰라서 물어보는건데..
libpng가 썸네일 같은거 쓸때 쓰는것으로 아는데 다른데도 쓰이는지..
만약 위의 경우만 쓰인다면 php 컴파일시 어떤걸 빼고 해야하는지 알려주시면 더욱 감사하겠습니다.
jpg는 써야되는 상황입니다.
이틀째 고생하니 참 답답하네요..ㅡㅡ;;
64비트 운영체제이신가요
64비트 맞다면 아래와 같이해보세요.
소스 경로로 이동하셔서 make clean 하시구요.
cp scripts/makefile.nommx makefile
해서 덮어쓰고 다시 make 하고 make install 해보세요.
댓글 달기