问题症状描述
启动weechat后,core buffer上出现如下提示
Error: unable to load plugin "/usr/lib/weechat/plugins/tcl.so": libtcl8.6.so: cannot open shared object file: No such file or directory
Error: unable to load plugin "/usr/lib/weechat/plugins/guile.so": libguile-2.0.so.22: cannot open shared object file: No such file or directory
Error: unable to load plugin "/usr/lib/weechat/plugins/aspell.so": libaspell.so.15: cannot open shared object file: No such file or directory
Error: unable to load plugin "/usr/lib/weechat/plugins/ruby.so": libruby.so.2.1: cannot open shared object file: No such file or directory
问题出现原因
A plugin is a dynamic library, written in C and compiled, which is loaded by WeeChat. Under GNU/Linux, the file has ".so" extension, ".dll" under Windows.
Plugins found are automatically loaded when WeeChat is starting, and it is possible to load or unload plugins while WeeChat is running.
[ http://weechat.org/files/doc/stable/weechat_user.en.html#plugins ]
如果不想自动加载上面出错的四个脚本语言插件,那么可以将 weechat.plugin.autoload 选项从默认的 "*" 改为 "*,!aspell,!guile,!ruby,!tcl"。也就是在weechat中执行如下命令:
/set weechat.plugin.autoload "*,!aspell,!guile,!ruby,!tcl"
此处命令只是参考,可以根据需求屏蔽不需要的插件。
2014-05-13 added
可以使用help命令查看绝大多数weechat options的description以了解如正何确设置选项。例如:
/help weechat.plugin.autoload
将给出该选项的描述信息:
14:46:50 weechat | Option "weechat.plugin.autoload":
14:46:50 weechat | description: comma separated list of plugins to load
| automatically at startup, "*" means all plugins found,
| a name beginning with "!" is a negative value to
| prevent a plugin from being loaded, names can start or
| end with "*" to match several plugins (examples: "*" or
| "*,!lua,!tcl")
14:46:50 weechat | type: string
14:46:50 weechat | values: any string
14:46:50 weechat | default value: "*"
14:46:50 weechat | current value: "*,!ruby,!tcl,!guile,!aspell"
感谢
freenode #weechat 频道的 stfn.