php5 ./configure시 curl로 인한 에러
안녕하세요^^!
apache_1.3.28 + php_4.3.3 + mysql_3.23.57 에서
apache와 php만 update하려고 이미 설치되어있는 시스템에
apache_2.0.53 와 php_5.0.3, gd.. 기타 등등을 추가 설치 중에 있습니다.
이전 시스템이 서비스 중이라...업데이트되는 시스템에 테스트 후 적용 하려구요~
apache까지 잘 설치하고 php설치 ./configure 중에 오류가 나는데 대충 왜 나는지는 알겠는데 해결방법을 모르겠다는...ㅡㅡ;;
php configure 내용입니다.
./configure --prefix=/usr/local/php_5.0.3 --with-apxs2=/usr/local/apache_2.0.53/bin/apxs --with-apache-install=/usr/local/apache_2.0.53 --with-config-file-path=/usr/local/apache_2.0.53/conf --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local/gd --with-jpeg-dir=/usr/local/gd --with-png-dir=/usr/local/gd --with-gif-dir=/usr/local/gd --with-tiff-dir=/usr/local/gd --with-gd --with-freetype --with-ming --with-cpdflib --with-openssl --with-gettext --with-kerberos --with-swf-dir=/usr/local/swf --with-mm --with-mhash --with-mcrypt --with-mod_charset --with-language=korean --with-charset=euc_kr --with-regex=php --with-config-file-path=/usr/local/php_5.0.3/etc --with-dbm --with-gdbm --with-curl --with-ldap --with-xml --with-imap --with-imap-ssl --with-ttf --with-t1lib --enable-module=so --enable-gd-native-ttf --enable-ftp --enable-sockets --disable-debug --enable-sysvsem --enable-sysvshm --enable-shmop --enable-track-vars --enable-freetype-4bit-antialias-hack --enable-calendar --enable-sigchild --enable-magic-quotes --enable-trans-sid --enable-inline-optimization --enable-bcmath
그리고 에러의 내용은
checking for CURL support... yes
checking if we should use CURL for url streams... no
checking for CURL in default path... found in /usr/local
checking for cURL 7.10.5 or greater... configure: error: cURL version 7.10.5 or later is required to compile php with cURL support
입니다.
물론 cURL은 apache 설치전에 설치했구요~ 버전은 curl-7.13.0 입니다.
curl 7.10.5 버전 이후의 버전은 php랑 함께 컴파일하라는거 같은데 .. 영어가 짧아..맞는 번역인지ㅡㅡ크응~
php랑 함께 컴파일하려면 어떻게 해야하나요?
고수님들의 도움 부탁드립니다.
이미 설치를 했는데 그러한 에러가 발생한다면 두가지 원인중에 하나입니다.
이미 설치를 했는데 그러한 에러가 발생한다면 두가지 원인중에 하나입니다.
첫번째는 지정된 PATH에(보통은 /usr/lib나 /usr/local/lib)에 해당 라이브러리가
설치되지 않았기 때문입니다.
두번째는 이전 버젼을 삭제하지 않고 새롭게 다른 디렉토리에 설치한 경우입니다.
대부분의경우 두번째에 해당합니다.
즉, lampu님이 이미 설치하셨다고 하셨는데 원하는 버젼이 나오지 않고 에러를 내놓는다면
이전 버젼이 /usr/lib에 존재할지도 모릅니다.
보통의경우(RedHat과 같은 RPM을 사용하는 경우...) 설치가 /usr/lib에 되어버리는데
이것을 지우지않고 소스설치를할경우 기본 디렉토리가 /usr/local/이 되어버리기 때문에
그리고 우선순위는 /usr/lib > /usr/local/lib 가 되기 때문에 이전버젼을 삭제하지
않으면 아무리 최신버젼을 설치해도 그러한 에러를 만나게 됩니다.
한번 /usr/lib에 해당 라이브러리가 있는지 확인해보세요.
------------------------------
좋은 하루 되세요.
댓글 달기