Well, it's not encouraging that Joshua's message has gotten no reply for two months, but I am experiencing the same behavior on RHEL6.4 and would really like to figure out what the issue is. I see all of the messages Joshua posted when first starting Vim after installing YouCompleteMe with Vundle and then following the build instructions in the readme. The messages appear sequentially when first starting Vim each time you hit enter and after all of the messages shown Vim starts without YouCompleteMe.
I'll just say at the outset that I have installed YouCompleteMe properly in OS X (unfortunately, I have to use RHEL at work).
Here is what I tried to compile YCM:
* Download Python 2.7.6 source, compile, and install locally with stow (in ~/root; I also have added ~/root/bin to PATH and ~/root/lib to LD_LIBRARY_PATH):
* Download Vim 7.4 source, compile, and install locally with stow linked against the local Python:
wget ftp://ftp.vim.org/pub/vim/unix/vim-7.4.tar.bz2
tar xf vim*
cd vim*
./configure --enable-pythoninterp --with-python-config-dir=$HOME/root/lib/python2.7/config --prefix=$HOME/root --with-features=huge --enable-rubyinterp
make
make install prefix=$HOME/root/stow/vim74
cd $HOME/root/stow
stow vim74 * Downloaded the latest version of CMake (cmake-2.8.12.2.tar.gz) from
http://www.cmake.org/cmake/resources/software.html to ~/src/cmake, unzipped it, and ran:
(I tried to install CMake locally with stow but I couldn't work out what paths to adjust for it to find its Modules directory).
* Downloaded the latest version of LLVM (3.4.1) for Fedora (Clang for x86_64 Fedora 20) to ~/src/llvm and unzipped
* Download YouCompleteMe with Vundle by adding Plugin 'Valloric/YouCompleteMe' to .vimrc and running :PluginInstall in Vim
* From a temporary directory, I ran
~/src/cmake/cmake-2.8.12.2/bin/cmake -G "Unix Makefiles" -fPIC -DPATH_TO_LLVM_ROOT=~/src/llvm/clang+llvm-3.4.1-x86_64-fedora20 -DPYTHON_LIBRARY=~/root/lib/libpython2.7.so -DPYTHON_INCLUDE_DIRS=~/root/include/python2.7/ . ~/.vim/bundle/YouCompleteMe/cpp
which ran with no problem.
* Then I ran
* Finally, I started Vim and saw the messages quoted by Joshua.
I tried a few variations on the CMake command as well like using "-DUSE_SYSTEM_LIBCLANG=ON" instead of pointing to the LLVM directory I downloaded (system clang is 3.4) and not using the "-fPIC" flag.
Any idea what could be going wrong here? From the error messages it's hard to tell what needs to be adjusted.
Here are some links that seem relevant. I haven't tried using Vincent Liu's modified version of YCM because I'd like to understand what the issue is and how to address it so that I can keep using the most recent version of YouCompleteMe.
https://github.com/Valloric/YouCompleteMe/issues/131http://blog.belgoat.com/?p=30http://blog.vinceliu.com/2013/02/getting-youcompleteme-to-work-in-rhel-6.htmlhttps://bitbucket.org/vincentliu/rhel6-vim-youcompleteme/commits/558f8bd955525330f89d59e236ebeec4f4c0799e