Lots of bioinformatics software are based on perl. Some of them, for example, Circos, NGS toolkit... are written in perl and need certain perl packages. One of the most important one and the most tough one is GD!

It is really hard to install GD!!!! I've tried so many times and became desperate. Finally find one blog that tells fits me.

First make some basic setup:

mkdir build-gd
cd build-gd
sudo mkdir -p /usr/local/share/man /usr/local/include /usr/local/bin /usr/local/lib

Then download and build the latest jpeg libraries:

#first download latest jpeg- source package .tar.gz
#then cd to the uncompressed directory
./configure
make
sudo make install mandir="/usr/local/share/man"
sudo make install-lib *
sudo ranlib /usr/local/lib/libjpeg.a *
popd

#Honestly, I didn't totally understand the code right now. But some seems important (marked as *). Since I've installed with basic ./configure ->make ->make install steps, but cannot help install GD.

Then download and build the latest libpng libraries:

#first download the latest libpng-1.6. tar.gz source file
#then uncompress and cd to the directory cp scripts/makefile.macosx ./Makefile perl -i.pre -p -e 's/-current_version \$\(PNGVER\)//g' Makefile make zlibinc="/usr/lib" zliblib="/usr/lib"
sudo make install
sudo ranlib /usr/local/lib/libpng.a
popd

Finally, install GD

#download GD-2.50 source code
#cd to GD-2.50/
pushd gd-2.50 sudo make install
sudo ranlib /usr/local/lib/libgd.a
popd

In this way, GD will be finally installed!!! OMG~~~

Here's the original blog: http://www.dmxzone.com/go/6824/building-gd-on-mac-os-x/

Install GD on mac的更多相关文章

  1. Install Ansible on Mac OSX

    from: https://devopsu.com/guides/ansible-mac-osx.html and : https://devopsu.com/guides/ansible-post- ...

  2. Install Docker on Mac OS X(转)

    Install Docker on Mac OS X You can install Docker using Boot2Docker to run docker commands at your c ...

  3. Install Python on Mac (Anaconda)

    Install Python on Mac (Anaconda) 标签(空格分隔): 运维 This blog is copy from the link: https://medium.com/@G ...

  4. install Django in mac

    install Eclipse & Python(pydev) in mac install django in mac $ curl -O https://pypi.python.org/p ...

  5. 在已经编译安装好php7场景下,install gd库 with free-type (解决Call to undefined function imagettftext())

    在已经编译安装好php7场景下,install gd库 with free-type (解决Call to undefined function   imagettftext()) install g ...

  6. How to install ruby on mac/ change ruby source in china

    his one is tailor made for the Basix users among you. If you've been itching to try out Ruby and/or ...

  7. Install wget in Mac OS X Without Homebrew or MacPorts

    May 22, 2012 - 31 Comments The command line tool wget lets you retrieve a group of files from FTP an ...

  8. 在OSX狮子(Lion)上安装MYSQL(Install MySQL on Mac OSX)

    这篇文章简述了在Mac OSX狮子(Lion)上安装MySQL Community Server最新版本v10.6.7的过程. MySQL是最流行的开源数据库管理系统.首先,从MySQL的下载页面上下 ...

  9. pip install pytest on Mac (EI Capitan 10.11.6)

    升级了Mac 系统后发现用pip安装pytest出现下面链接中的问题,解决方法是在install时候加上--user选项: 1. 切到home directory: cd - 2. install p ...

随机推荐

  1. ASP.NET MVC 输出字符串

    @{Output.Write("<h1>输出字符串</h1>");}

  2. xml数据解析调研

    XML数据解析http://www.tuicool.com/articles/Nraau2(必用) http://www.cnblogs.com/pengyingh/articles/2342699. ...

  3. POJ 1328 Radar Installation 贪心 难度:1

    http://poj.org/problem?id=1328 思路: 1.肯定y大于d的情况下答案为-1,其他时候必定有非负整数解 2.x,y同时考虑是较为麻烦的,想办法消掉y,用d^2-y^2获得圆 ...

  4. win7 摄像头驱动软件找不到,只有sys文件

    有的驱动只有sys文件,但是仍然可以在qq视频等用,只是找不到amcap.exe等可执行文件, 因为没有摄像头软件,下载一个安装上即可

  5. POJ 1436 Horizontally Visible Segments

    题意: 有一些平行于y轴的线段 ,两条线段称为互相可见当且仅当存在一条水平线段连接这两条  与其他线段没交点. 最后问有多少组  3条线段,他们两两是可见的. 思路: 线段树,找出两两可见的那些组合, ...

  6. C# 正则表达式 验证:数字、带小数点数字、电话和手机

    一.带小数点数字 public static bool IsNumber(string input) { string pattern = "^-?\\d+$|^(-?\\d+)(\\.\\ ...

  7. Linux面试基础题-2

    继续我们这面试系列,在这篇文章里我们给出了10个问题.这些问题或者是在以后的文章中出现的问题不一定在面试中会被问到.然而通过这些文章我们呈现出的是一个交互的学习平台,这必将会对你有很大的帮助. 自本系 ...

  8. redis2.8--内存管理

    总而言之,redis内存管理是采用主要由操作系统自主控制内存分配,辅之以简单封装,达到简单且稍微改良的性能. 内存块,标记上本块size 如上图所示, 当调用zmalloc/zmalloc时,输入参数 ...

  9. MainActivity获取fragment控件button监听报空指针错误

    原因是是新版SDK创建项目时默认引入的fragment.xml,我的button是定义在fragment.xml里面的,而findviewbyid却是在main.activity里面调用的,而这样是获 ...

  10. IntelliLock托管代码保护和许可授权管理系统软件详细介绍及下载

    IntelliLock是一个能用于控件与应用程序许可授权的100%托管的先进解决方案.与.NET Reactor提供的基于源代码保护的授权许可系统不同,IntelliLock选择了以100%托管的方式 ...