美文网首页
Mac自带和常用开发环境(待补充...)

Mac自带和常用开发环境(待补充...)

作者: lenbolan | 来源:发表于2021-01-31 13:35 被阅读0次

一、 Mac 自带环境:

  1. Apache
$ httpd -v
Server version: Apache/2.4.46 (Unix)
Server built:   Nov 23 2020 03:38:13
  1. Ruby
$ ruby -v 
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin20]

// Ruby的包管理器
$ gem -v 
3.0.3
  1. Python
$ python -V
Python 2.7.16
  1. 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
  1. (待补充...)

二、常用环境

  1. 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

  1. CocoaPods (Xcode依赖库管理)
    https://cocoapods.org
// 安装
$ sudo gem install cocoapods

// 查看版本
$ pod --version
1.10.1

更换源:
https://mirror.tuna.tsinghua.edu.cn/help/CocoaPods/

相关:
Swift Package ManagerXcode 自带的 Swift 包管理器,一般简称 SwiftPM 或者 SPM)是苹果官方提供的一个用于管理源代码分发的工具。

  1. (等补充...)

相关文章

网友评论

      本文标题:Mac自带和常用开发环境(待补充...)

      本文链接:https://www.haomeiwen.com/subject/ktcrtltx.html