rhel 6.3 lamp环境配置 ncurses 出错 及解决 

出错信息  

make[1]: Entering directory `/lamp/ncurses-5.6/misc'
DESTDIR= \
        prefix=/usr \
        exec_prefix=/usr \
        bindir=/usr/bin \
        top_srcdir=.. \
        srcdir=. \
        datadir=/usr/share \
        ticdir=/usr/share/terminfo \
        source=terminfo.tmp \
        THIS_CC="gcc" \
        THAT_CC="gcc" \
        /bin/sh ./run_tic.sh
** Building terminfo database, please wait...
Running tic to install /usr/share/terminfo ...

        You may see messages regarding extended capabilities, e.g., AX.
        These are extended terminal capabilities which are compiled
        using
                tic -x
        If you have ncurses 4.2 applications, you should read the INSTALL
        document, and install the terminfo without the -x option.

tic: symbol lookup error: tic: undefined symbol: _nc_check_termtype2
? tic could not build /usr/share/terminfo
make[1]: *** [install.data] Error 1
make[1]: Leaving directory `/lamp/ncurses-5.6/misc'
make: *** [install] Error 2

 

解决方法 

之前用的是ncurses-5.6。下载个新版本,如ncurses 5.9就可以解决。安装方法可以完全按照文档的选项。

./configure --with-shared --without-debug --without-ada --enable-overwrite