如何安裝rabbitmq-c-aafba2c665b5這個版本的rabbitmq-c

來源:互聯網
上載者:User

http://hi.baidu.com/snowhilloldman/blog/item/a26830dd76b768205882dd30.html

照理安裝一個庫這麼簡單的東東不應該寫一篇垃圾文章,只是,我的真的很痛苦,希望看官們理解!

先下載這個庫吧:(點了以後檔案名稱會自動變成rabbitmq-c-aafba2c665b5.tar.gz)
http://hg.rabbitmq.com/rabbitmq-c/archive/tip.tar.gz

這個庫的最後更新時間是2010-04-20,姑且命名其版本為:rabbitmq-c-20100420

再下載另一個庫:(點了以後檔案名稱會自動變成rabbitmq-codegen-5c1cb4cd1b52.tar.gz)
http://hg.rabbitmq.com/rabbitmq-codegen/archive/tip.tar.gz
幹嘛的?稍後說

上傳,執行:
tar -zxvf rabbitmq-c-aafba2c665b5.tar.gz
cd rabbitmq-c-aafba2c665b5
autoreconf -i #自動設定
./configure --prefix=/home/ahfu/rabbitmq-c-20100420 --disable-shared --enable-static
這一步報錯:
checking location of AMQP codegen directory... configure: error: could not find AMQP spec file at "'/home/ahfu/rabbitmq-c-aafba2c665b5/codegen/amqp-0.9.1.json'"

編譯個C的庫,居然需要python和json,你說神經不神經。
好吧:
tar -zxvf rabbitmq-codegen-5c1cb4cd1b52.tar.gz
cd rabbitmq-c-aafba2c665b5/
mkdir codegen
cp ../rabbitmq-codegen-5c1cb4cd1b52/* codegen/
建個目錄,繼續:
./configure --prefix=/home/ahfu/rabbitmq-c-20100420 --disable-shared --enable-static
make
make install
終於好了!!!

相關文章

聯繫我們

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