리눅스할줄 아시는분 이거좀 봐주세요 ㅜㅜ 정보
리눅스할줄 아시는분 이거좀 봐주세요 ㅜㅜ본문
아무리 재컴파일을 해도 JPG Support, FreeType Support 가 안뜹니다.
미치겠어요 진짜 ㅠㅠ
현재 php 5.3.27 버전입니다.
libjpeg.so 파일의 위치는 "/usr/lib64" 폴더에 있구요.
(이폴더에 libjpeg.so를 포함하여 libjpeg.so.62랑 libjpeg.so.62.0.0 등이 있네요.)
freetype.h 파일의 위치는 "/usr/include/freetype2/freetype" 폴더에 있구요.
freetype-config 파일의 위치는 "/usr/bin" 폴더에 있습니다.
제가 여러번을 ./configure 를 했는데 아래와 같습니다.
첫시도
===================================================
./configure --with-mysql=/usr/local/mysql --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --enable-exif --enable-sigchild --enable-mbstring --enable-soap --with-zlib --with-jpeg-dir=/usr/lib --with-png --with-freetype-dir=/usr/bin --with-libxml --with-gd --with-gettext --with-openssl --with-config-file --with-xml --enable-modules=so --with-zlib --with-curl --with-curlwrappers --enable-ftp --with-mhash --with-mcrypt --enable-fpm --with-mysqli=/usr/local/mysql/bin/mysql_config && make && make install
==================================================
두번째시도
===================================================
./configure --with-mysql=/usr/local/mysql --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --enable-exif --enable-sigchild --enable-mbstring --enable-soap --with-zlib --with-jpeg-dir=/usr/lib --with-png --with-freetype-dir=/usr/include/freetype2 --with-libxml --with-gd --with-gettext --with-openssl --with-config-file --with-xml --enable-modules=so --with-zlib --with-curl --with-curlwrappers --enable-ftp --with-mhash --with-mcrypt --enable-fpm --with-mysqli=/usr/local/mysql/bin/mysql_config && make && make install
==============================================================
세번째시도
==============================================================
./configure --with-mysql=/usr/local/mysql --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --enable-exif --enable-sigchild --enable-mbstring --enable-soap --with-zlib --with-png --with-jpeg-dir --with-jpeg --with-gd --with-freetype-dir=/usr/include/freetype2/freetype --with-freetype --with-libxml --with-gettext --with-openssl --with-config-file --with-xml --enable-modules=so --with-zlib --with-curl --with-curlwrappers --enable-ftp --with-mhash --with-mcrypt --enable-fpm --with-mysqli=/usr/local/mysql/bin/mysql_config && make && make install
===========================================================
이런식으로 진행해왔었는데요.
dir 경로를 잘못잡아줬나 싶어서.. 경로에 맞게 해줘도 안되고
dir 경로 없이 그냥 --with-jpeg --with-freetype 이런식으로 잡아줘도 안됩니다.
그리고 컴파일시 에러는 없이 잘됩니다.
그리고 난 다음에 /etc/init.d/php-fpm restart 해주고
phpinfo()를 확인해보면 Configure Command 는 분명히 바뀐명령이 적혀있는데
JPG support 랑 FreeType Support 는 나오지 않네요.
GD Support enabled
GD Version bundled (2.1.0 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XBM Support enabled
도대체 뭐가 문제길래 JPG supoort 와 FreeType support 가 뜨지 않는걸까요..
머리 터질지경이네요.ㅋㅋㅋ 내가 웃는게 웃는게 아니야~~
미치겠어요 진짜 ㅠㅠ
현재 php 5.3.27 버전입니다.
libjpeg.so 파일의 위치는 "/usr/lib64" 폴더에 있구요.
(이폴더에 libjpeg.so를 포함하여 libjpeg.so.62랑 libjpeg.so.62.0.0 등이 있네요.)
freetype.h 파일의 위치는 "/usr/include/freetype2/freetype" 폴더에 있구요.
freetype-config 파일의 위치는 "/usr/bin" 폴더에 있습니다.
제가 여러번을 ./configure 를 했는데 아래와 같습니다.
첫시도
===================================================
./configure --with-mysql=/usr/local/mysql --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --enable-exif --enable-sigchild --enable-mbstring --enable-soap --with-zlib --with-jpeg-dir=/usr/lib --with-png --with-freetype-dir=/usr/bin --with-libxml --with-gd --with-gettext --with-openssl --with-config-file --with-xml --enable-modules=so --with-zlib --with-curl --with-curlwrappers --enable-ftp --with-mhash --with-mcrypt --enable-fpm --with-mysqli=/usr/local/mysql/bin/mysql_config && make && make install
==================================================
두번째시도
===================================================
./configure --with-mysql=/usr/local/mysql --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --enable-exif --enable-sigchild --enable-mbstring --enable-soap --with-zlib --with-jpeg-dir=/usr/lib --with-png --with-freetype-dir=/usr/include/freetype2 --with-libxml --with-gd --with-gettext --with-openssl --with-config-file --with-xml --enable-modules=so --with-zlib --with-curl --with-curlwrappers --enable-ftp --with-mhash --with-mcrypt --enable-fpm --with-mysqli=/usr/local/mysql/bin/mysql_config && make && make install
==============================================================
세번째시도
==============================================================
./configure --with-mysql=/usr/local/mysql --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-sockets --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-inline-optimization --enable-bcmath --enable-exif --enable-sigchild --enable-mbstring --enable-soap --with-zlib --with-png --with-jpeg-dir --with-jpeg --with-gd --with-freetype-dir=/usr/include/freetype2/freetype --with-freetype --with-libxml --with-gettext --with-openssl --with-config-file --with-xml --enable-modules=so --with-zlib --with-curl --with-curlwrappers --enable-ftp --with-mhash --with-mcrypt --enable-fpm --with-mysqli=/usr/local/mysql/bin/mysql_config && make && make install
===========================================================
이런식으로 진행해왔었는데요.
dir 경로를 잘못잡아줬나 싶어서.. 경로에 맞게 해줘도 안되고
dir 경로 없이 그냥 --with-jpeg --with-freetype 이런식으로 잡아줘도 안됩니다.
그리고 컴파일시 에러는 없이 잘됩니다.
그리고 난 다음에 /etc/init.d/php-fpm restart 해주고
phpinfo()를 확인해보면 Configure Command 는 분명히 바뀐명령이 적혀있는데
JPG support 랑 FreeType Support 는 나오지 않네요.
GD Support enabled
GD Version bundled (2.1.0 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XBM Support enabled
도대체 뭐가 문제길래 JPG supoort 와 FreeType support 가 뜨지 않는걸까요..
머리 터질지경이네요.ㅋㅋㅋ 내가 웃는게 웃는게 아니야~~
추천
0
0
댓글 10개

질문 게시판에.했으면.좋았을텐데...
그누보드 질문답변 게시판 말고는 질문게시판을 못찾겠더라구요.. 죄송합니다 ㅜㅜ

그먕 yum으로 설치하시지요. 왠만한 모듈 다 설치.가능한데.
기존에 nginx, php 설치되어있는 상태에서
그냥 yum 해주면 php가 알아서 설치되는건가요???
그냥 yum 해주면 php가 알아서 설치되는건가요???
혹시나 하는 맘에 --with-jpeg-dir=/usr/lib --with-jpeg
두개의 옵션을 다 주시고 한번 컴파일 해보시길 권해드립니다..
두개의 옵션을 다 주시고 한번 컴파일 해보시길 권해드립니다..
그렇게도 해보고..
--with-jpeg-dir 이렇게도 해보고
--with-jpeg-dir -with-jpeg 이렇게도 해보고
--with-jpeg 이렇게도 해봤는데도
안되네요.
./configure 어쩌고 .. make install 하는 명령어를 입력해주구요.
그다음 /etc/init.d/php-fpm restart 해준다음
phpinfo(); 를 확인해보면 바껴야 되는거 아닌가요?
--with-jpeg-dir 이렇게도 해보고
--with-jpeg-dir -with-jpeg 이렇게도 해보고
--with-jpeg 이렇게도 해봤는데도
안되네요.
./configure 어쩌고 .. make install 하는 명령어를 입력해주구요.
그다음 /etc/init.d/php-fpm restart 해준다음
phpinfo(); 를 확인해보면 바껴야 되는거 아닌가요?
php 컴파일과 gd2는 별개 아닌가요? gd2 컴파일 문제같은데...
jpg support 가 되려면 gd2 를 따로 설치해줘야 되는건가요?
따로 설치했던거로 기억합니다.
글 답변 수정 삭제가 작동이 안되네요...