我怎样才能在 Centos 7 上离线安装 Sqitch



在我的客户端 Centos 7 机器中需要安装 sqitch,但在离线环境中不知道该怎么做!

找到了一个对我有用的解决方案,我正在尝试生成一个 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文件夹你可以把它涂成焦油并与其他 Centos 7 共享,启用 Perl。

之后,Sqitch 可以从

# ./sqitch_bundle/bin/sqitch

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

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

最新更新