g001
V2EX  ›  macOS

macos12 不支持 PHP ?

  •  
  •   g001 · Dec 17, 2021 · 4460 views
    This topic created in 1783 days ago, the information mentioned may be changed or developed.

    什么骚操作,mac12 更新后,就不在支持 php 了,自己安装 php 也不行

    20 replies  •  2021-12-18 16:15:45 +08:00
    Chism
    Chism
    Dec 17, 2021
    1
    docker
    evam
    evam
    Dec 17, 2021
    2
    能用啊。我用 brew 装的。
    说起来之前自带的 php 贼难卸载
    zhouxuchen
    zhouxuchen
    Dec 17, 2021
    3
    不会啊,可能你想装 7.3 以及之前的版本? [email protected] 在今年 12 月 6 日开始就不支持通过 brew 安装了,brew edit [email protected] ,把 disabled 开头的那行注释掉就行
    winddweb
    winddweb
    Dec 17, 2021❤️3
    4
    不自带 PHP ,自己装不行说明你没装好。
    Dvel
    Dvel
    Dec 17, 2021
    5
    Alfred 有些插件都失效了才发现,可以自己 brew 一个。
    acoldfox
    acoldfox
    Dec 17, 2021
    6
    我倒是好奇为什么之前 mac 会自带 php 呢?系统本身有用到 php 的地方吗
    shakaraka
    shakaraka
    Dec 17, 2021
    7
    ????brew 和 docker 不都可以用
    seanzxx
    seanzxx
    Dec 17, 2021
    8
    @acoldfox 不光带了 php ,也带了 ruby, python 呀,然后上一版里面就说会逐步删除掉系统自带的这些脚本引擎
    zachlhb
    zachlhb
    Dec 17, 2021
    9
    自己安装可以的,用 brew 的国内源安装
    c1273082756
    c1273082756
    Dec 17, 2021
    10
    shilianmlxg
    shilianmlxg
    Dec 17, 2021
    11
    那为什么不用 docker 装呢,还不污染环境
    huiyanpohundh123
    huiyanpohundh123
    Dec 17, 2021
    12
    手动编译 arm 版本的 php 就行了
    paopaosa
    paopaosa
    Dec 17, 2021
    13
    不支持和不自带是两个概念。可以自己装,比如用 macports 。
    chenzheyu
    chenzheyu
    Dec 17, 2021
    14
    @seanzxx 删除自带才好,你看 centos 自带的 php 跟 nginx 都是上古版本
    ekikaizeng
    ekikaizeng
    Dec 17, 2021
    15
    brew 可以装的 如果你要装老版本的 可以看一下这个 https://github.com/shivammathur/homebrew-php

    扩展的话要手动编译安装一下
    QlanQ
    QlanQ
    Dec 17, 2021
    16
    默认也删除了 python 吧
    cameco
    cameco
    Dec 17, 2021 via iPhone❤️1
    17
    觉得 docker 就在污染我的电脑。。。。
    volvo007
    volvo007
    Dec 17, 2021
    18
    @QlanQ 没有, 居然还能神奇的跑自带的 python 2.7……不知道魔改了啥

    This version is included in macOS for compatibility with legacy software.
    Future versions of macOS will not include Python 2.7.
    Instead, it is recommended that you transition to using 'python3' from within Terminal.
    [GCC Apple LLVM 13.0.0 (clang-1300.0.29.10) [+internal-os, ptrauth-isa=deployme on darwin
    demoshengxw
    demoshengxw
    Dec 17, 2021 via Android
    19
    直接 docker 拉个镜像,非常方便
    qq1204076437
    qq1204076437
    Dec 18, 2021 via iPhone
    20
    只是不自带,并不是不支持。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3786 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 77ms · UTC 00:49 · PVG 08:49 · LAX 16:49 · JFK 19:49
    ♥ Do have faith in what you're doing.