2013-06-23 43 views
3

我試圖與PIP找不到滿足要求NewRelic的-插件代理

https://github.com/MeetMe/newrelic-plugin-agent描述安裝的MeetMe newrelic-plugin-agent任何下載,但是,我有這樣的錯誤消息:

#pip install newrelic-plugin-agent 

Downloading/unpacking newrelic-plugin-agent 
    Real name of requirement newrelic-plugin-agent is newrelic_plugin_agent 
    Could not find any downloads that satisfy the requirement newrelic-plugin-agent 
No distributions at all found for newrelic-plugin-agent 

日誌是:

------------------------------------------------------------ 
/usr/local/bin/pip run on Sun Jun 23 12:21:48 2013 
Downloading/unpacking newrelic-plugin-agent 

    Getting page https://pypi.python.org/simple/newrelic-plugin-agent/ 
    Could not fetch URL https://pypi.python.org/simple/newrelic-plugin-agent/: HTTP Error 404: Not Found (newrelic_plugin_agent does not have any  releases) 
    Will skip URL https://pypi.python.org/simple/newrelic-plugin-agent/ when looking for download links for newrelic-plugin-agent 
    Getting page https://pypi.python.org/simple/ 
    Real name of requirement newrelic-plugin-agent is newrelic_plugin_agent 

    URLs to search for versions for newrelic-plugin-agent: 
    * https://pypi.python.org/simple/newrelic_plugin_agent/ 
    Getting page https://pypi.python.org/simple/newrelic_plugin_agent/ 
    Could not fetch URL https://pypi.python.org/simple/newrelic_plugin_agent/: HTTP Error 404: Not Found (newrelic_plugin_agent does not have any  releases) 
    Will skip URL https://pypi.python.org/simple/newrelic_plugin_agent/ when looking for download links for newrelic-plugin-agent 
    Could not find any downloads that satisfy the requirement newrelic-plugin-agent 

感謝您的幫助。

回答

6

今天在Ubuntu 12.04上安裝Plugin Agent後,我增強了MeetMe提供的指南。 請嘗試以下步驟:

  1. 安裝PIP:

    $ sudo apt-get install python-pip python-dev build-essential

    $ sudo pip install --upgrade pip

    $ sudo pip install --upgrade virtualenv

  2. 對於某些插件可能有額外的安裝,因此,請檢查插件說明。 [MongoDB的插件,例如需求蒙戈蟒蛇驅動程序]

  3. 複製配置文件示例/etc/newrelic/newrelic_plugin_agent.cfg並在該文件編輯配置來啓用該插件並設置New Relic的許可證密鑰:

    $ sudo chown newrelic:newrelic /var/run/newrelic

    :NewRelic的文件夾,用戶NewRelic的的

    $ sudo cp /opt/newrelic_plugin_agent/etc/newrelic/newrelic_plugin_agent.cfg /etc/newrelic/newrelic_plugin_agent.cfg

  4. 更改所有權0

    $ sudo chown newrelic:newrelic /var/log/newrelic

  5. 運行代理:

    $ sudo newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg

  6. 如果進程不熬夜嘗試運行它作爲前臺進程,並檢查了輸出:

    $ sudo newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg -f

+1

你是對的。問題是PIP不是最新的。謝謝 ! –

+2

python似乎很可悲,因爲沒有一個版本相互兼容,項目從未提及它們的工作版本...... – Kevin

+0

只需更新一次,1.3.0的軟件包名稱現在已更改爲newrelic-plugin-agent ,而不是newrelic_plugin_agent – gregavola