blat下载和安装

wget https://users.soe.ucsc.edu/~kent/src/blatSrc35.zip
unzip blatSrc35.zip
cd blatSrc/
uname -a
export MACHTYPE=x86_64
mkdir -p ~/bin/x86_64
make

make报错了

make[1]: Entering directory `/home/micro/software/blatSrc/lib'
gcc -O -g  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DMACHTYPE_x86_64   -I../inc -I../../inc -I../../../inc -I../../../../inc -I../../../../../inc  -o pngwrite.o -c pngwrite.c
pngwrite.c:7:87: fatal error: png.h: No such file or directory
 #include "png.h"   // MUST come before common.h, due to setjmp checking  in pngconf.h 
                                                                                       ^
compilation terminated.
make[1]: *** [pngwrite.o] Error 1
make[1]: Leaving directory `/home/micro/software/blatSrc/lib'
make: *** [all] Error 2

看来时缺依赖
yum install libpng #我是centos系统
安装不了这个包,,非常幸运找到这个网站,告诉我blat安装的依赖
http://genome.ucsc.edu/goldenPath/help/mirrorManual.html#software-requirements
显示:

Debian/Ubuntu: apt-get install ghostscript apache2 mysql-server gmt r-base uuid-dev python-mysqldb
Redhat/Fedora/CentOS: yum install libpng12 httpd ghostscript GMT hdf5 R libuuid-devel MySQL-python

所以直接安装:
yum install libpng12
安装成功!
最后输入make安装成功

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容