Download RubyInstaller and install it. You have to choice the x64 package. I strongly recommend you to choice Ruby 2.3.1.
Ruby 2.3.1 has a problem about the SSL certification of RubyGems.
You have to install a certficate file into lib/ruby/2.3.0/rubygems/ssl_certs
subdirectory of your Ruby installation as GlobalSignRootCA.pem
.
You have to also download DevKit and install it from same page.
You have to choice mingw64-64 package.
The installation path should be C:\DevKit
.
After installation, you have to set PATH
environment variable to bin
and mingw\bin
subdirectroes of your DevKit installtion.
You have to run this command:
C:\> cd \DevKit\mingw\bin
C:\DevKit\mingw\bin> copy bsdtar.exe tar.exe
Download Git for Windows and install it.
Set your email and name to git config.
C:\> git config --global user.email "[email protected]"
C:\> git config --global user.name "Your Name"
Download MSYS2 and install it.
You hove to choice x86_64 package.
Set PATH
to C:\msys64\usr\bin
.
And, you also have to set SSL_CERT_FILE
environment variable to the path of cert.pem
included in MSYS2 package.
C:\> set SSL_CERT_FILE=C:\msys64\usr\ssl\cert.pem
After installtion of MSYS2, do as below:
C:\> pacman -S patch
And answer Y
when you are asked to install.
gem install bundler
There is no mention about this in the document of Omnibus, but WiX Toolset is required by Omnibus when creating MSI.
Download WiX Toolset and install it. If you use Windows Server 2012 R2, use version 3.10. 3.11 doesn't work on Window Server 2012 by .NET version mismatch.
It seems that the installer does not set PATH
environment variable.
Therefore, you have to set PATH
to %WIX%\bin
.
There is no mention about this in the document of Omnibus, but SDK tools are required by Omnibus when creating MSI.
Download Windows SDK and install it.
The installer does not set PATH
environment variable.
Therefore, you have to set PATH
to C:\Program Files (x86)\Windows Kits\10\bin\x64
First, get omnibus-td-agent GitHub.
Then, do installation as written in README.md
of omnibus-td-agent.
The build process is a little difference from README.me
.
-
Download gems as below:
C:\[your work dir]> bundle exec ruby bin\gem_downloader core_gems.rb C:\[your work dir]> bundle exec ruby bin\gem_downloader plugin_gems.rb
-
You don't have to create cache directory of omnibus on Windows. It'll be automatically made by Omnibus at
C:\omnibus-ruby
.But you have to create install directory as a symbolic link as an administrator.
C:\> mkdir C:\DevKit\opt C:\> mklink /D \opt C:\DevKit\opt
-
Build
Do as below:
C:\[your work dir]> bundle exec ruby bin\omnibus build td-agent3 -o windows_arch:x64