Building PBS Professional Under Windows: PBS v. <19.4

Originally created by Hiren Vadalia.

This guide shows how to build PBS Pro version < 19.4 on Windows.

Step-by-step guide to build PBSPro (Open Source)

Prerequisites

  1. Windows machine with Internet access (below steps are written for Windows 7 SP1 64bit)
  2. One user who is member of local Administrators group on windows machine (for this guide it will be pbsbuild)

Prepare System to build PBSPro

Install MinGW and MSYS

  1. Download MinGW installer from here
  2. Click Install then click Continue then again click Continue (This should start MinGW GUI installer)
  3. Under 'Basic Setup' select 'mingw-developer-toolkit', 'mingw32-base' and 'msys-base'
  4. Under 'All Packages→MSYS' select 'msys-gcc' (class Bin)
  5. Click on Installation→Apply Changes then click Apply and wait for installation to complete then click Close then close MinGW GUI Installer

Install Curl

  1. Download curl for windows from here
  2. Extract downloaded zip
  3. Create C:\Tools directory
  4. Copy <extracted directory>\src\curl.exe to C:\Tools\
  5. Add C:\Tools to PATH using Start→Right click on Computer→Properties→Advance System Settings→Environment Variables→System Variables→Select PATH→click Edit→In 'Variable value' got to start add 'C:\Tools;' and click Ok→Ok→Ok and close System Setting window

Install Unzip

  1. Open C:\MinGW\msys\1.0\msys.bat
  2. run mingw-get.exe install msys-unzip in MSYS terminal
  3. Copy C:\MinGW\msys\1.0\bin\unzip.exe to C:\Tools\ (Make sure you have C:\Tools directory created and added to PATH see steps 3 and 5 under 'Install Curl section')
  4. Copy C:\MinGW\msys\1.0\bin\msys-1.0.dll to C:\Tools\

Install SVN

  1. Download Open Source TortoiseSVN from here
  2. Run downloaded MSI.
  3. Click Next→Next then select 'Entire feature will be installed on local hard drive' from drop down list of 'TortoiseSVN'
  4. Click Next→Install to begin installation and wait for installation to complete
  5. Click Finish

Install Perl

  1. Download Strawberry Perl from here
  2. Run downloaded MSI
  3. Click Next and accept license and click Next→Next→Install to begin installation and wait for installation to complete
  4. Uncheck ReadMe check box then click Finish
  5. Open CMD as 'Run as Administrator'
  6. run cpanm -f -n Module::Install in CMD terminal

Install CMake

  1. Download CMake from here
  2. Run downloaded MSI
  3. Click Next and accept license and click Next
  4. Select 'Add CMake to the system PATH for all users' then click Next→Next→Install to start installation and wait for installation to complete
  5. Click Finish

Install VC++ 2008 Express Edition

  1. Download VC++ 2008 Express edition from here
  2. Extract ISO and run Setup.hta from extracted directory
  3. Select 'Visual C++ 2008 Express Edition'
  4. Click Next
  5. Accept license and click Next
  6. Uncheck both checkbox (Optional) and click Next
  7. Click Install and wait for installation to complete
  8. Click Exit

Install Windows SDK 7.0

  1. Make sure there are no .Net Frameworks installed in system... if any version of .Net Framework (or any component of .Net Framework of any version) is installed, please remove it then restart machine once (This is require because Windows SDK 7.0 installer need specific .Net Framework version 4.0.30319)
  2. Download .Net Framework 4.0.30319 from here
  3. Run downloaded exe and accept license then click Install and wait for installation to complete then click Finish
    1. If you don't want to uninstall and install .Net Framework 4.0.30319 then do workaround specified at here, but this is not tested so do it at your own risk!
  4. Download Windows SDK 7.0 from here
  5. Run winsdk_web.exe and if you get any warning regarding some component cannot be installed then check installed .Net Frameworks versions and make sure you have only 4.0.30319 installed.
  6. Click Next and accept license and click Next
  7. Click Next to select which component to install from SDK
  8. Make sure you select all under 'Developer Tools' (rest all check boxes are optional, select it if you want to install that component) then Click Next
  9. Click Next to begin installation and wait for installation to complete
  10. Uncheck any checked box (Optional) and click Finish
  11. Run 'Start→All Programs→Microsoft Windows SDK v7.0→Visual Studio Registration→Windows SDK Configuration Tool' then in drop down list select v7.0 and click on 'Make Current' and click Ok to finish

  12. (Optional) Just to confirm whether Windows SDK 7.0 is installed properly or not run CMD then in run 'call "%ProgramFiles%\Microsoft SDKs\Windows\v7.0\Bin\SetEnv.cmd" /x64 /Release' in newly opened CMD and if you see below output then Windows SDK is properly set.

    Output of SetEnv.cmd
    Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.0\.
    Targeting Windows 7 x64 Release
    
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC>

Install Wix Toolset v3.11

  1. Download Wix Toolset v3.11 from here
  2. Run downloaded wix311.exe
  3. Click on Install and wait for installation to complete
  4. click Exit
  5. Add 'C:\Program Files (x86)\WiX Toolset v3.11\bin' to PATH using Start→Right click on Computer→Properties→Advance System Settings→Environment Variables→System Variables→Select PATH→click Edit→In 'Variable value' got to start add 'C:\Program Files (x86)\WiX Toolset v3.11\bin;' and click Ok→Ok→Ok and close System Setting window

Install Python2.7 (Optional)

  1. Download Python 2.7.13 from here
  2. Run downloaded MSI
  3. Click Next→Next then select 'Entire feature will be installed on local hard drive' from drop down list of 'Python'
  4. Click Next and wait for installation to complete
  5. Click Finish

Get PBSPro source

  1. Create C:\Users\pbsbuild\builds directory
  2. Download PBSPro source from https://github.com/PBSPro/pbspro/tree/master and copy pbspro directory to C:\Users\pbsbuild\builds directory

Build PBSPro

  1. Open CMD
  2. Change directory to C:\Users\pbsbuild\builds\pbspro
    1. Command: cd C:\Users\pbsbuild\builds\pbspro
  3. (Optional, but Mandatory only if your network connections are behind proxy) set HTTP_PROXY and HTTPS_PROXY environment variable
    1. Command: set HTTP_PROXY=http://<proxy_user>:<proxy_user_pass>@<proxy_ip>:<proxy_port>
    2. Command: set HTTPS_PROXY=http://<proxy_user>:<proxy_user_pass>@<proxy_ip>:<proxy_port>
  4. (Optional, but Mandatory only if you have not installed Python 2.7.13 as per mentioned under section 'Install Python 2.7.13 (Optional)') run .appveyor\build_python.bat
    1. Command: call .appveyor\build_python.bat 1>build_python.bat.out 2>&1
  5. run .appveyor\appveyor_helper.bat to compile all PBS deps
    1. Command: call .appveyor\appveyor_helper.bat
  6. setup VS2008 tools
    1. Command: call "%VS90COMNTOOLS%vsvars32.bat"
  7. Build PBSPro
    1. Command: vcbuild win_configure\pbs_windows_VS2008.sln "Release|Win32"
  8. Generate PBSPro MSI Installer
    1. Command: call .appveyor\generate_installer.bat
  9. Check win_configure\msi\wix\PBSPro.msi
    1. Expected results: PBSPro.msi should exists in win_configure\msi\wix directory



OSS Site Map