使用Homebrew安装Vim时出错(检查tgetent()... configure:error:NOT FOUND!)

时间:2014-05-15 16:17:33

标签: macos vim homebrew

运行brew install vim后,我收到此错误:

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.

不确定如何解决此问题。

3 个答案:

答案 0 :(得分:1)

您需要先安装Xcode中的开发人员工具。或者手动设置你的环境,但你可能会在以后丢失其他二进制文件。所以我建议你安装Xcode。然后开发者工具。最后得到Vim;)。我甚至认为Vim默认安装了开发人员工具。

在此处获取:

https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12

答案 1 :(得分:0)

我也遇到了这个问题。运行brew doctor时,我在路径中找到ncurses5-config,这似乎让自制软件混乱。我卸载了chefdk,安装了最新的xcode,运行brew doctor以确保库已经消失,然后运行brew install vim

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
    /opt/chefdk/embedded/bin/finstyle-config
    /opt/chefdk/embedded/bin/ncurses5-config
    /opt/chefdk/embedded/bin/ncursesw5-config
    /opt/chefdk/embedded/bin/pkg-config
    /opt/chefdk/embedded/bin/xml2-config
    /opt/chefdk/embedded/bin/xslt-config

答案 2 :(得分:0)

这适用于Mac 10.11.4

brew install vim --with-tlib

您可能还想使用--with-override-system-vi标志