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安装成功

你可能感兴趣的:(blat下载和安装)