红联Linux门户
Linux帮助

Ubuntu16.04(64bit)安装YouCompleteMe

发布时间:2016-05-03 10:50:24来源:OneSea作者:OneSea

1、下载源码

由于通过Vundle下载比较慢,因此可以通过《用Git从GitHub上下载源码》(http://www.linuxdiyf.com/linux/20298.html)的方法下载YouCompleteMe源码。


2、快速安装

根据YouCompleteMe的安装说明,当希望支持C语言家族的语法时,可以通过以下命名安装:

cd ~/.vim/bundle/YouCompleteMe 
./install.py --clang-completer 

安装过程如下:

onesea@ubuntu:~/.vim/bundle/YouCompleteMe$ ./install.py --clang-completer 
-- The C compiler identification is GNU 5.3.1 
-- The CXX compiler identification is GNU 5.3.1 
-- Check for working C compiler: /usr/bin/cc 
-- Check for working C compiler: /usr/bin/cc -- works 
-- Detecting C compiler ABI info 
-- Detecting C compiler ABI info - done 
-- Detecting C compile features 
-- Detecting C compile features - done 
-- Check for working CXX compiler: /usr/bin/c++ 
-- Check for working CXX compiler: /usr/bin/c++ -- works 
-- Detecting CXX compiler ABI info 
-- Detecting CXX compiler ABI info - done 
-- Detecting CXX compile features 
-- Detecting CXX compile features - done 
Your C++ compiler supports C++11, compiling in that mode. 
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable version "2.7.11+", minimum required is "2.6")  
Downloading Clang 3.8.0 
-- [download 0% complete] 
-- [download 1% complete] 
-- [download 2% complete] 
-- [download 3% complete] 
-- [download 4% complete] 
-- [download 5% complete] 
-- [download 6% complete] 
-- [download 7% complete] 
-- [download 8% complete] 
-- [download 9% complete] 
-- [download 10% complete] 
-- [download 11% complete] 
-- [download 12% complete] 
-- [download 13% complete] 
-- [download 14% complete] 
-- [download 15% complete] 
-- [download 16% complete] 
-- [download 17% complete] 
-- [download 18% complete] 
-- [download 19% complete] 
-- [download 20% complete] 
-- [download 21% complete] 
-- [download 22% complete] 
-- [download 23% complete] 
-- [download 24% complete] 
-- [download 25% complete] 
-- [download 26% complete] 
-- [download 27% complete] 
-- [download 28% complete] 
-- [download 29% complete] 
-- [download 30% complete] 
-- [download 31% complete] 
-- [download 32% complete] 
-- [download 33% complete] 
-- [download 34% complete] 
-- [download 35% complete] 
-- [download 36% complete] 
-- [download 37% complete] 
-- [download 38% complete] 
-- [download 39% complete] 
-- [download 40% complete] 
-- [download 41% complete] 
-- [download 42% complete] 
-- [download 43% complete] 
-- [download 44% complete] 
-- [download 45% complete] 
-- [download 46% complete] 
-- [download 47% complete] 
-- [download 48% complete] 
-- [download 49% complete] 
-- [download 50% complete] 
-- [download 51% complete] 
-- [download 52% complete] 
-- [download 53% complete] 
-- [download 54% complete] 
-- [download 55% complete] 
-- [download 56% complete] 
-- [download 57% complete] 
-- [download 58% complete] 
-- [download 59% complete] 
-- [download 60% complete] 
-- [download 61% complete] 
-- [download 62% complete] 
-- [download 63% complete] 
-- [download 64% complete] 
-- [download 65% complete] 
-- [download 66% complete] 
-- [download 67% complete] 
-- [download 68% complete] 
-- [download 69% complete] 
-- [download 70% complete] 
-- [download 71% complete] 
-- [download 72% complete] 
-- [download 73% complete] 
-- [download 74% complete] 
-- [download 75% complete] 
-- [download 76% complete] 
-- [download 77% complete] 
-- [download 78% complete] 
-- [download 79% complete] 
-- [download 80% complete] 
-- [download 81% complete] 
-- [download 82% complete] 
-- [download 83% complete] 
-- [download 84% complete] 
-- [download 85% complete] 
-- [download 86% complete] 
-- [download 87% complete] 
-- [download 88% complete] 
-- [download 89% complete] 
-- [download 90% complete] 
-- [download 91% complete] 
-- [download 92% complete] 
-- [download 93% complete] 
-- [download 94% complete] 
-- [download 95% complete] 
-- [download 96% complete] 
-- [download 97% complete] 
-- [download 98% complete] 
-- [download 99% complete] 
-- [download 100% complete] 
Using libclang to provide semantic completion for C/C++/ObjC 
Using external libclang: /tmp/ycm_build.lpI6e2/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04/lib/libclang.so.3.8 
-- Found PythonInterp: /usr/bin/python2.7 (found version "2.7.11")  
-- Looking for pthread.h 
-- Looking for pthread.h - found 
-- Looking for pthread_create 
-- Looking for pthread_create - not found 
-- Looking for pthread_create in pthreads 
-- Looking for pthread_create in pthreads - not found 
-- Looking for pthread_create in pthread 
-- Looking for pthread_create in pthread - found 
-- Found Threads: TRUE
-- Configuring done 
-- Generating done 
-- Build files have been written to: /tmp/ycm_build.lpI6e2 
Scanning dependencies of target BoostParts 
[  0%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/import.cpp.o 
[  0%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/numeric.cpp.o 
[  1%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/dict.cpp.o 
[  2%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/exec.cpp.o 
[  3%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/slice.cpp.o 
[  4%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/wrapper.cpp.o 
[  4%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/list.cpp.o 
[  5%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/module.cpp.o 
[  5%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/class.cpp.o 
[  7%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/pickle_support.cpp.o 
[  8%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/enum.cpp.o 
[  8%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/function.cpp.o 
[  9%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/stl_iterator.cpp.o 
[  9%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/inheritance.cpp.o 
[ 10%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/iterator.cpp.o 
[ 11%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/function_doc_signature.cpp.o 
[ 11%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object/life_support.cpp.o 
[ 13%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/type_id.cpp.o 
[ 14%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/from_python.cpp.o 
[ 14%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/registry.cpp.o 
[ 15%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/arg_to_python_base.cpp.o 
[ 16%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/converter/builtin_converters.cpp.o 
[ 16%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/tuple.cpp.o 
[ 17%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/errors.cpp.o 
[ 19%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object_protocol.cpp.o 
[ 19%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/str.cpp.o 
[ 20%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/object_operators.cpp.o 
[ 20%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/python/src/long.cpp.o 
[ 21%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/exception/src/clone_current_exception_non_intrusive.cpp.o 
[ 22%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/operations.cpp.o 
[ 22%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/unique_path.cpp.o 
[ 23%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/portability.cpp.o 
[ 25%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path.cpp.o 
[ 25%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/codecvt_error_category.cpp.o 
[ 26%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/windows_file_codecvt.cpp.o 
[ 27%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/path_traits.cpp.o 
[ 27%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/filesystem/src/utf8_codecvt_facet.cpp.o 
[ 28%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/smart_ptr/src/sp_collector.cpp.o 
[ 29%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/smart_ptr/src/sp_debug_hooks.cpp.o 
[ 29%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/posix_time/posix_time_types.cpp.o 
[ 30%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/gregorian_types.cpp.o 
[ 30%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/greg_weekday.cpp.o 
[ 32%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/greg_month.cpp.o 
[ 33%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/date_time/src/gregorian/date_generators.cpp.o 
[ 33%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/chrono/src/process_cpu_clocks.cpp.o 
[ 34%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/chrono/src/thread_clock.cpp.o 
[ 35%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/chrono/src/chrono.cpp.o 
[ 35%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/system/src/error_code.cpp.o 
[ 36%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/atomic/src/lockpool.cpp.o 
[ 38%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_pointer_oserializer.cpp.o 
[ 38%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_xml_archive.cpp.o 
[ 39%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_archive.cpp.o 
[ 39%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_woarchive.cpp.o 
[ 40%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_wiarchive.cpp.o 
[ 41%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_oserializer.cpp.o 
[ 41%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/polymorphic_oarchive.cpp.o 
[ 42%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_text_oprimitive.cpp.o 
[ 44%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_text_iprimitive.cpp.o 
[ 44%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/text_iarchive.cpp.o 
[ 45%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_oarchive.cpp.o 
[ 46%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_text_wiprimitive.cpp.o 
[ 47%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/extended_type_info_no_rtti.cpp.o 
[ 47%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_grammar.cpp.o 
[ 48%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/stl_port.cpp.o 
[ 48%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/binary_iarchive.cpp.o 
[ 50%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_pointer_iserializer.cpp.o 
[ 50%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/text_wiarchive.cpp.o 
[ 51%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_serializer_map.cpp.o 
[ 52%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/codecvt_null.cpp.o 
[ 52%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_text_woprimitive.cpp.o 
[ 53%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_iserializer.cpp.o 
[ 54%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/text_woarchive.cpp.o 
[ 54%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/void_cast.cpp.o 
[ 55%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_oarchive.cpp.o 
[ 57%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/polymorphic_iarchive.cpp.o 
[ 57%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/extended_type_info_typeid.cpp.o 
[ 58%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/archive_exception.cpp.o 
[ 59%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/binary_wiarchive.cpp.o 
[ 59%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/binary_oarchive.cpp.o 
[ 60%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/basic_iarchive.cpp.o 
[ 60%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_wgrammar.cpp.o 
[ 61%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/extended_type_info.cpp.o 
[ 63%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_iarchive.cpp.o 
[ 63%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/xml_archive_exception.cpp.o 
[ 64%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/utf8_codecvt_facet.cpp.o 
[ 65%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/binary_woarchive.cpp.o 
[ 65%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/serialization/src/text_oarchive.cpp.o 
[ 66%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_traits_defaults.cpp.o 
[ 67%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/usinstances.cpp.o 
[ 67%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/wide_posix_api.cpp.o 
[ 69%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cpp_regex_traits.cpp.o 
[ 69%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_debug.cpp.o 
[ 70%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex.cpp.o 
[ 71%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/wc_regex_traits.cpp.o 
[ 71%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/c_regex_traits.cpp.o 
[ 72%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/winstances.cpp.o 
[ 73%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/instances.cpp.o 
[ 73%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/fileiter.cpp.o 
[ 75%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/static_mutex.cpp.o 
[ 76%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/cregex.cpp.o 
[ 76%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/posix_api.cpp.o 
[ 77%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/w32_regex_traits.cpp.o 
[ 78%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/icu.cpp.o 
[ 78%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/regex/src/regex_raw_buffer.cpp.o 
[ 79%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/thread/src/future.cpp.o 
[ 79%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/thread/src/pthread/once.cpp.o 
[ 80%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/thread/src/pthread/once_atomic.cpp.o 
[ 82%] Building CXX object BoostParts/CMakeFiles/BoostParts.dir/libs/thread/src/pthread/thread.cpp.o 
[ 82%] Linking CXX static library libBoostParts.a 
[ 82%] Built target BoostParts 
Scanning dependencies of target ycm_core 
[ 83%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Utils.cpp.o 
[ 84%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Candidate.cpp.o 
[ 84%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ycm_core.cpp.o 
[ 85%] Building CXX object ycm/CMakeFiles/ycm_core.dir/Result.cpp.o 
[ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/LetterNode.cpp.o 
[ 86%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CandidateRepository.cpp.o 
[ 88%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierCompleter.cpp.o 
[ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/CustomAssert.cpp.o 
[ 89%] Building CXX object ycm/CMakeFiles/ycm_core.dir/PythonSupport.cpp.o 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:15:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:19: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_or.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_or.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_or.hpp) is deprecated") 

In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:16:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:19: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_and.hpp:18:72: note: #pragma message: NOTE: Use of this header (ice_and.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_and.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:17:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:19: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_not.hpp:17:72: note: #pragma message: NOTE: Use of this header (ice_not.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_not.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:18:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ycm_core.cpp:19: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_eq.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_eq.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_eq.hpp) is deprecated") 

[ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierUtils.cpp.o 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:15:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ReleaseGil.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/IdentifierCompleter.cpp:25: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_or.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_or.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_or.hpp) is deprecated") 

In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:16:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ReleaseGil.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/IdentifierCompleter.cpp:25: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_and.hpp:18:72: note: #pragma message: NOTE: Use of this header (ice_and.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_and.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:17:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ReleaseGil.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/IdentifierCompleter.cpp:25: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_not.hpp:17:72: note: #pragma message: NOTE: Use of this header (ice_not.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_not.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:18:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ReleaseGil.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/IdentifierCompleter.cpp:25: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_eq.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_eq.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_eq.hpp) is deprecated") 

In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:15:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_or.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_or.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_or.hpp) is deprecated") 

In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:16:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_and.hpp:18:72: note: #pragma message: NOTE: Use of this header (ice_and.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_and.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:17:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_not.hpp:17:72: note: #pragma message: NOTE: Use of this header (ice_not.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_not.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:18:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/PythonSupport.cpp:18: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_eq.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_eq.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_eq.hpp) is deprecated") 

[ 90%] Building CXX object ycm/CMakeFiles/ycm_core.dir/IdentifierDatabase.cpp.o 
[ 91%] Building CXX object ycm/CMakeFiles/ycm_core.dir/versioning.cpp.o 
[ 92%] Building CXX object ycm/CMakeFiles/ycm_core.dir/LetterNodeListMap.cpp.o 
[ 92%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangCompleter.cpp.o 
[ 94%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangUtils.cpp.o 
[ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnit.cpp.o 
[ 95%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/ClangHelpers.cpp.o 
[ 96%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompilationDatabase.cpp.o 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:15:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ReleaseGil.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/ClangCompleter.cpp:28: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_or.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_or.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_or.hpp) is deprecated") 

In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:16:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ReleaseGil.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/ClangCompleter.cpp:28: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_and.hpp:18:72: note: #pragma message: NOTE: Use of this header (ice_and.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_and.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:17:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ReleaseGil.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/ClangCompleter.cpp:28: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_not.hpp:17:72: note: #pragma message: NOTE: Use of this header (ice_not.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_not.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:18:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ReleaseGil.h:21, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/ClangCompleter.cpp:28: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_eq.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_eq.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_eq.hpp) is deprecated") 

[ 97%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Documentation.cpp.o 
[ 97%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/TranslationUnitStore.cpp.o 
[ 98%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/CompletionData.cpp.o 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:15:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/CompilationDatabase.h:26, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/CompilationDatabase.cpp:18: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_or.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_or.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_or.hpp) is deprecated") 

In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:16:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/CompilationDatabase.h:26, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/CompilationDatabase.cpp:18: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_and.hpp:18:72: note: #pragma message: NOTE: Use of this header (ice_and.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_and.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:17:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/CompilationDatabase.h:26, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/CompilationDatabase.cpp:18: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_not.hpp:17:72: note: #pragma message: NOTE: Use of this header (ice_not.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_not.hpp) is deprecated") 
 ^ 
In file included from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/ice.hpp:18:0, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/detail/def_helper.hpp:9, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python/class.hpp:29, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/python.hpp:18, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/CompilationDatabase.h:26, 
from /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/ClangCompleter/CompilationDatabase.cpp:18: 
/home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/BoostParts/boost/type_traits/detail/ice_eq.hpp:17:71: note: #pragma message: NOTE: Use of this header (ice_eq.hpp) is deprecated 
 # pragma message("NOTE: Use of this header (ice_eq.hpp) is deprecated") 

[100%] Building CXX object ycm/CMakeFiles/ycm_core.dir/ClangCompleter/Range.cpp.o 
[100%] Linking CXX shared library /home/onesea/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so 
[100%] Built target ycm_core

由上述过程可见,自动化实现了《Ubuntu14.04(64bit)安装YouCompleteMe》(http://blog.csdn.net/q1302182594/article/details/46953069)的步骤。通过上述步骤安装好YouCompleteMe之后,具体的配置方法同《Ubuntu14.04(64bit)安装YouCompleteMe》(http://blog.csdn.net/q1302182594/article/details/46953069)。


3、开启Python支持

打开vim时提示:

Ubuntu16.04(64bit)安装YouCompleteMe

查询当前vim是否开启了python支持:

Ubuntu16.04(64bit)安装YouCompleteMe

由上图可见,python和python3前面都有一个“-”号,说明当前版本vim并没有开启python支持(如果开启了,python前的符号应该是“+“)。根据参考资料的说明,需要重新编译vim。其实,已经有预编译好的且开启了python支持的vim了:

Ubuntu16.04(64bit)安装YouCompleteMe

上图的vim-python-jedi就开启了python支持,因此只需要将原来版本的vim卸载,然后安装此版本的即可。


4、更简便的安装方法

由上图可见,有vim-youcompleteme版本的vim,安装的是此版本的话,上述的麻烦都可以省去了!


本文永久更新地址:http://www.linuxdiyf.com/linux/20299.html