linux - 构建多架构 Debian 软件包的正确方法是什么?

标签 linux build debian deb

每次我尝试构建 bluez 时,我都会收到错误消息:

dh_install: libbluetooth3 missing files (usr/lib/*/libbluetooth.so.3), aborting

查看我自己的路径,我看到当前安装的库版本位于:

/usr/lib/x86_64-linux-gnu/libbluetooth.so.3

但是构建脚本(fakeroot debian/rules binary)一直将输出放入usr/lib/libbluetooth.so.3

最佳答案

要指定正确的文件夹,您需要声明环境变量 DEB_HOST_MULTIARCH 并使用 binary-arch 目标(虽然 binary 可能就足够了文档建议 binary 同时调用 binary-archbinary-indep):

DEB_HOST_MULTIARCH=x86_64-linux-gnu debian/rules binary-arch

该值是根据 libbluetooth.so.3 的当前安装路径选择的 (/usr/lib/x86_64-linux-gnu/libbluetooth.so。 3) 如果您运行的 Debian 发行版将 64 位二进制文​​件放在其他地方,则可能会发生变化。

关于linux - 构建多架构 Debian 软件包的正确方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34711152/

相关文章:

nhibernate - 使用 Nuget 升级 NHibernate 和 NHibernate Validator

typescript - 汇总生成 typescript 错误 'Unexpected token'

linux - 在 Debian Wheezy Web 服务器上禁用文件缓存

linux - 在运行 Debian 的 beaglebone 中更改默认用户登录

linux - 使用 Perl 实现 linux 命令 'rename'

c - 什么是用于软件开发的最佳 Linux 发行版,主要是 C?

c++ - makefile文件名参数

c++ - undefined symbol : _ZL22__gthrw_pthread_cancelm error

android - build.xml 和 project_name.xml 的区别

docker - 如何在 debian wheezy docker 镜像上安装 pgrep/pkill