gd라이브러리가 설치되어있는데 인식이 안됩니다.
일단 phpinfo()정보는 아래와 같습니다.
처음 리눅스를 갈때 apm을 깔았습니다.
그리고 phpinfo를 확인하니깐 --with-gd는 되어있고
rpm -qa | grep gd 하니깐
gd도 설치되어있었습니다.
근데 안되서 찾아보니깐 php-gd라는걸 깐다고 해서
이참에 gd도 다시 깔자고 해서.. yum install을 이용해서
gd라이브러리와 php-gd 를 이용해서 설치후
php를 삭제하지 않고 ./configure --with-gd --with freetype이렇게 해서
make make install했습니다.
버젼이 전버젼은 4고 이번것은 5입니다.
이렇게 해서 깔았습니다.
rpm -qa | grep gd
이렇게 하면 gd가 설치되어있고 php-gd도 설치되어있습니다.
freetype,zlib도 설치되있구요..
물론 깔고 아파치 재시작했습니다.service httpd restart..
근데 왜 제로보드에서는 불가능이라고 뜰까요..
이것때문에 미치고 팔짝 띠겠습니다..
제발 좀 부탁드립니다.
아 그리고 php로 새로 깔았는데 왜 phpinfo에는 php4로 뜰까요...이것도 좀..
PHP Version 4.3.11
System Linux pbank 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686
Build Date Nov 8 2005 06:25:44
Configure Command './configure' '--build=i386-redhat-linux' '--host=i386-redhat-linux' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses=shared' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mime-magic=/usr/share/file/magic.mime' '--with-pic' '--with-apxs2=/usr/sbin/apxs'
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php.ini
Scan this dir for additional .ini files /etc/php.d
additional .ini files parsed /etc/php.d/gd.ini, /etc/php.d/ldap.ini, /etc/php.d/mysql.ini, /etc/php.d/odbc.ini, /etc/php.d/pgsql.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.bzip2, compress.zlib
This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
yum 으로 설치한 php-gd
yum 으로 설치한 php-gd 는 yum 으로 설치하는 httpd, php 와 상관이 있는것인데 소스를 컴파일해서 설치하신게 아닐까 싶네요.
--
오랫동안 꿈을 그리는 사람은 그 꿈을 닮아간다...
http://mytears.org ~(~_~)~
나 한줄기 바람처럼..
오랫동안 꿈을 그리는 사람은 그 꿈을 닮아간다...
http://mytears.org ~(~_~)~
나 한줄기 바람처럼..
기존 php를 제거하지 않으면 그럴수 있습니다.
기존 php를 제거하지 않으면 그럴수 있습니다.
php 원 소스 (전 php버전의 원소스 위치)에서 make distclean을 해 준다음
php5 의 원 소스 에서 적어주신 컴파일 옵션을 이용해서 컴파일 후 아파치 restart 해주시면 됩니다.
좀더 안전하게(서비스 지연 없이) 하시고자 하면 기존 php4는 그대로 두시고 php5를 컴파일 하실때 php4와 다른 위치 (ex:prefix=/usr/local/php5)로 컴파일 하신후 아파치 stop / 아파치 start 하시면 php5로 변경 됩니다.
먹고 죽자~
위에대로 했는데 안되네요..
제거 안하고 --prefix=/usr/local/php5 --with-gd=/usr/local 이렇게 했는데 안되네요..
gd압축풀었는 디렉토리는 /usr/local/src밑에 있구요...
이거 미치겠네요...
댓글 달기