Linux ccache 工具的安裝__Linux

來源:互聯網
上載者:User
Linux ccache 工具的安裝

Linux 下編譯FFmpeg時,會出現找不到ccache 命令的問題,本篇記錄一下自己”./FFmpeg-Android.sh: line 121: ccache: command not found”時的解決方案。 ccache下載 解壓 編譯安裝 說明 ccache 下載

ccache 連結地址:http://ccache.samba.org/download.html 解壓配置

tar -jxvf ccache-3.1.9.tar.bz2
cd ccache-3.1.9
vi configure 非root使用者需要將ac_default_prefix預設地址
“/usr/local ”改成“/home/xxxxx/usr/local”,新地址為ccache
安裝地址,root使用者可以忽略
./configure 編譯安裝

make
make install 說明

通常linux 的工具在解壓後,configure配置時會指定路徑,通常是
prefix/PREFIX, 接著要將改路徑添加到需要編譯的模組上,也即添加到
編譯指令碼中的PATH中

CCACHE=/home/xxxxxx/usr/local/bin
export PATH=$TOOLCHAIN/bin:$PATH:$CCACHE

這樣FFmpeg-Android.sh指令碼中找不到ccache 的問題就解決了。

聯繫我們

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