Last active
May 5, 2017 12:15
-
-
Save ericatsydney/302264ddce8e4abcb9ea8249d93a4a72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For ubuntu 14.x, the g++ may be too old to make the cmake, we need to update that | |
sudo apt-get install g++-4.7 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 20 | |
# Install the cmake. | |
cd ~ | |
wget https://cmake.org/files/v3.8/cmake-3.8.1.tar.gz | |
tar -xf cmake-3.8.1.tar.gz | |
cd cmake-3.8.1 | |
./configure | |
make | |
export PATH=$PATH:~/cmake-3.8.1/bin | |
# Install the python | |
sudo apt-get install python-dev python3-dev | |
# Install vim-nox to fix required python2,3 issue. | |
sudo apt-get install vim-nox | |
# Update the vim version as the Ubuntu 14.x may have the old version of vim. | |
wget https://github.com/vim/vim/archive/v7.4.2367.tar.gz | |
tar -xf v7.4.2367.tar.gz | |
cd v7.4.2367 | |
make distclean | |
./configure --with-features=huge \ | |
--enable-multibyte \ | |
--enable-rubyinterp=yes \ | |
--enable-python3interp=yes \ | |
--with-python3-config-dir=/usr/lib/python3.2/config \ | |
--enable-perlinterp=yes \ | |
--enable-luainterp=yes \ | |
--enable-gui=gtk2 --enable-cscope --prefix=/usr | |
make && sudo make install | |
# Install YouCompleteMe | |
cd ~/.vim/bundle/ | |
git clone https://github.com/Valloric/YouCompleteMe.git | |
git submodule update --init --recursive | |
./install.py --tern-completer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment