Homdebrew的功能类似于Centos下的yum以及Ubtuan下的apt-get,最方便的就是可以将Linux下的一些命令移植到Mac上,从而免去编译安装带来的很多依赖包及报错。


  • 安装Homebrew
1
2
3
4
5
6
#for Mac
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#for Linux
ruby -e "$(wget -O- https://raw.github.com/Homebrew/linuxbrew/go/install)"
#ruby -e "$(wget -O- https://raw.github.com/Homebrew/linuxbrew/go/install --no-check-certificate)"
#git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew

对于Linux用户需要修改.bashrc

1
2
export PATH="$HOME/.linuxbrew/bin:$PATH"
export LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"
  • 安装软件
1
2
3
4
5
6
7
8
brew install wget
brew install gfortran
brew install gcc
brew install vim
brew install xlf
brew install autoconf
brew install automake
brew install libevent
  • 安装生物信息软件
1
2
#添加生信软件库
brew tap homebrew/science
1
2
3
4
5
6
7
8
9
10
11
12
#安装软件
brew install blast
brew install blat
brew install bedtools
brew install samtools
brew install bamtools
brew install vcftools
brew install bowtie
brew install bowtie2
brew install tophat
brew install bwa
brew install cufflinks