使用 macports 配置 kerberos5 时出错

使用 macports 配置 kerberos5 时出错

尝试通过 MacPorts 安装 libmemcached 时,我遇到了以下问题:

     libmemcached @0.40 +universal
--->  Computing dependencies for libmemcached
--->  Dependencies to be installed: cyrus-sasl2 kerberos5
--->  Configuring kerberos5
Error: org.macports.configure for port kerberos5 returned: configure failure: command execution failed
Error: Failed to install kerberos5

它告诉我查看日志以了解详细信息。以下是日志文件的最后一部分:

:info:configure checking for setupterm in -lcurses... no
:info:configure checking for setupterm in -lncurses... no
:info:configure checking for tgetent... no
:info:configure configure: error: Could not find tgetent; are you missing a curses/ncurses library?
:info:configure configure: error: /bin/sh './configure' failed for appl/telnet
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_kerberos5/kerberos5/work/krb5-1.7.2/src" && ./configure --prefix=/opt/local --disable-dependency-tracking --mandir=/opt/local/share/man
:info:configure Exit code: 1
:error:configure org.macports.configure for port kerberos5 returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for kerberos5: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:error:configure Failed to install kerberos5
:debug:configure Registry error: kerberos5 not registered as installed & active.
invoked from within
"registry_active ${subport}"
invoked from within
"$workername eval registry_active \${subport}"
:notice:configure Please see the log file for port kerberos5 for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_kerberos5/kerberos5/main.log

好像说它丢失了ncurses。但看起来它在那里,因为如果我运行,port installed我会看到这些:

ncurses @5.7_0
ncurses @5.9_1 (active)
ncursesw @5.7_0

关于如何解决此错误有什么想法吗?

答案1

我在安装 subversion 时遇到了类似的错误。以下是对我有用的方法:

sudo port install kerberos5

sudo port install subversion

...对你来说就是 libmemcached

因此,对我而言,有效的方法是单独安装 kerberos5。然后,当安装 subversion (libmemcached) 时,它会找到它,并且不会发生因找不到它而导致其失败的错误。

相关内容