Skip to content

Full installation on CentOS

Ben Jackson edited this page Jun 10, 2017 · 6 revisions

Overview

This page gives some unofficial indication of how to get a full YCM installation on CentOS in terms of installation of dependencies. They are provided on a "best efforts" basis, so your mileage may vary, as they say.

Instructions

CentOS 7 Installation

These instructions come in the form of a gist containing scripts that were used to provision a vagrant VM on CentOS 7.

CentOS 6 Installation

These instructions are much more vague, but include useful references.

  • Update your installation
yum update (to centos 6.9)
   yum install centos-release-scl
   yum install devtoolset-6
   source /opt/rh/devtoolset-6/enable
   yum groupinstall "Development tools"
  • Install cmake
  yum install cmake
  yum install python33 python33-devel
  source /opt/rh/python33/enable
  • Install EPEL repository
yum install epel-release
  • Install golang, node, java, maven
  yum groupinstall "Java Platform"
  yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel
  yum install golang
  yum install nodejs
  yum install maven30
  source /opt/rh/maven30/enable
   yum install mono-core mono-devel
  curl https://sh.rustup.rs -sSf | sh
  source ~/.profile
  • Build LLVM from source (yay): http://llvm.org/docs/GettingStarted.html#git-mirror
    • sync at least: llvm (into llvm/). clang (into llvm/tools/clang/)
    • check out the latest released version tag
    • note: this takes forever - i would recommend using github.com/llvm-mirrorinstead (or just grab a source tarball)
    yum install cmake3
    cd llvm
    mkdir build
    cd build
    cmake -G "Unix Makefiles" \
       -DCMAKE_BUILD_TYPE=Release \
       -DCMAKE_INSTALL_PREFIX=`pwd`/../root ../
    make -j 8 ;# wait another lifetime
    make install
  • Now, when building YCM, use the following command (adjust paths for your environment):
EXTRA_CMAKE_ARGS="-DPATH_TO_LLVM_ROOT=$HOME/llvm/root" ./install.py --all --system-libclang