我正在尝试按照此处的说明在我的 mac OSX 10.9 上安装 libgd (https://mikewest.org/2007/04/installing-libgd-from-source-on-os-x https://mikewest.org/2007/04/installing-libgd-from-source-on-os-x)并在这里了解更多信息(在 MacOSX 10.6 上安装 Perl 的 GD 库 https://stackoverflow.com/questions/7261921/installing-gd-library-for-perl-on-macosx-10-6).
主要目标是能够安装和使用 Circos。
我按照所有步骤安装了各种库 libpgn、pibjpeg 和 freetype 主要使用./configure && make && make sudo install
...然而
1)./congigure
libgd 的命令找不到我刚刚安装的库,我得到的内容如下:
** 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
我读了自述文件(yeeee)建议使用--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
...更广泛的馅饼:http://pastebin.com/BuvskMPe http://pastebin.com/BuvskMPe
所以我被困住了,我正在网上阅读,看起来它与 Xcode 和 gcc 有关,但我不知道如何解决这个问题。
任何帮助都是极好的!!