我正在尝试安装libgd在我的mac OSX 10.9上,遵循这里的说明 ( https://mikewest.org/2007/04/installing-libgd-from-source-on-os-x) 并查看更多信息 ( Installing GD library for perl on MacOSX 10.6)。主要目的是能够安装和使用Circos。
我按照安装各种库(libpgn,pibjpeg和freetype)的所有步骤,主要使用
我阅读了README文件(耶),建议使用
我按照安装各种库(libpgn,pibjpeg和freetype)的所有步骤,主要使用
./configure && make && make sudo install
...然而,
1) libgd的./congigure
命令找不到刚刚安装的库,我得到的是以下内容:** Configuration summary for libgd 2.1.0:
Support for Zlib: yes
Support for PNG library: no
Support for JPEG library: no
Support for VPX library: no
Support for TIFF library: no
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes
我阅读了README文件(耶),建议使用
--with-png=myDirectory --with-freetype=myDir
等等。我这样做了(不确定是否有所不同),但是当我到达make
命令时,我会收到以下错误信息。Undefined symbols for architecture x86_64:
"___sincos_stret", referenced from:
_gdImageCopyRotated in gd.o
_gdAffineRotate in gd_matrix.o
_gdImageRotateNearestNeighbour in gd_interpolation.o
_gdImageRotateGeneric in gd_interpolation.o
_gdImageRotateBilinear in gd_interpolation.o
_gdImageRotateBicubicFixed in gd_interpolation.o
_filter_bessel in gd_interpolation.o
...
"_iconv", referenced from:
_do_convert in gdkanji.o
"_iconv_close", referenced from:
_do_convert in gdkanji.o
"_iconv_open", referenced from:
_do_convert in gdkanji.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [libgd.la] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
我卡住了,我在网上查阅资料,看起来与Xcode和gcc有关,但我找不到如何解决问题。
任何帮助都将不胜感激!
更详细的信息请参见pastie:http://pastebin.com/BuvskMPe