未找到libedit:Centos,安装openssh

时间:2015-11-27 14:06:24

标签: centos fedora rhel openssh file-not-found

我想从http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssh.html安装openssh(我不想使用yum包)

- with-libedit [= PATH]启用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
#

INI:编辑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 个答案:

答案 0 :(得分:0)

我试图安装Here's an example(libedit-20150325-3.1.tar.gz)但是没有工作!!!

后来我安装了libedit-devel包,但结果相似(不起作用!)

然后照顾包我决定卸载!!!

import com.googlecode.leptonica.android.WriteFile;

稍后安装包(卸载的libedit.i686)和libedit-devel.i686

Bitmap bitmap = WriteFile.writeBitmap(pixObject);

我发现了另一个错误(但解决了libedit错误),这是与此主题无关​​的其他问题!

#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

答案 1 :(得分:0)

我在CentOS 7上安装星号17时发现了这个问题。

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

libedit-3.0 libedit-devel-3.0

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