Skip to content

Instantly share code, notes, and snippets.

@leapar
Last active October 14, 2016 15:52
Show Gist options
  • Save leapar/6627c1121377ce4fef92ad4d3bcd49c5 to your computer and use it in GitHub Desktop.
Save leapar/6627c1121377ce4fef92ad4d3bcd49c5 to your computer and use it in GitHub Desktop.
dd-agent
  • SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: c set SSL_CERT_FILE=d:\cacert.pem https://github.com/ruby-china/rubygems-mirror/wiki

  • 淘宝已经不再维护ruby镜像了,你现在应该访问ruby china来获取新的镜像信息。

    鉴于你是windows系统,配置镜像请用:gem source -a http://gems.ruby-china.org 修改项目下面gemfile:http://gems.ruby-china.org

  • install windows

  • install git

  • clone sts-agent

  • run in administrator powershell: Set-ExecutionPolicy -ExecutionPolicy Unrestricted

  • python 2.7

    • I used the 32-bit version
    • Add it to the PATH: in the Control Panel, search for 'environment'
  • install ruby 2.2.5 (32-bit) with http://rubyinstaller.org/

  • in cmd.exe:

    • c:\Ruby22\bin\gem install bundler
    • c:\Ruby22\bin\bundle install
    • c:\Ruby22\bin\rake setup_env (this doesn't work yet, might not be a problem)
  • python -m pip install -r requirements.txt

  • install py2exe from https://sourceforge.net/projects/py2exe/files/

    • make sure it's the same architecture as your python installation, so 32 bits
  • install MSVC++ 9.0 for Python (from http://aka.ms/vcpython27)

  • install pywin32 from http://sourceforge.net/projects/pywin32

  • put a copy of gohai.exe (built as described at https://github.com/DataDog/gohai) in gohai/

  • go get github.com/DataDog/gohai

  • install wix from wixtoolset.org

    • also add this to the PATH
  • create C:\Python27\redist 没用

  • 拷贝文件  - C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57  - msvcm90.dll  - msvcp90.dll

    • msvcr90.dll
  • python -m pip install pysnmp_mibs wmi pycurl pymongo psutil paramiko scandir

  • remove the dependency on 'winrandom' from setup.py

  • 下载sip 4.18

  • 进入VS2012 x64 兼容工具命令提示 %comspec% /k ""D:\Program Files (x86)\VC\vcvarsall.bat"" x86_amd64

python configure.py
nmake
nmake install
  • ImportError: No module named spyderlib.baseconfig

    https://bitbucket.org/spyder-ide/spyderlib/downloads

  • ImportError: cannot import name SIGNAL

    from PyQt4.QtCore import SIGNAL

      MAIN_WINDOW_TITLE = unicode("山村老中医", "utf-8")
      from PyQt4.QtCore import SIGNAL
  • run .\packaging\datadog-agent\win32\build.ps1    我用的是命令行python setup.py py2exe 上面的脚本更全,我的需要进行文件拷贝datadog-agent\win32\install_files下面的guidatas拷贝到dist里面

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment