During compilation, the Termcap.h file could not find the path LICLI.A finally generated

Source: Internet
Author: User

During the compilation process, the Termcap.h file cannot find the path to view is the Linux source can not find the Termcap.h file installed all about *cap* source package also does not work today finally solved this problem, search Termcap.h found an article, as follows-------- Termcap.h Error Resolution 2010-05-06---------------------------------------------------------------------------------installation minicom2.3 17:12:55 Share:

Step 1:./configure
Result:ok
Step 2:make
Result:has A error

In file included from Port.h:39,
From minicom.c:38:
/usr/include/ncurses/termcap.h:63:error:conflicting types for ' tgetstr '
/usr/include/termcap.h:46:error:previous declaration of ' Tgetstr '
/usr/include/ncurses/termcap.h:65:error:conflicting types for ' tgetent '
/usr/include/termcap.h:43:error:previous declaration of ' tgetent '
/usr/include/ncurses/termcap.h:66:error:conflicting types for ' Tgetflag '
/usr/include/termcap.h:44:error:previous declaration of ' Tgetflag '
/usr/include/ncurses/termcap.h:67:error:conflicting types for ' tgetnum '
/usr/include/termcap.h:45:error:previous declaration of ' Tgetnum '
/usr/include/ncurses/termcap.h:68:error:conflicting types for ' tputs '
/usr/include/termcap.h:53:error:previous declaration of ' tputs '
MAKE[2]: * * * [MINICOM.O] Error 1
MAKE[2]: Leaving directory '/MNT/MINICOM-2.3/SRC '
MAKE[1]: * * * [all-recursive] Error 1
MAKE[1]: Leaving directory '/mnt/minicom-2.3 '

Resolve:
Turn off/usr/include/ncurses/termcap.hthe definition of the conflict type in line 3,65,66,67,68, and then compile it, OK
#if!defined (NCURSES_TERM_H_INCL)
ncurses_export extern (char *) tgetstr (ncurses_const char *, char * *);
up to extern ncurses_export (char *) tgoto (const char *, int, int);
ncurses_export extern (int) tgetent (char *, const char *);
ncurses_export extern (int) tgetflag (ncurses_const char *);
ncurses_export extern (int) tgetnum (ncurses_const char *);
ncurses_export extern (int) tputs (const char *, int, int (*) (int));
#endif
Change to//===================================
#if!defined (NCURSES_TERM_H_INCL)
#extern Ncurses_export (char *) tgetstr (ncurses_const char *, char * *);
#extern Ncurses_export (char *) tgoto (const char *, int, int);
#extern ncurses_export (int) tgetent (char *, const char *);
#extern ncurses_export (int) tgetflag (ncurses_const char *);
#extern ncurses_export (int) tgetnum (ncurses_const char *);
#extern ncurses_export (int) tputs (const char *, int, int (*)) (int));
#endif
//===================================
Step3:make Install
Result:ok
In this way, you get the minicom you want!

------------------------------------------------------------------------------------------This article gave me a hint,/usr/    Include/ncurses/termcap.h in the source to find this file, found that there is no ncurses this directory, then, is not the lack of ncurses library, installation test after the installation is completed after compiling through!!!! LICLI.A finally generate back to see what this library is doing?ncurses Introduction and how to use it

Ncurses not only encapsulates the underlying terminal functionality, but also provides a fairly robust working framework (framework) to produce a beautiful interface. It contains some functions for creating windows. Its sister library, Menu, panel, and form, is an extension of the curses base library. These libraries are generally issued with curses. We can build an application that contains multiple windows (multiple Windows), menus (menus), panels (panels), and forms (forms). Windows can be managed independently, for example by scrolling (scrollability) or hiding.

Menu (Menus) allows the user to create command options to facilitate the execution of commands. Forms (Forms) allow the user to create some simple data entry and display Windows. A panel (Panels) is an extension of the Ncurses window management function that can be used to overlay or accumulate windows.

You should know now what ncurses can do. You must download it before you can use it. When you install the operating system (Linux) it should already be shipped. In case your operating system has not yet installed the Ncurses library, you can download it in the following ways:

To download and compile the installation package:
You can download ncurses free of charge via ftp://ftp.gnu.org/pub/gnu/ncurses/ncurses.tar.gz.

Ftp://ftp.gnu.org/pub/gnu/ncurses

You can also use the GNU FTP directory: http://www.gnu.org/order/ftp.html to find a site that provides free download of ncurses packages. The latest released stable version is: 5.2 20001021. (The translator has already had 5.4 versions of ncurses downloaded)

The Readme and install files in the package file are the most important data for installing the Ncurses library.
This is usually done by installing ncurses:

tar zxvf  ncurses<version>.tar.gz    #解压缩并且释放   Packages
CD Ncurses<version>       #进入解压缩的目录 (note version)
./configure                           #按照你的系统环境制作安装配置文件
make                                    #编译源代码并且编译NCURSES库
su root                                  #切换到root用户环境
make install                      # Install the compiled ncurses library

./configure

sudo make && make install

To install files using RPM:
The ncurses RPM format installation package can be found in http://rpmfind.net. You can use the following command to install in root mode: (Take version 5.2 as an example)
RPM-VIH downloaded rpm files

===================================

How to troubleshoot install ncurses (ncurses-devel) and try again

Open a terminal Enter the following statement press ENTER to install.

Apt-get Install Libncurses5-dev

During compilation, the Termcap.h file could not find the path LICLI.A finally generated

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.