在linux上安装cpp库
我正在尝试安装一个库(libspopc),但是,当我运行 make 命令时,我收到错误:
strip libspopc.a libspopc.so
strip: 'libspopc.a': No such file
strip: 'libspopc.so': No such file
make: *** [install] Error
在我尝试过的每个版本的库实际上都没有丢失两个文件的假设下工作,什么可能导致这种情况?如果相关的话,我将按照指示以 su 的方式运行它。
I'm trying to install a library (libspopc), but, when I run the make command, I get the errors:
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然这个问题只是与编程相关(看起来更像是 superuser.com 的问题),但在 Linux 上,只要您可以使用系统的包管理器,就应该问这个问题。在大多数情况下,它可以让您以二进制文件的形式获取文件(从而避免可能的编译失败),保持系统干净并且(对我来说最重要的是)可以轻松再次删除。哦,是的,它可以帮助您使库保持最新状态。
尝试查看您的包管理器!如果它是一个相当流行的库,它可能位于您的包管理器的存储库中!
至少我知道它是我的!
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. 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!