一、 Mac 自带环境:
Apache
$ httpd -v
Server version: Apache/2.4.46 (Unix)
Server built: Nov 23 2020 03:38:13
Ruby
$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]
// Ruby的包管理器
$ gem -v
3.0.3
Python
$ python -V
Python 2.7.16
PHP
$ php -v
WARNING: PHP is not recommended
PHP is included in macOS for compatibility with legacy software.
Future versions of macOS will not include PHP.
PHP 7.3.24-(to be removed in future macOS) (cli) (built: Nov 23 2020 06:45:16) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies
- (待补充...)
二、常用环境
-
Homebrew
(开放源代码的软件包管理系统,用以简化 Mac系统上的软件安装过程)
https://brew.sh/index_zh-cn
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
更换源:
https://developer.aliyun.com/mirror/homebrew
-
CocoaPods
(Xcode
依赖库管理)
https://cocoapods.org
// 安装
$ sudo gem install cocoapods
// 查看版本
$ pod --version
1.10.1
更换源:
https://mirror.tuna.tsinghua.edu.cn/help/CocoaPods/
相关:
Swift Package Manager
(Xcode
自带的 Swift
包管理器,一般简称 SwiftPM
或者 SPM
)是苹果官方提供的一个用于管理源代码分发的工具。
- (等补充...)
网友评论