【问题标题】:Forgot to include --with-curl when configuring PHP. How to add without disrupting other extensions?配置 PHP 时忘记包含 --with-curl。如何在不破坏其他扩展的情况下添加?
【发布时间】:2012-07-07 08:58:19
【问题描述】:

如果我从源代码编译 PHP 5 并意识到我忘记了其中的 --with-curl,我可以运行相同的 ./configure 命令并在最后添加 --with-curl 并添加它吗?或者我可以只做./configure --with-curl 并将其添加到已经安装的所有内容中吗?

【问题讨论】:

    标签: php configure


    【解决方案1】:

    你必须重新配置然后重新编译。

    【讨论】:

      【解决方案2】:

      您需要像这样将其添加到旧配置的末尾

      ./configure --with-something1 --with-something2 --with-curl
      

      【讨论】:

      • 因此,如果我执行 ./configure --with-something --withs-something2 --with-curl 之类的操作,然后执行 make 和 make install 并意识到我不想要 --with-我可以然后做 ./configure --with-something2 --with-curl 它会删除 --with-something 吗??
      • @mahle 没错,只要记住 make install 需要 root 权限。
      • 嗯,我可能会迟到,但别忘了在配置后运行 make。你总是需要在configure之后运行make,然后再make install。
      【解决方案3】:

      你应该运行./configure(上一个命令+新增)、makemake installmake clean

      【讨论】:

        【解决方案4】:

        ./configure 不记得你上次调用它的参数,但如果你忘记了它们,你可以从config.status 中找出它们。

        【讨论】:

          【解决方案5】:

          您需要运行正确的配置命令并使用 make 命令进行编译。如果您想了解有关 autoconf 的更多信息,请参阅 http://www.gnu.org/software/autoconf/#introduction 基本上。/configure 只是设置构建,您可以使用它更改选项。

          【讨论】:

            猜你喜欢
            • 2021-12-29
            • 1970-01-01
            • 2010-12-21
            • 1970-01-01
            • 1970-01-01
            • 1970-01-01
            • 2011-08-19
            • 2010-10-26
            • 2011-11-26
            相关资源
            最近更新 更多