- 論壇徽章:
- 0
|
本帖最后由 EricLucien 于 2014-06-05 13:53 編輯
我想在ubuntu上的vim中配置YouCompleteMe插件。
按照網(wǎng)上的介紹http://tieba.baidu.com/p/2672605209,我已經(jīng)通過git安裝了vundle插件,并安裝好了YouComplete,同時也安裝了python-dev,clang,cmake.但是當(dāng)我進(jìn)入到~/.vim/bundle/YoucompleteMe中,執(zhí)行./install.sh --clang-completer時出現(xiàn)錯誤- lucien@Lucien-PC:~/.vim/bundle/YouCompleteMe$ ./install.sh --clang-completer
- /tmp/ycm_build.hxAUrv ~/.vim/bundle/YouCompleteMe
- -- The C compiler identification is GNU
- -- The CXX compiler identification is GNU
- -- Check for working C compiler: /usr/bin/gcc
- -- Check for working C compiler: /usr/bin/gcc -- works
- -- Detecting C compiler ABI info
- -- Detecting C compiler ABI info - 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
- Your C++ compiler supports C++11, compiling in that mode.
- CMake Error at /usr/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
- Call Stack (most recent call first):
- /usr/local/share/cmake-2.8/Modules/FindPythonLibs.cmake:110 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
- BoostParts/CMakeLists.txt:30 (find_package)
- -- Configuring incomplete, errors occurred!
復(fù)制代碼 我看到錯誤提示,想當(dāng)然的在~/.bashrc中聲明了兩個環(huán)境變量,- #Add for python
- export PYTHON_LIBRARIES="/usr/lib/python2.7"
- export PYTHON_INCLUDE_DIRS="/usr/include/python2.7"
復(fù)制代碼 發(fā)現(xiàn)這樣還是出現(xiàn)同樣的錯誤!
請教各位指點(diǎn)下,謝謝 |
|