반응형
◎ 설치 버전 : PHP 7.2.13 (소스 설치, 기존 5.2 버전에서 업그레이드 작업)
◎ configure 옵션 중 libXpm를 추가하여 설치할 때 나타날 수 있음. (libXpm-3.5.12)
-> libXpm 이란?
◎ 에러 메시지
undefined reference to 'XpmLibraryVersion'
◎ 해결
1. 관련 라이브러리 yum 을 통해 설치
yum install libXpm-devel
2. 컴파일 설치
./configure --with-xpm-dir=/home/your/prefixdir
3. 이후 php 소스 설치 진행
confiure 옵션
./configure \
--prefix=/home/your/prefixdir \
--with-apxs2=/home/your/prefixdir/apache/bin/apxs \
--with-freetype-dir=/home/your/prefixdir \
--with-zlib-dir=/home/your/prefixdir \
--with-jpeg-dir=/home/your/prefixdir--with-curl=/home/your/prefixdir \
--with-png-dir=/home/your/prefixdir \
--with-iconv \
--with-gd=/home/your/prefixdir \
--with-pdf \
--with-config-file-path=/home/your/prefixdir/apache/conf \
--enable-track-vars \
--enable-gd-native-ttf \
--disable-debug \
--with-language=korean \
--with-charset=utf8 \
--enable-shmop \
--enable-sockets \
--enable-ftp \
--with-libxml-dir=/home/your/prefixdir \
--enable-force-cgi-redirect \
--with-exec-dir=/home/your/prefixdir/bin \
--without-pear \
--enable-mbstring \
--with-mysqli=mysqlnd \
--enable-zend-multibyte \
--with-xpm-dir=/home/your/prefixdir \
--with-openssl=/home/your/prefixdir
이 중 몇몇 옵션은 7버전에서 지원하지 않을 수 있음.
반응형
'오류노트' 카테고리의 다른 글
[PHP 설치] SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 오류 (0) | 2022.12.06 |
---|---|
[apache] 버전 변경 시 나타나는 오류해결 (apr관련 오류) (0) | 2022.04.06 |
댓글