账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    macos brew install 怎么查看安装时选择了哪些选项
    86
    0

    比如安装PHP,
    我们会先通过命令brew options php71查看有哪些选项是可以选择的。

    --with-cgi
            Enable building of the CGI executable (implies --without-fpm)
    --with-debug
            Compile with debugging symbols
    --with-embed
            Compile with embed support (built as a static library)
    --with-enchant
            Build with enchant support
    --with-gmp
            Build with gmp support
    --with-homebrew-curl
            Include Curl support via Homebrew
    --with-homebrew-libressl
            Include LibreSSL instead of OpenSSL via Homebrew
    --with-homebrew-libxml2
            Include Libxml2 support via Homebrew
    --with-homebrew-libxslt
            Include LibXSLT support via Homebrew
    --with-httpd
            Enable building of shared Apache Handler module
    --with-imap
            Include IMAP extension
    --with-libmysql
            Include (old-style) libmysql support instead of mysqlnd
    --with-mssql
            Include MSSQL-DB support
    --with-pdo-oci
            Include Oracle databases (requries ORACLE_HOME be set)
    --with-pear
            Build with PEAR
    --with-phpdbg
            Enable building of the phpdbg SAPI executable
    --with-postgresql
            Build with postgresql support
    --with-thread-safety
            Build with thread safety
    --with-webp
            Build with webp support
    --without-bz2
            Build without bz2 support
    --without-fpm
            Disable building of the fpm SAPI executable
    --without-ldap
            Build without LDAP support
    --without-legacy-mysql
            Do not include the deprecated mysql_ functions
    --without-mysql
            Remove MySQL/MariaDB support
    --without-pcntl
            Build without Process Control support
    --without-unixodbc
            Build without unixODBC support
    --HEAD
            Install HEAD version

    比如我选择这样子安装:

    brew install php71 --with-homebrew-curl --with-homebrew-libressl

    然后过了一段时间,我发现还需要加一个参数--with-httpd,能不能不卸载直接加上这个选项?

    如果必须卸载掉重新安装,
    那我要怎么查看第一次安装时选择了哪些选项?还是只能凭记忆?

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • mislay忘記 普通会员 1楼

      在MacOS上使用Brew安装时,你可以在安装时看到一些选项,这些选项通常会被标记为"安装此软件包时,我选择了"。例如,"通过YAML文件"、"使用Homebrew作为依赖项"、"添加环境变量"等等。

      如果你想要查看具体的选项,你可以使用以下命令:

      bash brew install --verbose <package_name>

      这将显示所有与<package_name>相关的选项。如果你只想看到一些特定的选项,你可以添加一个参数,例如:

      bash brew install --verbose <package_name> --all

      这将显示所有与<package_name>相关的选项,无论它们是否被安装为依赖项。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部