向大佬们请教ncurses终端库问题
Tofloor
poster avatar
Fredoong
deepin
2020-04-07 00:02
Author

今天编译新版vim,configure时发现缺少terminal library,输出如下:
  1. checking for tgetent in -ltinfo... no
  2. checking for tgetent in -lncurses... no
  3. checking for tgetent in -ltermlib... no
  4. checking for tgetent in -ltermcap... no
  5. checking for tgetent in -lcurses... no
  6. no terminal library found
  7. checking for tgetent()... configure: error: NOT FOUND!
  8.       You need to install a terminal library; for example ncurses.
  9.       Or specify the name of the library with --with-tlib.
Copy the Code
上面提议安装ncurses,我查了一下Deepin官方软件库,发现我已经安装了如下软件和库:
  1. libncurses5/lion,now 6.0+20161126-1+deb9u2 amd64 [已安装]
  2.   shared libraries for terminal handling

  3. libncursesw5/lion,now 6.0+20161126-1+deb9u2 amd64 [已安装]
  4.   shared libraries for terminal handling (wide character support)

  5. ncurses-base/lion,lion,now 6.0+20161126-1+deb9u2 all [已安装]
  6.   basic terminal type definitions

  7. ncurses-bin/lion,now 6.0+20161126-1+deb9u2 amd64 [已安装]
  8.   terminal-related programs and man pages
Copy the Code

想请问一下大佬们,上面这些ncurses库不可以吗?必须安装libncurses5-dev这个开发者库吗??


Reply Favorite View the author
All Replies
avatar
Fredoong
deepin
2020-04-08 22:56
#1
这个问题就没有大佬能解答一下我的疑惑吗?
Reply View the author
avatar
走钢丝
deepin
2020-04-08 23:08
#2
这有啥好解释的,猜都能猜到。
-dev 结尾的包含开发文件,你编译东西就是开发阶段,当然要用到它了。
其他的是二进制库、可执行文件、配置文件和数据文件。缺少头文件和导入库。
Reply View the author
avatar
jzc
deepin
2020-04-08 23:10
#3
编译要当然要安装开发库,你已经安装的是 libncurses5 运行库。 例如 Qt 程序 运行库 是 libqt5**** ,开发库是 ****-dev 。开发库包含必要的头文件,在编译时会用到
Reply View the author
avatar
Fredoong
deepin
2020-04-08 23:15
#4
https://bbs.deepin.org/post/190802
这有啥好解释的,猜都能猜到。
-dev 结尾的包含开发文件,你编译东西就是开发阶段,当然要用到它了。
其他 ...

明白了,谢谢。
Reply View the author