![Snapcraft - 配置 - 权限被拒绝](https://linux22.com/image/915900/Snapcraft%20-%20%E9%85%8D%E7%BD%AE%20-%20%E6%9D%83%E9%99%90%E8%A2%AB%E6%8B%92%E7%BB%9D.png)
我正在构建一个 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 - 支持的插件