Open Terminal using Spotlight search by pressing  <command+space>.
Type terminal and hit  
Enter key.

  • Now, run
    ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” < /dev/null 2> /dev/null
  • Install ccls using brew
    brew install ccls

ccls is ready to use now!