0

自从一个星期以来,我一直在为此烦恼。

我在 Mac Catalina 上。

我已经使用 brew 安装了 PHP 7.3。

$php -v
PHP 7.3.11 (cli) (built: Feb 29 2020 02:50:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
$echo $PATH
/Users/talvinder/Projects/pipal.com/trellis/.trellis/virtualenv/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Library/Apple/usr/bin
$find /usr -name php
/usr/bin/php
find: /usr/sbin/authserver: Permission denied
/usr/local/bin/php
/usr/local/etc/php
/usr/local/Cellar/php@7.3/7.3.19/bin/php
/usr/local/Cellar/php@7.3/7.3.19/include/php
/usr/local/Cellar/php@7.3/7.3.19/lib/php
/usr/local/Cellar/php@7.3/7.3.19/.bottle/etc/php
/usr/local/Cellar/php@7.3/7.3.19/share/php
/usr/lib/php
/usr/share/php
/usr/share/php/php

我正在使用 zsh 作为终端。尽管如此,我还是一次又一次地收到“可执行文件中的错误 CPU”问题。

在上下文中,我正在尝试从根/格子安装圣人主题

$php composer.phar create-project roots/sage site/web/app/themes/sage
... a lot of installation goes well
... ends with
Generating autoload files
> Roots\Sage\Installer\ComposerScript::postCreateProject
sh: /usr/local/bin/php: Bad CPU type in executable
sh: /usr/local/bin/php: Bad CPU type in executable
sh: /usr/local/bin/php: Bad CPU type in executable

有人可以在这里指导我吗?

4

0 回答 0