我想从http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssh.html安装openssh
(我不想使用yum的软件包)
--with-libedit[=路径]启用libedit对sftp的支持
./configure --prefix=/usr/bin/openssh \
--sysconfdir=/etc/ssh --with-md5-passwords \
--with-libedit=/usr/lib --with-pam
但我有这个错误:
...
checking for pkg-config... /usr/bin/pkg-config
checking if /usr/bin/pkg-config knows about libedit... no
checking for el_init in -ledit... no
configure: error: libedit not found
检查1:
# find /usr/lib/ -iname "libedit.*"
/usr/lib/libedit.so
/usr/lib/libedit.so.0.0.27
/usr/lib/libedit.so.0
#
初始化:编辑1
# ls -Al /usr/lib/libedit*
lrwxrwxrwx. 1 root root 21 Nov 27 08:47 /usr/lib/libedit.so -> /usr/lib/libedit.so.0
lrwxrwxrwx. 1 root root 17 Jun 13 10:12 /usr/lib/libedit.so.0 -> libedit.so.0.0.27
-rwxr-xr-x. 1 root root 159968 Aug 19 2010 /usr/lib/libedit.so.0.0.27
#
# rpm -qa | grep libedit
libedit-2.11-4.20080712cvs.1.el6.i686
#
# rpm -qi libedit-devel
package libedit-devel is not installed
#
# rpm -qi libedit
Name : libedit Relocations: (not relocatable)
Version : 2.11 Vendor: CentOS
Release : 4.20080712cvs.1.el6 Build Date: Thu 19 Aug 2010 08:40:35 AM UTC
Install Date: Sat 13 Jun 2015 10:12:01 AM UTC Build Host: c6b3.bsys.dev.centos.org
Group : System Environment/Libraries Source RPM: libedit-2.11-4.20080712cvs.1.el6.src.rpm
Size : 166800 License: BSD
Signature : RSA/8, Sun 03 Jul 2011 04:22:56 AM UTC, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem <http://bugs.centos.org>
URL : http://www.thrysoee.dk/editline/
Summary : The NetBSD Editline library
Description :
Libedit is an autotool- and libtoolized port of the NetBSD Editline library.
It provides generic line editing, history, and tokenization functions, similar
to those found in GNU Readline.
#
结束:编辑1
但我收到了同样的错误...
这怎么解决?
2条答案
按热度按时间bt1cpqcv1#
我试图安装http://thrysoee.dk/editline/(libedit-20150325-3.1.tar.gz),但是没有成功!!!
后来我安装了libedit-devel软件包,但结果类似(不工作!)
然后照顾包,我决定卸载!!!
稍后安装软件包(已卸载libedit.i686)和libedit-devel.i686
我发现了另一个错误(但libedit错误已解决),其他问题与此线程无关!
sigwle7e2#
我在CentOS 7上安装Asterisk 17时发现此问题。
只需下载并按照以下步骤解决此问题
和*