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系統(tǒng)
安裝不了這個包面睛,糠馆,非常幸運找到這個網(wǎng)站,告訴我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
安裝成功