![](/img/trans.png)
[英]Shell reads the file line by line, but after each line it says not found. What am i missing?
[英]Running cargo build after OS upgrade (on an old Rust project) says I am missing several system dependencies. Is this normal?
刚刚升级到 Ubuntu 20.04。
我已经在我的机器上安装了 build-essentials,但是当我运行以前从未见过的cargo build
时,我仍然连续遇到了几个系统依赖项。 事实上,我以前从未见过 cargo 抱怨缺少系统依赖项(我是 Rust 的新手,所以对此持保留态度)。
缺少的依赖项列表包括 cmake、x11、expat、openssl-dev、freetype2、-lsqlite3。
这是正常的并且可以预期吗? 或者我最近的操作系统安装后我的设置有问题?
您需要的依赖项取决于项目。 The package build-essential
on Debian and Ubuntu is the set of system packages you can automatically assume is available when building an OS package (that is, a standard Debian package). 它包括 C 编译器之类的东西,但不包括 libc 以外的各种项目所需的共享库。
如果您的项目需要其他包或共享库,无论是 Debian package 与否,都可以。 许多不平凡的项目需要外部依赖项,而这些通常不会由build-essential
安装,因此需要自己安装它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.