2013-06-23 44 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