Skip to content

MAC Info

vasanthsumanath edited this page Feb 6, 2020 · 13 revisions

Issue with MACOS update from Mojave to Catalina

Post upgrade while executing git command was getting below error

$ git init

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Resolution

update Xcode command line tool

$ xcode-select --install

Black Screen on External Display with macOS Catalina

System Preferences > Security & Privacy > Screen Recording

Enable the Display Drivers

Below link will be of help Click Here

Command to Install Homebrew in Mac

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Steps to Install OpenJDK V11 in Mac

  • Get the tar file for Mac from here

  • untar the download

    tar -xvf openjdk-11.0.2_osx-x64_bin.tar.gz

  • Move the extract to /Library/Java/JavaVirtualMachines/

    sudo mv jdk-11.0.2.jdk/ /Library/Java/JavaVirtualMachines/

Command to Install Kafka in Mac

  • Install Java V8 as its a pre requisite for Kafka when installed using Brew as of 6th Feb 2020
_kafka: Java 1.8 is required to install this formula._
_Install AdoptOpenJDK 8 with Homebrew Cask:_
  _brew cask install homebrew/cask-versions/adoptopenjdk8_
_Error: An unsatisfied requirement failed this build._
  • Install Java V8 using brew as shown below
brew cask install homebrew/cask-versions/adoptopenjdk8
  • Install Kafka using brew
brew install kafka

Command to List All Java Version installed in Mac

/usr/libexec/java_home -V

Command to Install jq

brew install jq

More on jq