在我的客户端Centos 7机器上需要安装sqitch,但是在离线环境下却不知道该怎么做!
发布于 2019-09-30 17:03:03
我找到了一个对我有效的解决方案,我正在尝试生成一个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的CentOS7共享。“
在此之后,Sqitch就可以从
# ./sqitch_bundle/bin/sqitch现在要以常规方式访问,我们需要在.bashrc或.bash_profile中添加路径,例如
PATH="/opt/App-Sqitch-v1.0.0/sqitch_bundle/bin/:$PATH"https://stackoverflow.com/questions/57977565
复制相似问题