Faw*_*es5 39 vim command-line compiling
我正在运行 Ubuntu 12.04。
我正在尝试获取一个特定的 vim 插件,它需要 vim 启用 ruby 支持(插件是 command-t)。
人们告诉我,我必须进入我的 vim 目录并运行
./configure --enable-rubyinterp
Run Code Online (Sandbox Code Playgroud)
当我这样做时,我收到以下错误:
no terminal library found
checking for tgetent()... configure: error: NOT FOUND!
You need to install a terminal library; for example ncurses.
Or specify the name of the library with --with-tlib.
Run Code Online (Sandbox Code Playgroud)
现在我已经检查并安装了 ncurses-base。
我需要做什么?
小智 57
我认为你应该安装一个ncurses-dev
库。
你可以通过运行来做到这一点 sudo apt-get install libncurses5-dev libncursesw5-dev
Jac*_*all 14
如果没有sudo权限,解决方法如下:
ncurses
从http://ftp.gnu.org/pub/gnu/ncurses/下载最新(或以任何一个)版本
运行这些 bash 命令:
mkdir ~/usr/local
cd <path_to_ncurses>
tar xzvf <ncurses>.tar.gz # change the tar command if it is not a tar.gz
cd <ncurses>
./configure --prefix=$HOME/usr/local
make
make install
cd <path_to_vim>
LDFLAGS=-L$HOME/usr/local/lib ./configure # then add any options e.g. --prefix=$HOME/usr/local
make
make install
Run Code Online (Sandbox Code Playgroud)
你去吧。人们通常没有对机器的 sudo 访问权限,但这是我的情况,该线程没有提供我需要的信息 :) 现在确实如此
归档时间: |
|
查看次数: |
52630 次 |
最近记录: |