【问题标题】:How can i install Sqitch on Centos 7 offline如何在 Centos 7 上离线安装 Sqitch
【发布时间】:2019-09-17 15:29:46
【问题描述】:

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

【问题讨论】:

标签: centos7 sqitch


【解决方案1】:

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

之后,可以从

运行 Sqitch
# ./sqitch_bundle/bin/sqitch

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

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

【讨论】:

    猜你喜欢
    • 2019-06-12
    • 2017-05-17
    • 1970-01-01
    • 1970-01-01
    • 2018-11-13
    • 2018-05-28
    • 2023-03-22
    • 1970-01-01
    • 2019-07-03
    相关资源
    最近更新 更多