找不到libedit:Centos,安装openssh

ipakzgxi  于 2022-11-07  发布在  其他
关注(0)|答案(2)|浏览(250)

我想从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

但我收到了同样的错误...
这怎么解决?

bt1cpqcv

bt1cpqcv1#

我试图安装http://thrysoee.dk/editline/(libedit-20150325-3.1.tar.gz),但是没有成功!!!
后来我安装了libedit-devel软件包,但结果类似(不工作!)
然后照顾包,我决定卸载!!!


# yum remove libedit.i686

...
Dependencies Resolved

================================================================================================================================================================================
Package                                   Arch                     Version                                      Repository                                                Size
================================================================================================================================================================================
Removing:
libedit                                   i686                     2.11-4.20080712cvs.1.el6                     @anaconda-CentOS-201410241409.i386/6.6                   163 k
Removing for dependencies:
firstboot                                 i686                     1.110.15-1.el6                               @anaconda-CentOS-201410241409.i386/6.6                   650 k
ipa-client                                i686                     3.0.0-42.el6.centos                          @anaconda-CentOS-201410241409.i386/6.6                   299 k
libedit-devel                             i686                     2.11-4.20080712cvs.1.el6                     @base                                                     40 k
ntp                                       i686                     4.2.6p5-1.el6.centos                         @anaconda-CentOS-201410241409.i386/6.6                   1.6 M
openssh-clients                           i686                     5.3p1-104.el6                                @anaconda-CentOS-201410241409.i386/6.6                   1.3 M
python-meh                                noarch                   0.12.1-3.el6                                 @anaconda-CentOS-201410241409.i386/6.6                   186 k
system-config-date                        noarch                   1.9.60-2.el6.centos                          @anaconda-CentOS-201410241409.i386/6.6                   3.6 M
system-config-date-docs                   noarch                   1.0.11-1.el6                                 @anaconda-CentOS-201410241409.i386/6.6                   1.5 M

Transaction Summary
================================================================================================================================================================================
Remove        9 Package(s)

Installed size: 9.2 M

稍后安装软件包(已卸载libedit.i686)和libedit-devel.i686


# yum install libedit.i686 libedit-devel.i686

Dependencies Resolved

================================================================================================================================================================================
Package                                     Arch                               Version                                                Repository                          Size
================================================================================================================================================================================
Installing:
libedit                                     i686                               2.11-4.20080712cvs.1.el6                               base                                73 k
libedit-devel                               i686                               2.11-4.20080712cvs.1.el6                               base                                26 k

Transaction Summary
================================================================================================================================================================================
Install       2 Package(s)

Total download size: 99 k
Installed size: 203 k
Is this ok [y/N]: y

我发现了另一个错误(但libedit错误已解决),其他问题与此线程无关!

./configure --prefix=/usr/bin/openssh \
--sysconfdir=/etc/ssh --with-md5-passwords \
--with-libedit --with-pam
...

# find /. -name "libedit.*"

/./usr/lib/libedit.so
/./usr/lib/libedit.so.0.0.27
/./usr/lib/pkgconfig/libedit.pc
/./usr/lib/libedit.so.0
/./usr/local/lib/libedit.so
/./usr/local/lib/pkgconfig/libedit.pc
/./usr/local/lib/libedit.la
/./usr/local/lib/libedit.a
/./usr/local/lib/libedit.so.0.0.53
/./usr/local/lib/libedit.so.0
/./usr/local/libedit-20150325-3.1/libedit.pc.in
/./usr/local/libedit-20150325-3.1/libedit.pc
/./usr/local/libedit-20150325-3.1/src/.libs/libedit.so
/./usr/local/libedit-20150325-3.1/src/.libs/libedit.la
/./usr/local/libedit-20150325-3.1/src/.libs/libedit.lai
/./usr/local/libedit-20150325-3.1/src/.libs/libedit.a
/./usr/local/libedit-20150325-3.1/src/.libs/libedit.so.0.0.53
/./usr/local/libedit-20150325-3.1/src/.libs/libedit.so.0
/./usr/local/libedit-20150325-3.1/src/libedit.la
sigwle7e

sigwle7e2#

我在CentOS 7上安装Asterisk 17时发现此问题。

只需下载并按照以下步骤解决此问题
*

1. yum remove libedit.
2. yum localinstall libedit-3.0-12.20121213cvs.el7.x86_64.rpm
3. yum localinstall libedit-devel-3.0-12.20121213cvs.el7.x86_64.rpm

相关问题