php と port が使えない?
phpがなくなっている?ので。
$ sudo port install php Password: sudo: port: command not found
port コマンドがないと・・・?
The MacPorts Project Official Homepage
https://www.macports.org/
- Install Xcode and the Xcode Command Line Tools - Agree to Xcode license in Terminal: sudo xcodebuild -license - Install MacPorts for your version of the Mac operating system: - macOS Monterey v12
Xcode は入っているので
# sudo xcodebuild -license

MacPorts-2.7.1-12-Monterey.pkgをダウンロードしてインストール

$ sudo port version Version: 2.7.1
PHP install
$ sudo port install php ---> Computing dependencies for php The following dependencies will be installed: argon2 bzip2 gettext-runtime gsed icu libedit libiconv libxml2 mhash ncurses pcre2 php81 php_select xz zlib Continue? [Y/n]:
$ php81 -v PHP 8.1.2 (cli) (built: Jan 22 2022 05:19:24) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.2, Copyright (c) Zend Technologies
コメント