ubuntu - 无法使用 Snapcraft 创建快照
问题描述
我正在尝试在 ubuntu 20.04 x64 上为 Alacritty 创建快照。创建一个可以cargo build --release
正常工作的可执行文件。使用创建快照snapcraft
会给出错误消息:
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
. 这也没有帮助。我该如何解决这个问题。
解决方案
推荐阅读
- mysql - 有没有办法在 Google Cloud SQL 中模拟 MySQL 数据库超时?
- java - Spring Boot 中 Repository 的默认“findById”函数的运行时是什么?
- python - 启动 shell 时使用 python-dotenv 在 django 应用程序中运行 .env 文件
- gcc - gcc/g++ 中各种优化级别之间到底有什么区别?
- r - 如何制作一个矩阵,每行只有两个数值,其他地方有 NA?
- hibernate - Spring Boot 2 应用程序上下文 xml 休眠属性
- python - 我是否必须为每个请求验证 JWT 令牌?
- winapi - MFC:在静态控件上更改字体大小不起作用?
- react-native - 使用 expo 显示带有本机反应的离线 pdf
- python - Googlemaps 海拔 API 在传递参数时出错