linux非root用户安装ncurses-devel依赖,解决configure: error: No curses library functions found
Posted wuxun1997
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux非root用户安装ncurses-devel依赖,解决configure: error: No curses library functions found相关的知识,希望对你有一定的参考价值。
很明显,如果我们通过yum或rpm下载安装,始终无法绕开root用户,除非我们不用yum或rpm。是的,我们直接下载源码包,到ftp.gnu.org/pub/gnu/ncurses/我们可以下到最新的源码包ncurses-6.1.tar.gz,通过rz上传至非root用户wlf的soft目录下,回到根目录,我们把源码包解压:
$ tar xzvf soft/ncurses-6.1.tar.gz
进入解压后目录,执行软件配置:
$ cd ncurses-6.1 $ ./configure --prefix=/home/wlf/ncurses
接着进行编译:
$ make
最后安装:
$ make install
看到界面最后输出:
installing ./cursesapp.h in /home/wlf/ncurses/include/ncurses installing ./cursesf.h in /home/wlf/ncurses/include/ncurses installing ./cursesm.h in /home/wlf/ncurses/include/ncurses installing ./cursesp.h in /home/wlf/ncurses/include/ncurses installing ./cursesw.h in /home/wlf/ncurses/include/ncurses installing ./cursslk.h in /home/wlf/ncurses/include/ncurses installing etip.h in /home/wlf/ncurses/include/ncurses make[1]: Leaving directory `/home/wlf/ncurses-6.1/c++‘
说明ncurses-devel依赖就装好了。如果我们是在安装erlang前没有装好ncurses-devel依赖,执行./configure会报如下错误:
configure: error: No curses library functions found configure: error: /home/wlf/otp_src_21.3/erts/configure failed for erts
那么现在我们先安装好ncurses-devel了,在配置erlang时要注意别忘了指定它的源码目录:
$ ./configure --prefix=/home/wlf/erlang --with-ncurses=/home/wlf/ncurses-6.1
同理,缺少openssl执行上面的流程,最后./configure加上--with-openssl即可。
以上是关于linux非root用户安装ncurses-devel依赖,解决configure: error: No curses library functions found的主要内容,如果未能解决你的问题,请参考以下文章