Snapcraft - 配置 - 权限被拒绝

Snapcraft - 配置 - 权限被拒绝

我正在构建一个 snap,但是当我构建包时,snapcraft 告诉我:

Failed to run './configure --prefix=' for 'synchrorep': Exited with code 126.

当我在本地启动 ./configure 时,一切正常。

这是我的 snap.yaml 文件:

name: synchrorep
version: "v1.5.5"
summary: Synchronize folders
description: |
  Synchorep is an opensource software to synchronize two directories, that means reporting all modifications of one to the other and vice versa. At the end of synchronization, both directories will be strictly the same. This is useful mainly for nomads who work with a laptop or usb key but may interest also users who want to gain time with the use of differential copy.
base: core18
confinement: classic
parts:
  synchrorep:
    plugin: autotools
    source: https://github.com/sebk69/Synchrorep.git
    build-packages:
      - g++
      - make
      - libgtk2.0-dev
      - libsqlite3-dev
      - libnautilus-extension-dev
apps:
  synchrorep:
    command: "synchrorep --config"
    enter code here

有人可以帮忙吗?

答案1

我刚刚在 Github 上查看了该项目。它是一个make项目,而不是autotools一个。因此设置:

...
parts:
  synchrorep:
    plugin: make
...

检查此参考中每个插件的使用情况:Snapcraft - 支持的插件

相关内容