为 geany 1.23.21 安装 pairtaghighlighter 的替代方法

为 geany 1.23.21 安装 pairtaghighlighter 的替代方法

我证明按照这篇文章的说明安装此插件:Ubuntu 14.04 上 Geany 编辑器的 HTML 对标签突出显示替代方案

但是,当我写

sed -i 's/1.24/1.23/' wscript

它告诉我:

fatal: destination path 'geany-plugins' already exists and is not an empty directory.

我能做些什么?

./waf configure --enable-plugins=pairtaghighlighter

在我看来是这样的:

Setting top to                           : /tmp/geany-plugins 
Setting out to                           : /tmp/geany-plugins/_build_ 
Checking for waf version in 1.6.1-1.7.0  : ok 
Checking for 'gcc' (c compiler)          : /usr/bin/gcc 
Checking for program pkg-config          : /usr/bin/pkg-config 
Checking for 'gtk+-2.0' >= 2.16.0        : not found 
The configuration failed
(complete log in /tmp/geany-plugins/_build_/config.log)

答案1

  1. 這與沒有任何關係sed -i 's/1.24/1.23/' wscript

    这是来自 Git 的错误消息。您git clone https://github.com/geany/geany-plugins.git多次启动该命令。然后 Git 发出抱怨。

    例子:

    $ git clone https://github.com/geany/geany-plugins.git
    
    Cloning into 'geany-plugins'...
    remote: Counting objects: 15302, done.
    remote: Compressing objects: 100% (15/15), done.
    remote: Total 15302 (delta 1), reused 0 (delta 0), pack-reused 15287
    Receiving objects: 100% (15302/15302), 14.59 MiB | 1.17 MiB/s, done.
    Resolving deltas: 100% (8708/8708), done.
    Checking connectivity... done.
    
    $ git clone https://github.com/geany/geany-plugins.git
    
    fatal: destination path 'geany-plugins' already exists and is not an empty directory.
    
  2. 安装gtk2开发库:

    sudo apt-get install libgtk2.0-dev
    

    然后再次:

    ./waf configure --enable-plugins=pairtaghighlighter
    

相关内容