非root 安装ncurses

标签: none

编译安装ncurses-5.6

wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
tar zxf ncurses-5.6.tar.gz  
./configure -prefix=$HOME/screen -with-shared -without-debug  --enable-widec
make && make install

编译安装其他软件时候.

./configure --prefix=$HOME CFLAGS="-I$HOME/include -I$HOME/include/ncursesw" LDFLAGS="-L$HOME/lib -L$HOME/include/ncursesw -L$HOME/include" CPPFLAGS="-I$HOME/include -I$HOME/include/ncursesw" LDFLAGS="-static -L$HOME/include -L$HOME/include/ncursesw -L$HOME/lib"

原文1
原文2


扫描二维码,在手机上阅读!

添加新评论