【发布时间】:2016-03-01 18:11:50
【问题描述】:
我不想从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:EDIT 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.
#
END:EDIT 1
但是我收到了同样的错误...
¿如何解决这个问题?
【问题讨论】:
-
ls "/usr/lib/libedit*" 确实返回了什么?此外,从这个线程:gossamer-threads.com/lists/openssh/dev/45870 它可能会在 /usr/lib/lib 中查找。尝试运行“bash -x ./configure bla bla”并查看它实际在哪里寻找 libedit。
-
是否安装了
libedit-develrpm 包? (rpm -qi libedit-devel);而且,您确定您使用的是 i686,而不是 x86_64?
标签: centos fedora rhel openssh file-not-found