简体   繁体   English

debian软件包依赖关系,如何为不同版本的ubuntu设置它?

[英]debian package dependency, how to set it for different version of ubuntu?

My problem is our debian package require some other libs, but these libs on different version of ubuntu are named differently. 我的问题是我们的debian软件包需要其他一些库,但是在不同版本的ubuntu上的这些库的命名不同。

for example, 例如,

libgnutls26 --- this can be found on ubuntu12.04, but not on ubuntu14.04 (probably libgnutls28 is used instead) . libgnutls26 ---可以在ubuntu12.04上找到,但不能在ubuntu14.04上找到(可能使用libgnutls28代替)。 (please notice that it is only an example) (请注意,这仅是示例)

Is there a way that I can include it, then the correct version on both 12.04 and 14.04 version of ubuntu can be found? 有没有办法可以包含它,然后可以在ubuntu的12.04和14.04版本上找到正确的版本?

Thanks, LJ 谢谢,LJ

Same question here! 同样的问题在这里!

The best work-around I have found is setting the dependency to the dev version ( libgnutls-dev in your case). 我发现最好的解决方法是将依赖项设置为开发版本(在您的情况下为libgnutls-dev )。 The development package depends on the compiled package and installs the proper version automatically. 开发包取决于编译的包并自动安装正确的版本。 Sloppy but it works. 马虎,但它的工作原理。

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

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