Skip to content

Instantly share code, notes, and snippets.

@ChengLong
Last active May 22, 2024 06:50
Show Gist options
  • Save ChengLong/6208775 to your computer and use it in GitHub Desktop.
Save ChengLong/6208775 to your computer and use it in GitHub Desktop.
Install YouCompleteMe on Mac OS X

Below are the instructions for installing YouCompleteMe on Mac OS X

Prerequisites

Instructions

  1. brew install cmake
  2. cd ~/.vim/bundle
  3. git clone https://github.com/Valloric/YouCompleteMe.git
  4. mkdir YouCompleteMe/ycmbuild
  5. cd YouCompleteMe/ycmbuild
  6. cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/cpp/
  7. make ycm_core
  8. Restart Vim
  9. Enjoy
@TzeHimSung
Copy link

I had to use
6. cmake -G "Unix Makefiles" . ~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/
but otherwise this worked for me.

This works for me.

@almoorthi
Copy link

This is not working on Mac M1 11.6 (also with tabnine/YouCompleteMe). Finally below command worked.
python3 install.py --cmake-path=/opt/homebrew/bin/cmake --system-libclang --all

@gagata
Copy link

gagata commented Nov 1, 2021

This is not working on Mac M1 11.6 (also with tabnine/YouCompleteMe). Finally below command worked. python3 install.py --cmake-path=/opt/homebrew/bin/cmake --system-libclang --all

thank you for posting this! this totally makes it work on m1!

@puremourning
Copy link

This is not working on Mac M1 11.6 (also with tabnine/YouCompleteMe). Finally below command worked.
python3 install.py --cmake-path=/opt/homebrew/bin/cmake --system-libclang --all

M1 is now supported by ycm. See the official instructions in the README.

The above instructions are incorrect and outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment