gpt4 book ai didi

ubuntu - 无法使用 Snapcraft 创建快照

转载 作者:行者123 更新时间:2023-12-03 11:47:54 25 4
gpt4 key购买 nike

我正在尝试在 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 .这也没有帮助。我该如何解决这个问题。

最佳答案

关于ubuntu - 无法使用 Snapcraft 创建快照,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63613852/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com