CentOS 64bit에서 libjpeg,와 libpng 에서 해당 라이브러리를 못찾아 confiig 가 안되는 경우가 종종있다.
configure: error: libjpeg.(a|so) not found.
configure: error: libpng.(a|so) not found.
whereis libjpeg 명령으로 해당 라이브러리 경로를 확인 후에
# ln -s /usr/lib64/libjpeg.so /usr/lib/
# ln -s /usr/lib64/libpng.so /usr/lib/
심볼릭 링크(ln 단순히 원본파일을 가리키도록 리크만 시켜둔 것 windows:바로가기) 후에
config 옵션을 --with-jpeg-dir=/usr/lib , --with-png-dir=/usr/lib 로 하면 됨.
Configure: error: libXpm.(a|so) not found 에러날때
yum install xorg-x11-devel
ldconfig -p | grep Xpm
ldconfig -p | grep Xpm
libXpm.so.4 (libc6,x86-64) => /usr/lib64/libXpm.so.4
libXpm.so (libc6,x86-64) => /usr/lib64/libXpm.so
PHP 컴파일 설치 시 오류
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
개발환경 : CentOS 7
yum -y install epel-release
yum -y install php-mcrypt
yum -y install libmcrypt-devel
Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
해결 방법
# yum –y install mysql-devel
configure: error: Cannot find libmysqlclient_r under /usr.
Note that the MySQL client library is not bundled anymore!
해석
Mysql 컴파일 시 할 때 --enable-thread-safe-client 넣어서 진행 해보라고 했지만
괜히 하다가 꼬일 것 같아서 php configure 과정에서 --with-libdir=lib64 \ 추가 한후
Cd /usr/local/mysql
Ln -s lib lib64 설정후 install 하였다
또 나오네 configure 후 make 실행시 발생
해석
wget -O php.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
patch -p0 -b < php.patchpatching file ext/dom/node.c
Cofigure후 make 진행시 오류가 나옴
/home/segio_php/php-5.2.17/ext/dom/node.c: In function ‘dom_canonicalization’:
/home/segio_php/php-5.2.17/ext/dom/node.c:1953:21: error: dereferencing pointer to incomplete type
/home/segio_php/php-5.2.17/ext/dom/node.c:1955:5: error: dereferencing pointer to incomplete type
해석
[root@localhost] wget -O php.patch https://mail.gnome.org/archives/xml/2012-August/txtbgxGXAvz4N.txt
[root@localhost] cd php-5.2.17
[root@localhost] patch -p0 -b < php.patch
patching file ext/dom/node.c
Hunk #1 succeeded at 1950 (offset 55 lines).
patching file ext/dom/documenttype.c
Hunk #1 succeeded at 215 (offset 10 lines).
patching file ext/simplexml/simplexml.c
Hunk #1 succeeded at 1343 (offset -74 lines).
Patch가 install안되면 yum으로 설치후 진행
Configure후 make 진행시 오류 /bin/ld: cannot find -lltdl
/bin/ld: cannot find -lltdl
collect2: error: ld returned 1 exit status
make: *** [libphp5.la] Error 1
해석
yum list | grep libtool-ltdl로 확인 설치 되어 있음
[root@localhost php-5.2.17]# yum list | grep libtool-ltdl
libtool-ltdl.x86_64 2.4.2-22.el7_3 @anaconda
libtool-ltdl.i686 2.4.2-22.el7_3 base
libtool-ltdl-devel.i686 2.4.2-22.el7_3 base
libtool-ltdl-devel.x86_64 2.4.2-22.el7_3 base
[Liunx] yum 패키지,yum 삭제하기,ServerName (1) | 2021.06.14 |
---|---|
[Liunx] php.ini이 없을 때 확인 방법/httpd.conf (0) | 2021.06.14 |
[Liunx] SSH,chown(소유권 변경) vs chmod(파일권한 변경) (0) | 2021.06.14 |
[Liunx] cat /proc/meminfo 메모리 정보 해석 (0) | 2021.06.14 |
[Liunx] 모듈 과 커널 (0) | 2021.06.14 |
댓글 영역