mysql和ORTHOMCL_OrthoMCL 安装配置与使用

本文详细介绍了如何安装配置mysql以及为mysql安装perl依赖包,特别是针对非root用户的自定义安装方法。之后,文章讲解了MCL软件的安装,并提供了OrthoMCL软件的安装配置和使用步骤,包括数据库表的安装、输入文件调整、过滤、BLAST比对、数据解析、数据加载、对齐计算、数据导出和MCL聚类等关键操作。
摘要由CSDN通过智能技术生成

1. mysql安装配置(点我)

2. 创建数据库和数据库用户

2.1 以root身份登陆mysql server

./bin/mysql --defaults-file=mysql.cnf -u root -p

2.2 创建数据库和用户

CREATE DATABASE orthomcl; #建数据库

GRANT SELECT,INSERT,UPDATE,DELETE,CREATE VIEW,CREATE, INDEX, DROP on orthomcl.* TO orthomcl@localhost; #授权

set password for orthomcl@localhost = password('123456');

3. 为mysql安装perl依赖包

3.1 检查依赖包是否安装(不报错说明已经安装,反之报错)

$ perl -MDBI -e 1 (我的不报错说明已安装)

$ perl -MDBD::mysql -e 1 (报错,需要安装,见步骤3.2)

3.2 以root身份安装,没有root见3.2s

perl -MCPAN -e shell

cpan> o conf makepl_arg "mysql_config=/share/soft/mysql/bin/mysql_config"

cpan> install Data::Dumper

cpan> install DBI

cpan> force install DBD::mysql

若遇到:“ install_driver(mysql) failed: Can’t load ‘/usr/local/lib64/perl5/auto/DBD/mysql/mysql.so’ for module DBD::mysql: libmysqlclient.so.18: ” 类似的错误,把libmysqlclient.so.18所在目录的路径名加到“/etc/ld.so.conf”文件中,接着运行ldconfig即可(详情点我)

方法一:定义用户自定义的CPAN,通过CPAN安装DBI::mysql模块(orthomcl软件中mysqlInstallGuide.txt提供的安装方法)

Installing modules as a standard user

– Follow the steps below to install modules as a non-root user. We

assume /myperl in your home directory is your custom perl directory.

1. In your home directory, create the PERL and CPAN directories, and

a blank CPAN config module:

\$ mkdir myperl

\$ mkdir .cpan

\$ mkdir .cpan/CPAN

\$ echo “\$CPAN::Config = {}”> ~/.cpan/CPAN/MyConfig.pm

2. Configure your environment by adding the following to your

.bash_profile file in your home directory:

######################################

if [ -z “\$PERL5LIB” ]

then

# If PERL5LIB wasn’t previously defined, set it…

PERL5LIB=~/myperl/lib

else

# …otherwise, extend it.

PERL5LIB=$PER

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值