简体   繁体   English

用剪贴板和 xterm 编译 vim

[英]Compile vim with clipboard and xterm

I want to compile the current version of vim with:我想用以下命令编译当前版本的 vim:

+clipboard +xterm_clipboard and ruby support 

But every time I compile it the clipboard and the xterm_clipboard options aren't enabled.但是每次我编译它时, clipboardxterm_clipboard选项都没有启用。

Is there a lib needed or must I add any other options in the configuration step?是否需要 lib 或者我必须在配置步骤中添加任何其他选项?

./configure \
--enable-rubyinterp=dynamic \
--enable-cscope \
--enable-gui=auto \
--enable-gtk2-check \
--enable-gnome-check \
--with-features=huge \
--with-x 
 make && sudo make install

You can see if configure manage to find a working X lib by checking the output of (or scroll through the output of configure in your terminal):您可以通过检查输出(或在终端中滚动configure的输出)来查看configure是否能够找到工作的 X 库:

$ grep X11 src/auto/config.h
#define HAVE_X11

If configure failed then you'll see:如果configure失败,您将看到:

$ grep X11 src/auto/config.h
/* #undef HAVE_X11 */

You'll need to install the appropriate X development library like xlib and xtst for --with-x to work.您需要安装适当的 X 开发库,如xlibxtstxtst--with-x工作。

On ubuntu it should be enough to install libx11-dev and libxtst-dev .在 ubuntu 上安装libx11-devlibxtst-dev就足够了。

ubuntu18.04.4 ubuntu18.04.4

sudo apt install libx11-dev libxtst-dev libxt-dev libsm-dev libxpm-dev sudo apt 安装 libx11-dev libxtst-dev libxt-dev libsm-dev libxpm-dev

./configure --enable-python3interp=dynamic --prefix=$HOME/.local --enable-rubyinterp=dynamic --enable-gtk2-check --enable-gnome-check --with-features=huge --with-x ./configure --enable-python3interp=dynamic --prefix=$HOME/.local --enable-rubyinterp=dynamic --enable-gtk2-check --enable-gnome-check --with-features=huge --with -X

make install进行安装

./src/vim ---version | ./src/vim ---版本 | grep clip grep 剪辑

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM