2014-05-15 50 views
1

運行brew install vim後,我得到這個錯誤:錯誤與家釀(檢查tgetent的()...配置:錯誤!未找到)安裝的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. 

不知道如何去解決這個。

+0

你嘗試過什麼到目前爲止,並沒有遇到什麼具體問題?也可能脫離SO的主題?不知道... –

+3

它經常值得嘗試「brew doctor」 –

回答

1

您需要安裝Xcode之前的開發人員工具。或者手動設置你的env,但你可能會在稍後丟失其他二進制文件。所以我建議你安裝Xcode。然後是開發人員工具。最後得到Vim;)。我甚至認爲Vim默認安裝了開發工具。

從這裏下載:

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

+0

我重新安裝了Xcode並下載了命令行工具,但是當我運行brew install vim時,我仍然收到相同的錯誤 – garrettqmartin8

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 
0

這爲我工作在Mac 10.11.4

brew install vim --with-tlib 

您可能還需要使用--with-override-system-vi標誌以及