Install zlib/libpng/jpeg/freetype/libgd/GD on Mavericks即mac10.9

转自:http://wangqinhu.com/install-gd-on-mavericks/

Various applications depend on library GD, however, you will alway fail on installing GD by CPAN.

I wrapped all the latest of zlib/libpng/jpeg/freetype/libgd/GD moudels and successfully installed GD on Mavericks (Mac OSX 10.9), hope this could help the one who have the similar environments.

Note Xcode should be installed first (if you haven't) and make sure you have a sudo privilege.

Download all the package here.
Extract the package gd.tar.gz and type sudo ./install to install.

This is an alternative approach:

curl -O http://wangqinhu.com/data/gd/gd.tar.gz

tar -zxf gd.tar.gz

cd gd sudo ./install 

 

附:对于有些会需要引用freetype内部文件的,需要通过sudo cp -ri freetype's path /usr/local/include

你可能感兴趣的:(Install)