關於安裝及測試rabbitmq-c出現的問題

來源:互聯網
上載者:User

關於安裝及測試rabbitmq-c出現的問題         由於原先安裝好並測試了rabbitmq-c時,按https://github.com/alanxz/rabbitmq-c提供的步驟一步一步進行,最後結果能出來,出現“Delivery 1, exchange amq.direct routingkey test Content-type: text/plain”,但是一直沒有檢測到傳輸過去的“hello world”。          於是,推到重來重新再按步驟安裝,不料問題百出,原先以為時CMAKE的問題,當然這個cmake也有問題,就是我只是rm掉後,重新下載安裝,卻總是出現移到usr/bin的時候,總是出現cmake:file exists,如“ln: failed to create symbolic link `/usr/bin/ccmake': File exists”等情況,然後就不斷刪原先的安裝包,然後再重新git clone,再安裝,反反覆複,但於事無補。最後還是回到rabbitmq-c來,在“ cmake -DCMAKE_INSTALL_PREFIX=/usr/local ..cmake --build . --target install”  的時候,總是出現一個error,就是缺乏一個檔案什麼的,到“ autoreconf -i”的時候,更加出現“`configure.ac' or `configure.in' is required”,於是google了下,發現cmake -DCMAKE_INSTALL_PREFIX=/usr/local,之後再執行“make clean && make && sudo make install”,之後就問題解決了。    問題分析,估計在重新刪除再安裝的時候,原先的環境變數的東西還在,後面就每次,make的時候就make不進去,所以需要clean下。現在終於出現了:“timky@timky-Satellite-L510:~/Documents/intership/rabbitmq/rabbitmq-c-rabbitmq-c-v0.3.0$ ”後“v0.3.0$ ./examples/amqp_listen localhost 5672 amq.direct testResult 0Frame type 1, channel 1Method AMQP_BASIC_DELIVER_METHODDelivery 1, exchange amq.direct routingkey testContent-type: text/plain----00000000: 68 65 6C 6C 6F 20 77 6F : 72 6C 64                 hello world0000000B: ”

聯繫我們

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