我如何离线在Centos 7上安装Sqitch

时间:2019-09-17 15:29:46

标签: centos7 sqitch

在我的客户端中,需要安装sqitch的Centos 7机器,但是在离线环境中不知道如何执行该操作!

1 个答案:

答案 0 :(得分:0)

找到了一个对我有用的解决方案,其中我试图生成一个Sqitch捆绑文件夹,我们将拥有一个Sqitch的有效版本,您可以在其他具有相同Arch的centos 7机器中使用它。

# yum install gcc

# yum install perl-DBD-Pg

# cpan

cpan[1]> install HTML::Entities

提取焦油

# cd /{extracted_dir}/

# perl Build.PL

# ./Build installdeps

# ./Build bundle --install_base sqitch_bundle --dual_life 1 --with postgres

现在,在上一步中提取的App-Sqitch-v1.0.0文件夹中有sqitch_bundle文件夹,此sqitch_bundle文件夹可以压缩它并与启用Perl的其他Centos 7共享。”

之后,可以从

运行Sqitch
# ./sqitch_bundle/bin/sqitch

现在要正常访问,我们需要在.bashrc或.bash_profile中添加路径,例如

PATH="/opt/App-Sqitch-v1.0.0/sqitch_bundle/bin/:$PATH"