开发者

Different library versions on Linux build and target machines

开发者 https://www.devze.com 2023-03-10 17:40 出处:网络
Currently I\'m doing development using the packet capture library libpcap on a CentOS box. After I installed the latest version, libpcap 1.1, from the source code, I found that an older version, lib

Currently I'm doing development using the packet capture library libpcap on a CentOS box.

After I installed the latest version, libpcap 1.1, from the source code, I found that an older version, libpcap 0.9.4, was also installed. Now the application I'm building uses the latest version, libpcap 1.1.

The problem I'm facing is that the embedded Linux boxes on which my application will run do not have the latest version installed. (It's a pain to install the latest version as we must compile the so开发者_如何学Pythonurce code, which itself requires a lot of dependencies to be installed.)

These embedded Linux boxes have yum configured, and the older version, libpcap 0.9.4, is available through the standard repository.

As we have a lot of embedded boxes, I think the best option is to downgrade the libpcap version from 1.1 to 0.9.4 (or somehow use the older one during the build process) on my development box so that it builds the binary with the older version which is readily available on the embedded Linux boxes.

Appreciate your comments. Thank you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号