通过 Perl 使用 Pidgin:未定义符号:g_free
Pidgin,通用 IM 客户端允许我们与其交互使用 Perl。
我下载了 Pidgin 2.7.10 的源代码,构建了它。洋泾浜本身就可以工作。
然后我尝试使用加载 Purple 模块
perl -MPurple -e1
,但出现以下错误:
perl -MPurple -e1
Can't load '/opt/pidgin/lib/purple-2/perl//auto/Purple/Purple.so'
for module Purple:
/opt/pidgin/lib/purple-2/perl//auto/Purple/Purple.so: undefined symbol:g_free
at /home/gabor/perl5/lib/perl5/x86_64-linux-thread-multi/XSLoader.pm line 70.
at /opt/pidgin/lib/purple-2/perl//Purple.pm line 52
Running on SuSE Linux:
Linux myhost 2.6.27.19-5-default #1 SMP 2009-02-28 04:40:21 +0100 x86_64 x86_64 x86_64 GNU/Linux
有人遇到过这个问题吗?怎么解决呢?
Pidgin, the generic IM client allows us to interact with it using Perl.
I downloaded the source of Pidgin 2.7.10, built it. Pidgin itself works.
Then I tried to load the Purple module using
perl -MPurple -e1
but got the following error:
perl -MPurple -e1
Can't load '/opt/pidgin/lib/purple-2/perl//auto/Purple/Purple.so'
for module Purple:
/opt/pidgin/lib/purple-2/perl//auto/Purple/Purple.so: undefined symbol:g_free
at /home/gabor/perl5/lib/perl5/x86_64-linux-thread-multi/XSLoader.pm line 70.
at /opt/pidgin/lib/purple-2/perl//Purple.pm line 52
Running on SuSE Linux:
Linux myhost 2.6.27.19-5-default #1 SMP 2009-02-28 04:40:21 +0100 x86_64 x86_64 x86_64 GNU/Linux
Has anyone encountered this issue? How to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
抱歉回答一个老问题。昨晚也有同样的问题。结果你只需要把你的 Perl 脚本放到 ~/.purple/plugins/ 。确保它以 *.pl 结尾。重新启动后,Pidgin/Finch 将处理加载此脚本并在“插件”对话框中列出该插件。
换句话说,您不应该从命令行测试此脚本。
请参阅 http://developer.pidgin.im/doxygen/dev/html/ perl-howto.html 了解更多详细信息。
Sorry for answering an old question. Had the same problem last night. Turns out you just need to put your Perl script to ~/.purple/plugins/ . Make sure it ends with *.pl. Upon restarting, Pidgin/Finch will handle loading this script and list the plugin in the Plugins dialog box.
So in other words, you are not supposed to test this script from the command line.
See http://developer.pidgin.im/doxygen/dev/html/perl-howto.html for more details.
我建议您只安装 perl-Purple:
这可能有效,但我个人没有使用 SuSe 的经验(我自己使用 Fedora)。
I suggest you just install perl-Purple:
This may work, however I have personally had no experience with SuSe (I use Fedora, myself).