【问题标题】:Install zip extension for PHP --enable-zip on Mac OS X在 Mac OS X 上安装 PHP 的 zip 扩展 --enable-zip
【发布时间】:2010-12-24 14:37:03
【问题描述】:

我想安装以下内容,但不确定应该在哪里添加 --enable-zip?除了将它放在 php.ini 中之外,还有更多的功能吗?

http://www.php.net/manual/en/zip.installation.php

【问题讨论】:

    标签: php linux macos configuration zip


    【解决方案1】:

    这种--enable-xyz,或--with-xyz被传递给configure脚本,这是从源代码编译PHP时的第一步(显然是在下载/解压源代码之后)。

    有关更多信息,请参阅Installation on Unix System > Apache 2.x on Unix systems;尤其是给出configure 调用示例的部分:

    10. Now, configure your PHP.  This is where you customize your PHP
        with various options, like which extensions will be enabled.  Do a
        ./configure --help for a list of available options.  In our example
        we'll do a simple configure with Apache 2 and MySQL support.  Your
        path to apxs may differ, in fact, the binary may even be named apxs2 on
        your system. 
    
          ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
    

    如果你想/需要用 --enable-zip option 重新编译 PHP,它会直接在这个命令中运行。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-17
      • 2020-10-01
      • 2010-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-15
      相关资源
      最近更新 更多