읔... gd설치할때 에러가...
apm깔려고 프리타입 지우고 소스로 다시 깔았습니다
그런데 gd깔려고할때 에러가 나네요 ㅠ_ㅠ
---freetype
[root@localhost mysql-4.0.20]# cd /usr/local/source
[root@localhost source]# tar xvfz freetype-2.1.9*
[root@localhost source]# cd freetype-2.1.9
[root@dentistrytest freetype-2.1.9]# ./configure
[root@dentistrytest freetype-2.1.9]# make
[root@dentistrytest freetype-2.1.9]# make install
--gd
[root@localhost freetype-2.1.9]# cd ..
[root@localhost source]# tar xvfz gd*
[root@localhost source]# cd gd*
[root@localhost gd-2.0.26]# patch -l < ../patches/patch_gd2.0.26_gif_040622
[root@localhost gd-2.0.26]# ./configure --prefix=/usr/local/gd --with-freetype=/usr/local/include/freetype2
[root@localhost gd-2.0.26]# make
[root@localhost gd-2.0.26]# make install
-----컨피그는 잘되는데 make, make install에서 오류가...
gdft.c:58:10: #include expects "FILENAME" or <FILENAME>
gdft.c:59:10: #include expects "FILENAME" or <FILENAME>
gdft.c:109: parse error before "FT_Library"
gdft.c:109: warning: no semicolon at end of struct or union
gdft.c:110: warning: data definition has no type or storage class
gdft.c:111: parse error before "have_char_map_unicode"
gdft.c:112: warning: data definition has no type or storage class
gdft.c:114: parse error before '}' token
gdft.c:115: warning: data definition has no type or storage class
gdft.c:120: parse error before "FT_Library"
gdft.c:120: warning: no semicolon at end of struct or union
gdft.c:122: warning: data definition has no type or storage class
gdft.c: In function `fontTest':
gdft.c:391: `a' undeclared (first use in this function)
gdft.c:391: (Each undeclared identifier is reported only once
gdft.c:391: for each function it appears in.)
gdft.c:391: parse error before ')' token
gdft.c:392: `b' undeclared (first use in this function)
gdft.c:392: parse error before ')' token
gdft.c: In function `fontFetch':
gdft.c:400: `a' undeclared (first use in this function)
gdft.c:401: `b' undeclared (first use in this function)
gdft.c:401: parse error before ')' token
gdft.c:409: `FT_Error' undeclared (first use in this function)
gdft.c:409: parse error before "err"
gdft.c:410: `FT_CharMap' undeclared (first use in this function)
gdft.c:413: parse error before ')' token
gdft.c:513: `err' undeclared (first use in this function)
gdft.c:542: `charmap' undeclared (first use in this function)
gdft.c:569: `found' undeclared (first use in this function)
gdft.c: In function `fontRelease':
gdft.c:604: `a' undeclared (first use in this function)
gdft.c:604: parse error before ')' token
gdft.c: At top level:
gdft.c:699: parse error before "FT_Bitmap"
gdft.c: In function `gdft_draw_bitmap':
gdft.c:710: `fg' undeclared (first use in this function)
gdft.c:711: `im' undeclared (first use in this function)
gdft.c:715: `bitmap' undeclared (first use in this function)
gdft.c:719: `pen_y' undeclared (first use in this function)
gdft.c:727: `ft_pixel_mode_grays' undeclared (first use in this function)
gdft.c:736: `ft_pixel_mode_mono' undeclared (first use in this function)
gdft.c:763: `pen_x' undeclared (first use in this function)
gdft.c:864: `tc_cache' undeclared (first use in this function)
gdft.c: At top level:
gdft.c:880: parse error before "library"
gdft.c:880: warning: data definition has no type or storage class
gdft.c: In function `gdImageStringFTEx':
gdft.c:931: `FT_Matrix' undeclared (first use in this function)
gdft.c:931: parse error before "matrix"
gdft.c:932: `FT_Vector' undeclared (first use in this function)
gdft.c:933: `FT_Face' undeclared (first use in this function)
gdft.c:934: `FT_Glyph' undeclared (first use in this function)
gdft.c:935: `FT_GlyphSlot' undeclared (first use in this function)
gdft.c:936: `FT_Error' undeclared (first use in this function)
gdft.c:937: `FT_Bool' undeclared (first use in this function)
gdft.c:938: `FT_UInt' undeclared (first use in this function)
gdft.c:942: `font' undeclared (first use in this function)
gdft.c:943: parse error before "fontkey"
gdft.c:947: `FT_BitmapGlyph' undeclared (first use in this function)
gdft.c:947: parse error before "bm"
gdft.c:950: `FT_LOAD_DEFAULT' undeclared (first use in this function)
gdft.c:988: `fontkey' undeclared (first use in this function)
gdft.c:990: parse error before ')' token
gdft.c:998: `slot' undeclared (first use in this function)
gdft.c:998: invalid type argument of `->'
gdft.c:1013: `FT_F26Dot6' undeclared (first use in this function)
gdft.c:1020: `matrix' undeclared (first use in this function)
gdft.c:1020: `FT_Fixed' undeclared (first use in this function)
gdft.c:1025: `use_kerning' undeclared (first use in this function)
gdft.c:1026: `previous' undeclared (first use in this function)
gdft.c:1029: `FT_LOAD_MONOCHROME' undeclared (first use in this function)
gdft.c:1098: `penf' undeclared (first use in this function)
gdft.c:1118: invalid type argument of `->'
gdft.c:1209: `glyph_index' undeclared (first use in this function)
gdft.c:1215: `ft_kerning_default' undeclared (first use in this function)
gdft.c:1215: `delta' undeclared (first use in this function)
gdft.c:1221: `err' undeclared (first use in this function)
gdft.c:1232: `glyph_min' undeclared (first use in this function)
gdft.c:1237: `glyph_max' undeclared (first use in this function)
gdft.c:1247: `total_min' undeclared (first use in this function)
gdft.c:1248: `total_max' undeclared (first use in this function)
gdft.c:1266: `image' undeclared (first use in this function)
gdft.c:1268: `ft_glyph_format_bitmap' undeclared (first use in this function)
gdft.c:1270: `ft_render_mode_normal' undeclared (first use in this function)
gdft.c:1280: `bm' undeclared (first use in this function)
gdft.c:1280: parse error before "image"
make[1]: *** [gdft.lo] 오류 1
make[1]: 나감 `/usr/src/source/gd-2.0.26' 디렉토리
make: *** [install-recursive] 오류 1
도와주세요 ㅠ_ㅠ
의존 성이 걸린 헤더 파일이 없거나 있더라도 버전이 다를 경우에 발생하는
의존 성이 걸린 헤더 파일이 없거나 있더라도 버전이 다를 경우에 발생하는 문제 같습니다.
/usr/local/bin 디렉토리에 freetype-config가 있는
/usr/local/bin 디렉토리에 freetype-config가 있는지 확인을 해보세요.
cflags옵션에 의해서 출력되는 디렉토리가 /usr/local/include/freetype2가
정확한지를 확인해보세요. 제 경우에는 --prefix=/usr로 설치해서 위치가 틀립
니다...
만일 whereis로 찾은 freetype-config가 두개 이상있다면 /usr/local/bin에
있는 프로그램을 제외한 나머지는 삭제하거나 다른이름으로 만들어 놓으시는게
좋습니다.
그리고 gd의 config.log에서 freetype-config가 위에서 찾은 위치와 같은지를
확인해보세요.
제경우에는 freetype이 설치될때 --prefix=/usr 로 되어있어서 /usr/bin에
해당 프로그램이 설치된 경우입니다. 기본으로 설치를하면 /usr/local/bin에
설치될 것입니다. set | grep PATH 로 /usr/local/bin이 포함되어있는지
확인해 보세요.
위에서 확인한 것들이 다 있는데도 에러가 발생한 것이라면 gd를 다시한번
받아보시기 바랍니다.(최신버젼은 2.0.33입니다.)
http://www.boutell.com/gd/
맨 아랫부분에 받을 수 있는 링크가 있습니다.
최신버젼에서는 gif를 쓰고 읽을 수 있도록 지원하고 있습니다.
------------------------------
좋은 하루 되세요.
댓글 달기