Lsof cross-Compilation

Source: Internet
Author: User

In Linux, lsof is a very useful tool. You need to debug the problem on the Development Board in the past two days. But there is no ready-made, so you can compile it yourself. <? XML: namespace
Prefix = o ns = "urn: Schemas-Microsoft-com: Office: office"/>

 

First download the source code:

Http://download.chinaunix.net/download/0007000/6300.shtml. I chose v4.85.

 

# Wget http://down1.chinaunix.net/distfiles/lsof_4.85.tar.bz2

# Tar vjxf lsof_4.85.tar.bz2

# Cd lsof_4.85

# Tar vxf lsof_4.85_src.tar

# Cd lsof_4.85_src

 

Lsof supports cross-platform. Before Cross-compilation, you must read the 0xconfig document, which details the configuration options and environment variables of cross-compilation. The following is my compilation script:

 

1 #! /Bin/sh
2 Export lsof_cc = "/opt/codesourcery/bin/ARM-Linux-GCC"
3 Export lsof_host = "arm-Linux"
4 Export linux_clib = "-dglibcv = 2"
5 Export lsof_include = "/opt/codesourcery/ARM-None-Linux-gnueabi/libc/usr/include"
6./configure Linux
7 Make

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.