简体   繁体   English

在Linux上安装cpp库

[英]Installing a cpp library on linux

I'm trying to install a library (libspopc), but, when I run the make command, I get the errors: 我正在尝试安装一个库(libspopc),但是,当我运行make命令时,出现以下错误:

strip libspopc.a libspopc.so
strip: 'libspopc.a': No such file
strip: 'libspopc.so': No such file
make: *** [install] Error 

Working under the assumption that every version of the library I've tried isn't actually missing two of its files, what could cause this? 假设我尝试过的每个版本的库实际上都没有丢失两个文件,那是什么原因引起的呢? I am running it as su, as instructed, if it's relevant. 如果相关的话,我将按照su的指示运行它。

While this question is only remotely related to programming (seems more like something for superuser.com), on linux you should whenever you can use the package manager of your system. 尽管这个问题仅与编程有关(似乎更像是superuser.com),但在Linux上,只要您可以使用系统的软件包管理器,就应该这样做。 In most cases, it let's you fetch the files as binaries (thus avoiding possible compilation frustrations), keeps your system clean and is (most importantly for me) easy to remove again. 在大多数情况下,它使您可以将文件作为二进制文件来获取(从而避免可能的编译麻烦),保持系统清洁并(再次对我而言最重要)易于删除。 Oh yeah, and it helps you keep the library up to date. 哦,是的,它可以帮助您使图书馆保持最新状态。

Try looking in your package manager! 尝试寻找您的包裹管理员! If it's a fairly popular library, it's probably in your package manager's repositiories! 如果它是一个相当受欢迎的库,则可能在您的包管理器的存储库中!

At least I know it's in mine! 至少我知道它在我的里面!

$ bauerbill --aur -Ss libspopc
AUR/libspopc 0.9-1
    A simple pop3 mail client library

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM