User Tools

Site Tools


tech:macos:start

This is an old revision of the document!


Table of Contents

MacOS

Homebrew

Development on MacOS

C/C++

Using Homebrew:

export HOMEBREW_NO_ANALYTICS=1
brew update
brew upgrade
brew info gcc
brew install gcc
brew cleanup

Alternative: go to the Apple App Store and install Xcode (Apple's compiler and development tools).
Then, in a terminal:

xcode-select --install
clang -o program program.c
clang++ -o program program.cc
g++ -std=c++11 -o program program.cpp
g++-7 -std=c++11 -o program program.cpp

Java

See https://github.com/AdoptOpenJDK/homebrew-openjdk where you can go and grab prebuilt openjdk binaries for macOS!

It’s just a case of using:

brew tap AdoptOpenJDK/openjdk
brew install <version>

Where version is:

  • adoptopenjdk-openjdk8
  • adoptopenjdk-openjdk9
  • adoptopenjdk-openjdk10
tech/macos/start.1560330669.txt.gz · Last modified: 2019/06/12 04:11 by rk4n3