從源碼編譯mtd-utils工具

來源:互聯網
上載者:User

The mtd-utils include mkfs.ubifs, and ubi utilities. 

在ubuntu下面編譯mtd-utils的兩種方法(相信也可以用於其它發行版下):

方法一:

  從git repository擷取原始碼,此編譯為最新動向

1. get the source code of mtd-utils

     git clone git://git.infradead.org/mtd-utils.git 

 2. cd mtd-utils

 3. make

 4. sudo make install  (需要root許可權來操作)

方法二:

  從ftp網站拿打好的原始碼包

1. wget ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.4.5.tar.bz2

2. tar -jxvf mtd-utils-1.4.5.tar.bz2

3. cd mtd-utils-1.4.5

4.  make 

5. sudo make install (需要root許可權來操作)

 

注意: 在編譯的過程中,你或許會遇到下面的問題:(In compile process, you will meet the following problem.)

 1. sys/acl.h: No such file or directory  --> sudo apt-get install libacl1-dev

 2. compr_lzo.c:29:23: error: lzo/lzo1x.h: No such file or directory  --> sudo apt-get install liblzo-dev (Maybe use liblzo2-dev replace it)

 3. uuid/uuid.h: No such file or directory --> sudo apt-get install uuid-dev

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.