首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法使用Snapcraft创建快照

无法使用Snapcraft创建快照
EN

Stack Overflow用户
提问于 2020-08-27 18:16:18
回答 1查看 139关注 0票数 0

我正在尝试为ubuntu20.04 x64上的Alacritty创建一个快照。使用cargo build --release创建可执行文件效果很好。使用snapcraft创建快照时会显示错误消息:

代码语言:javascript
复制
note: /usr/bin/ld: cannot find Scrt1.o: No such file or directory
      /usr/bin/ld: cannot find crti.o: No such file or directory
      collect2: error: ld returned 1 exit status

error: aborting due to previous error
error: could not compile `libc`.

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed
Failed to run '/root/.cargo/bin/cargo +stable build --release' for 'allacrity-source': Exited with code 101.
Verify that the part is using the correct parameters and try again.
Run the same command again with --debug to shell into the environment if you wish to introspect this failure.

我已经安装了上述两个库,Scrt1.o和crti.o。我进一步检查了它们的位置,并编辑了我的~/.profile以包含export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/usr/lib32:/usr/libx32:$LIBRARY_PATH。这也从来没有帮助过。我怎么才能解决这个问题。

EN

回答 1

Stack Overflow用户

发布于 2020-09-02 01:49:50

页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63613852

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档