如何在 Cygwin 中编译 sendxmpp perl 脚本
我一直在使用 telnet 向我的 Jabberd2 服务器发出测试命令。这是一个笨重的方法,所以我下载了我的 Cygwin 版本中包含的 sendxmpp 包。当我发出命令 sendxmpp -h
时,出现以下错误(减去 @INC 路径转储): can't located Authen/SASL.pm in @INC BEGIN failed--compilation aborted在 /usr/bin/sendxmpp 第 21 行。
我认为问题与 ldap 相关,但是我已经安装了所有可用的 perl 和 ldap 模块。
- 有谁知道如何修复这个错误?
- 是否需要额外的配置步骤才能使 ldap 正常工作 在 Cygwin 环境中使用 perl?
- 有没有更好的方法从 命令行?
I have been using telnet to issue test commands to my Jabberd2 server. It is a clunky method, so I downloaded the sendxmpp package included with my build of Cygwin. When I issue the command sendxmpp -h
I get the following error(minus the @INC path dump): can't locate Authen/SASL.pm in @INC BEGIN failed--compilation aborted at /usr/bin/sendxmpp line 21.
I think the problem is ldap related, however I have installed all of the perl and ldap modules available.
- Does anyone know how to fix this error?
- Are there additional configuration steps needed to get ldap working
with perl in the Cygwin environment? - Is there a better way to issue xmpp commands to Jabberd from the
command line?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您缺少 Authen::SASL 模块。如果它不是 sendxmpp 包的一部分,请尝试使用
cpan -i Authen::SASL
安装它。如果它可用,请确保 sendxmpp(很可能是一个 perl 脚本)通过修改 inc/lib 目录找到它。如果Authen::SASL
应该在系统范围内安装并可用,请尝试执行perl -MAuthen::SASL
。如果这触发了错误,perl 就找不到它。如果它只是“挂起”在那里(等待输入),perl 确实找到了该模块,并且 sendxmpp 应该可以工作。Looks like you're missing the Authen::SASL module. If it's not part of the sendxmpp package, try installing it with
cpan -i Authen::SASL
. If it IS available, make sure sendxmpp (which may very well be a perl script) finds it, by modifying the inc/lib directory. IfAuthen::SASL
is supposed to be installed and available systemwide, try executingperl -MAuthen::SASL
. If that triggers an error, perl can't find it. If it just "hangs" there (waiting for input), perl did find the module, and sendxmpp should work.