1.安装必要的开发包

  • Ubuntu 执行
sudo apt install build-essential zlib1g-dev
  • CentOS/RedHat 执行
sudo yum groupinstall "Development Tools"
sudo yum install zlib-devel perl-ExtUtils-MakeMaker

2.设置镜像

npm config set registry http://r.cnpmjs.org
npm config set puppeteer_download_host=http://cnpmjs.org/mirrors
export ELECTRON_MIRROR="http://cnpmjs.org/mirrors/electron/"

3.Git 提速

https://blog.csdn.net/u011262253/article/details/104931257

4.安装 node,npm

https://blog.csdn.net/u011262253/article/details/104903255

5.搭建服务器

以安装 lampp 为例

https://blog.csdn.net/u011262253/article/details/70876900

6.安装 jbrowse

cd /opt/lampp/htdocs
curl -L -O https://github.com/GMOD/jbrowse/releases/download/1.16.8-release/JBrowse-1.16.8.zip
unzip JBrowse-1.16.8.zip
sudo mv JBrowse-1.16.8 /var/www/html/jbrowse
cd /var/www/html
sudo chown `whoami` jbrowse
cd jbrowse
./setup.sh

7.测试是否安装成功

浏览器输入:http://your_id/jbrowser/?data=sample_data%2Fjson%2Fvolvox&loc=ctgA%3A20586..20654&tracks=DNA%2Cvolvox-sorted_bam%2Cvolvox_gff3%2Cvolvox_microarray_bw_density%2Cvolvox_sine_density&highlight=

mark