我不想从http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssh.html安装openssh
(我不想与yum一起使用软件包)
--with-libedit [= PATH]为sftp启用libedit支持
./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
但是我收到了同样的错误...
¿如何解决这个问题?
最佳答案
我试图安装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