编译vim时You need to install a terminal library; for example ncurses.解决


You need to install a terminal library; for example ncurses. - 享受技术带来的快乐 - 博客频道 - CSDN.NET  http://blog.csdn.net/jdsjlzx/article/details/12883359


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.

ncurses是一个比较老的库

解决方法:

sudo apt-get install libncurses5-dev

1.到官网下载vim-7.3.tar.bz2包

 

2.打开终端,通过命令行解压缩,输入

tar jxf vim-7.3.tar.bz2

此时会在当前目录下生成vim73文件夹

 

3.继续在终端输入

cd vim73
cd src
./configure

经过前面几步,会在/vim73/src目录下生成MakeFile文件

 

4.在/src目录下输入

sudo make
sudo make install

完成这步就完成了编译,安装

注意:在make过程中可能会碰到下面的问题:

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.

ncurses是一个比较老的库

解决方法:

sudo apt-get install libncurses5-dev

 

5.再输入

sudo apt-get install vim-gnome

此时在/src目录输入vim就可以进入了,还需要修改一下路径

 

6.将软件所在位置添加到环境变量中

PATH=$PATH:/usr/local/bin

这样打开终端输入vim直接可以进入


GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec "HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 8 天前
e83434ff Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!). Bonus points: - we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly - ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether. Validated command palette with multiple high contrast themes. See PR thread for demo. Closes #17914 8 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐