2016-05-06 13 views
4

ich VIM verwenden eine Menge, und zuvor der Lage gewesen, erhalten +xterm_clipboardsupport working by using a script provided in a separate post on StackOverflow. Ich habe Ubuntu auf meinem Rechner neu installiert und seitdem von Ubuntu 14.04.4 LTS migriert (Wily) zu Ubuntu 16.04 LTS (Xenial).Ubuntu 16.04 LTS - ermöglichen kann nicht xterm_clipboard in VIM

# Get the compile-dependencies of vim 
sudo apt-get build-dep vim 
# If you haven't got mercurial, get it 
sudo apt-get install mercurial 
# Get the source 
hg clone https://vim.googlecode.com/hg/ vim_source 
# Compile it 
cd vim_source 
./configure \ 
    --enable-perlinterp=dynamic \ 
    --enable-pythoninterp=dynamic \ 
    --enable-rubyinterp=dynamic \ 
    --enable-cscope \ 
    --enable-gui=auto \ 
    --enable-gtk2-check \ 
    --enable-gnome-check \ 
    --with-features=huge \ 
    --with-x \ 
    --with-compiledby="Your Name <[email protected]>" \ 
    --with-python-config-dir=/usr/lib/python2.7/config 
make && sudo make install 

Dies ist jedoch nicht mehr funktioniert, und ich kann nicht Gebrauch von " machen, +, y auf Puffer in die Zwischenablage zu zerren. Ich etwas offensichtlich in der nicht sehen .configure Ausgang, aber vim --version zeigt immer -xterm_clipboard, wenn ich es bauen. Wie dieses Problem beheben?

Antwort

5

Sie bemerkt haben sollen, dass die Quelle nicht mehr über mercurial auf Google Code gehostet (hg) mehr, und hat auf GitHub migriert in die Fehlermeldungen gen durch das mitgelieferte Skript

Sie müssen den neuen Quellbaum verwenden, git, und einige Entwicklerbibliotheken müssen im Voraus installiert werden.

Code Listing


# Get the compile-dependencies of vim 
sudo apt-get -y build-dep vim 
# Install the "checkinstall" tool so the "make install" step is 
# wrapped and the result is a .deb file that can be removed later by 
# your package manager rather than having to hunt down every file deployed 
# by "make install", which might not be possible if it overwrites existing 
# system files. 
sudo apt-get -y install checkinstall 
# Install python dev 
sudo apt-get -y install python-dev 
# Install xorg dev 
sudo apt-get -y install xorg-dev 
# Install git 
sudo apt-get -y install git 
# Get the source 
git clone https://github.com/vim/vim.git vim_source 
# Remove ./configure cache in case we have to run this twice due to permissions 
# related issues. 
rm vim_source/src/auto/config.cache 
# Compile it 
cd vim_source 
make clean 
./configure \ 
    --enable-perlinterp=dynamic \ 
    --enable-pythoninterp=dynamic \ 
    --enable-rubyinterp=dynamic \ 
    --enable-cscope \ 
    --enable-gui=auto \ 
    --enable-gtk2-check \ 
    --enable-gnome-check \ 
    --with-features=normal \ 
    --with-x \ 
    --with-compiledby="DevNull <[email protected]/dev/null>" \ 
    --with-python-config-dir=/usr/lib/python2.7/config-$(uname -m)-linux-gnu 
# Build quickly (8 parallel jobs, hope your system doesn't get overwhelmed) 
make -j8 
# Need root to install 
sudo checkinstall 
Verwandte Themen