ubuntu安装hhsuite/hhblits全过程!

1.由于是刚刚装好的ubuntu,首先需要安装一些必备工具例如git。

sudo apt install git

报错: 依赖: liberror-perl 但无法安装它
解决:

sudo apt-get update
sudo apt-get upgrade
sudo apt install git

在这里插入图片描述在这里插入图片描述

git安装成功!

2.根据官网给出的方法安装hhsuite

# 下载包
git clone https://github.com/soedinglab/hh-suite.git
cd hh-suite

# 编译最新版本,初始化子模块
git submodule init
git submodule update

# 安装
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr/opt/hhsuite ..
make
sudo make install
sudo apt-get upgrade
sudo apt-get install hhsuite
#测试安装是否成功
hhblits -h

下面是具体安装过程
在这里插入图片描述
到cmake这一步时报错:
Command ‘cmake’ not found, but can be installed with:

sudo apt install cmake

解决:安装cmake

sudo apt install cmake

在这里插入图片描述

在这里插入图片描述
接着输入cmake命令行,又报错:

CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

在这里插入图片描述解决:

sudo apt-get update
sudo apt-get install -y build-essential

在这里插入图片描述
make install 又报错:
CMake Error at lib/ffindex/src/cmake_install.cmake:47 (file):
file INSTALL cannot set permissions on
“/usr/opt/hhsuite/bin/ffindex_reduce”
Call Stack (most recent call first):
lib/ffindex/cmake_install.cmake:42 (include)
cmake_install.cmake:42 (include)

解决:

sudo make install

在这里插入图片描述

在这里插入图片描述
成功!!
3.修改地址

export HHLIB=/home/yl/hh-suite  #改成你自己的地址
export PATH=$PATH:$HHLIB/bin:$HHLIB/scripts

或修改.bashrc文件:
命令行输入

gedit ~/.bashrc

在文档最后添加:

export HHLIB=/usr/local/
PATH=$PATH:$HHLIB/bin>$HHLIB/scripts
alias hhblits=’hhblits -d <path_to/uniprot20>’#默认数据库地址,需要修改

4.尝试了官网的另一种方法,先下载包再解压安装,这样的问题是缺少cmake文件,可以在github中下载其他文件放到hhsuit文件夹中。
在这里插入图片描述

  • 5
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 7
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值