接觸 automake 工具

來源:互聯網
上載者:User

 

最近在研究 C語言的單元測試架構,有CUnit、Check 和 CMockery;

而安裝 Cmockery的時候出現錯誤:automake-1.9' is missing on your system

安裝atuomake步驟如下:

wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.61.tar.gz
tar -fvx autoconf-2.61.tar.gz 
cd autoconf-2.61

./configure

sudo make

sudo make install

完成後,安裝cMockery,成功。

之前在安裝 Cunit的時候又出現,autoheader
不是有效地shell命令,安裝好automake工具後,這個錯誤也沒有了。

好奇心起,下面來看看automake到底是幹嘛的?和autoheader有啥關係喲?

GNU Automake
是一種編程工具,可以產生供make程式使用的Makefile,用來編譯程式。它是自由軟體基金會所所製作的GNU程式的其中一項,作為GNU建構系統的一部分。automake所產生的Makefile符合GNU編程標準。
automake是由Perl語言所寫的,必須和GNU autoconf一併使用。automake包含了以下命令:
aclocal
automake
aclocal是個泛用的程式,對於autoconf使用者是相當有用的。

這裡有詳細的介紹,我就不複製、粘貼了:http://www.linuxforum.net/books/automake.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.