2014년 7월 28일 월요일

PHP 5.3.28 설치시 --with-freetype-dir= 에러발생 해결

./configure --with-freetype-dir=/usr

했을시,

freetype.h 파일을 찾을수 없다고 나온다.

http://sourceforge.net/projects/freetype/files/freetype2/

여기서 파일을 다운받은후

$ tar zxvf freetype-x.x.x.tar.gz

$ cd freetype-x.x.x

$ ./configure --without-png

$ make

$ make install

인스톨 하고 나면 /usr/include/freetype2 , /usr/local/include/freetype2 두 폴더가 생기는데

이대로 하면 똑같은 에러가 발생 그래서 찾아본 결과

$ sudo ln -s /usr/include/freetype2 /usr/include/freetype2/freetype

$ sudo ln -s /usr/local/include/freetype2 /usr/local/include/freetype2/freetype

이렇게 해줘야 에러가 발생하지 않고 설정이 된다.

아무래도 경로상 문제인거 같은데 삽질끝에 해결!

댓글 없음:

댓글 쓰기