tar zxvf ncurses-6.3.tar.gz
cd ncurses-6.3
# customize your installation path
export LIB_PATH=$HOME/.local
./configure --prefix=${LIB_PATH} --enable-widec --with-shared --with-cxx-shared
make && make install
1.在安装其他基于ncurse的软件时,指定ncurses库。
CFLAGS=-I${LIB_PATH}/include LDFLAGS=-L${LIB_PATH}/lib ./configure
make && make install
2条答案
按热度按时间s3fp2yjn1#
这取决于您的发行版:
在Debian/Ubuntu上,
sudo apt-get install libncursesw5-dev
在RedHat/Fedora/CentOS上,
sudo yum install ncurses-devel
vnzz0bqm2#
对于大多数没有root权限的用户,可以通过这种方式安装和包含ncursesw lib。