我正在尝试按照此处的说明(https://mikewest.org/2007/04/installing-libgd-from-source-on-os-x)在我的mac OSX 10.9上安装libgd,并在此处获取更多信息(Installing GD library for perl on MacOSX 10.6)。
主要目标是能够安装和使用Circos。
我按照所有步骤安装了主要使用./configure && make && make sudo install
的各种库libpgn,pibjpeg和freetype ...但是
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文件(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
所以我被卡住了,我正在网上阅读,看起来它与Xcode和gcc有关但我无法找到如何解决这个问题。
任何帮助都会很棒!
答案 0 :(得分:8)
我使用自制程序成功安装了它。它很简单:
brew install gd
安装了lib-gd版本2.1.0_1。