【问题标题】:How to install phalcon version 2如何安装 phalcon 版本 2
【发布时间】:2017-01-08 15:24:16
【问题描述】:

我有一些基于 phalcon 版本 2 的应用程序,但是自从版本 3 发布以来,新安装的 phalcon 默认为版本 3。

【问题讨论】:

    标签: phalcon


    【解决方案1】:

    您需要从源代码安装 phalcon,但不要从 master 分支构建,而是将分支切换到 2.0.x 分支。

    git clone --depth 1 https://github.com/phalcon/cphalcon.git
    cd cphalcon
    git remote set-branches origin '2.0.x'
    git fetch --depth 1 origin 2.0.x
    git checkout 2.0.x
    cd build
    ./install
    

    我创建这个要点是为了让这更容易 - https://gist.github.com/goke-epapa/c325da217296ec4880850972be955bf0

    更新

    听说上面的sn-p安装的是2.0.10版本,所以下面的sn-p是专门针对2.0.13版本的

    git clone --depth 1 https://github.com/phalcon/cphalcon.git
    cd cphalcon
    git remote set-branches origin 'phalcon-v2.0.13'
    git fetch --depth 1 origin phalcon-v2.0.13
    git checkout phalcon-v2.0.13
    cd build
    ./install
    

    更新 两个代码 sn-ps 都缺少cd cphalcon 命令,所以我修改了 sn-ps。

    【讨论】:

    • git remote set-branches origin '2.0.x' 致命:不是 git 存储库(或任何父目录):.git
    • 嗨@AbdulWaheed,感谢您注意到这一点,我添加了缺少的命令。
    • ubuntu@ip-172-00-00-84:~/cphalcon$ git checkout phalcon-v2.0.13 error: pathspec 'phalcon-v2.0.13' did not match any file(s) known to git.
    • 我们需要在 php/ini 文件中添加任何扩展名吗? @Adegoke
    猜你喜欢
    • 2019-05-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-09-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-05-02
    相关资源
    最近更新 更多