1. 程式人生 > >weechat : can not be installed because plugin "perl" is not loaded

weechat : can not be installed because plugin "perl" is not loaded

想要為weechat安裝script,但是遇到問題,我安裝的是buffers.pl,提示:

13:28:12  weechat     | script: script "buffers.pl" can not be installed because plugin "perl" is not loaded

我們這麼做:

第一步我們下載對應我們本地weechat版本的官方weechat官方版本:

wget https://weechat.org/files/src/weechat-1.3.tar.gz
tar zxvf weechat-1.3.tar.gz
cd weechat-1.3
mkdir build
cd build
cmake ../ -DPREFIX=/opt/local
make

其中如果你本地沒有cmake(因文我是osx,沒有自帶cmake),則使用brew直接安裝。

之後可以看到提示:

-- Build files have been written to: /Users/andy/Downloads/weechat-1.3/build

已經在build目錄生成了,可以去這裡檢視:

/Users/andy/Downloads/weechat-1.3/build/src/plugins

所有支援的語言,都在這個目錄下。

另外我的weechat本地目錄是:/usr/local/lib/weechat/plugins

所以我們把perl.so拷貝到 weechat_local_path/plugins/ 下

cp perl.so /usr/local/lib/weechat/plugins/

之後我們退出weechat然後重新進入,然後

/plugin

之後可以看到我們的perl被支援了:

perl: Support of perl scripts

之後我們列出所有weechat的scripts:

/script

記得上面的script沒有s

然後我們可以看到一個列表,現在這裡面的所有script你都可以試著裝一下了(使用 /script install 命令),哈哈~~~