MacOS 系统

Summary: Author: 张亚飞 | 阅读时间: 2 minute read | Published: 2016-08-08
Filed under Categories: DevOpsTags: Linux, Server, Software, DevOps,

Mac-OS 系统初始化环境


安装 brew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • 管理命令
brew install wget
brew list
brew update
brew link wxmac

MacOS 下使用 gsed 代替系统自带的 sed 程序

brew install gnu-sed
mv /usr/bin/sed /usr/bin/sed_o
ln -s /usr/local/bin/gsed /usr/bin/sed

安装 boost

brew install boost
brew upgrade boost
coam@MacPro:~$ brew install boost
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/boost-1.68.0_1.mojave.bottle.tar.gz
Already downloaded: /Users/coam/Library/Caches/Homebrew/downloads/f83fc0396c49a9a76c40fc6ee99960f474955365db2aca28a8fc83d07a9bef3c--boost-1.68.0_1.mojave.bottle.tar.gz
==> Pouring boost-1.68.0_1.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/boost/1.68.0_1: 13,712 files, 469.0MB

头文件位于 /usr/local/include/boost 库路径位于 /usr/local/lib/libboost*

  • 编译安装 boost 开发环境 - 不推荐
wget https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
tar -zxvf boost_1_69_0.tar.gz
cd boost_1_69_0
./booststrap.sh
sudo ./b2 install

几分钟之后编译安装完成 头文件位于 /usr/local/include/boost 库路径位于 /usr/local/lib


安装 thrift

brew install thrift

安装 Rust


安装 Go


安装 Python


安装 Docker


Java 开发环境

分别在官网下载 jdkjre

wget https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-macosx-x64.dmg
wget https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jre-8u201-macosx-x64.dmg

注:这里安装环境开启了,否则会提示:打不开以下磁盘映像,无法识别的镜像;

csrutil disable



Comments

Cor-Ethan, the beverage → www.iirii.com