php 설치할때 make시 /usr/lib/ld : connot find -lltdl 에러가 납니다..
작성자 정보
- 터프키드 작성
- 작성일
컨텐츠 정보
- 2,727 조회
- 2 댓글
- 0 추천
- 목록
본문
구글 네이버 다 찾아봐도 답변이 없어요
configure 옵션입니다
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-xpm-dir=/usr/lib --with-freetype-dir=/usr/lib --enable-track-vars=yes --with-mod-charset --with-language=korean --with-charset=UT
F-8 --disable-debug --without-sqlite --with-mcrypt=/usr/local/mcrypt --enable-mbstring --with-mcrypt --with-mysqli=/usr/local/mysql/bin/mysql_config --with-mhash
----------------------------------------------------
-lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o libphp5.la
/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [libphp5.la] 以瑜 1
----------------------------------------------------
이런 오류가 계속 납니다.
CentOS + php5.2.3 + mysql5.0.41 + httpd2.2.4 입니다
development tools 설치했구요(yum groupinstall)
libtool문제라고 해서 libtool 설치했습니다.. libtool-1.5.22-6.1
PATH설정 문제라고 하는거 같아 확인했는데
/etc/profile 은
# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
LD_LIBRARY_PATH=/usr/local/lib:/usr/lib
export LD_LIBRARY_PATH
--------------------------------------------------------
이렇게 설정되어있습니다..
configure 옵션부분에 --with-mcrypt 를 제외하면 오류없이 make 되구요..
mcrypt때문인거 같은데.. ltdl이 libtool-devel <-- 이걸 말하는건가요?
libtool-devel 은 설치안되있는거 같은데
yum install libtool-devel 해도 설치가 되지 않네요..
mcrypt는 아래와같이 설치되어있습니다
[root@localhost php-5.2.3]# rpm -qa | grep mcrypt
libmcrypt-devel-2.5.7-5.el5.centos
libmcrypt-2.5.7-5.el5.centos
php-mcrypt-5.1.6-12.el5.centos
[root@localhost php-5.2.3]#
이틀내내 고생이네요.. 좀 도와주세요ㅜㅜ
관련자료
-
이전
-
다음
김태훈님의 댓글
- 김태훈
- 작성일
--with-mcrypt 때문에 문제가 되는거라면...
mcrypt 가 path 로 잡혀 있질 않아서 발생하는 문제일수도 있고..
버젼 문제 일수도 있습니다..
configure --help > tmp.txt 하셔서..
tmp.txt 파일을 열어서.. 차근히 옵션이 맞는지를 한번 더 확인해 주시고..
--with-mcrypt=/경로...../mcrypt.so 와 같이.. so 파일을 직접 찍어주시면..
파일을 못찾는다는 에러는 안나올듯 하기도 합니다..
정 안된다면...
그냥 --with-mcrypt 를 빼고 설치하시는것도 나쁘지는 않을것 같습니다..
DSO 라는 좋은 기능이 있으니...
so 파일을 php 에 설치후 나중에 붙이셔도.. 크게 문제 되지는 않을듯 합니다...
최우혁님의 댓글
- 최우혁
- 작성일
설치해보시겠다면 여기서 다운받아 설치하셔도 되겠습니다.
yum 에서 "yum install libtool*" 로는 안되던가요?