Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1.    Go to pbspro directory which you have cloned (git clone https://github.com/PBSPro/pbspro)
2.    Run the autogen.sh script to generate the configure script and Makefile.in files
                ./autogen.sh
                (generates configure script and Makefile.in templates)
3.    Run ./configure
4.    Generate the source tar that will use to build the rpm
                make dist
                make dist generates .tar.gz (pbsproopenpbs-<pbs_version>.tar.gz) file in the same directory.
5.    Move the pbsproopenpbs-<pbs_version>.tar.gz file to ~/rpmbuild/SOURCES
6.    Copy pbspro/pbspro.spec file to  ~/rpmbuild/SPECS
7.    Change directory to ~/rpmbuild/SPECS
8.    Run the below command
                  rpmbuild -ba pbspro.spec         (This command will generate the below rpm packages in ~/rpmbuild/RPMS dirctory)

                  a) pbsproopenpbs-client-<pbs_version>-0.x86_64.rpm 

                  b) pbsproopenpbs-debuginfo-<pbs_version>-0.x86_64.rpm 

                  c) pbsproopenpbs-execution-<pbs_version>-0.x86_64.rpm

                  d) pbsproopenpbs-server-<pbs_version>-0.x86_64.rpm


...

To Build the rpm Package from

...

openpbs-<pbs_version>.src.rpm:

  1. Download from http://download.opensuse.org/repositories/home:/pbsproci/

...

To use the --rebuild option:

Do an rpmbuild –rebuild pbsproopenpbs-<pbs_version>.src.rpm


To build the rpm yourself:

Install the pbsproopenpbs-<pbs_version>.src.rpm

rpm -i pbsproopenpbs-<pbs_version>.src.rpm    

This installs pbsproopenpbs-<pbs_version>.tar.gz and pbspro.spec in their respective directories under the rpmbuild dev tree.

...

rpmbuild -ba pbspro.spec               (This command generates the below rpm packages in ~/rpmbuild/RPMS dirctory)

a) pbsproopenpbs-client-<pbs_version>-0.x86_64.rpm

b) pbsproopenpbs-debuginfo-<pbs_version>-0.x86_64.rpm

c) pbsproopenpbs-execution-<pbs_version>-0.x86_64.rpm

d) pbsproopenpbs-server-<pbs_version>-0.x86_64.rpm

...

  1.  Log in as root
  2.  Change directory to ~/rpmbuild/RPMS
  3.  Install the package: yum -y install /root/rpmbuild/RPMS/x86_64/pbsproopenpbs-server-<pbs_version>.x86_64.rpm
  4.  Enable MoM via “PBS_START_MOM=1” in /etc/pbs.conf file
  5.  Start the PBS Pro daemons using /etc/init.d/pbs start
  6.  From a non-root account, make sure that PBS works by running a job
  7.  Continue as root
  8.  cd test/fw
  9.  Install PTL and dependencies: pip install -r requirements.txt .
  10.  Create user accounts and groups required by PTL:  pbs_config --make-ug
  11.  cd ../tests
  12.  Run PTL tests: pbs_benchpress -l INFOCLI2 -o ptl.txt
  13.  Once pbs_benchpress completes, you can find the PTL log in ptl.txt

...

  1.  Log in as root
  2.  Change directory to ~/rpmbuild/RPMS 
  3.  Install the package: zypper -n install /root/rpmbuild/RPMS/x86_64/pbsproopenpbs-server-<pbs_version>.x86_64.rpm
  4.  Enable MoM via “PBS_START_MOM=1” in /etc/pbs.conf file
  5.  Start the PBS Pro daemons using /etc/init.d/pbs start 
  6.  From a non-root account, make sure that PBS works by running a job
  7.  Continue as root
  8.  cd test/fw
  9.  Install PTL and dependencies: pip install -r requirements.txt .
  10.  Create user accounts and groups required by PTL: pbs_config --make-ug
  11.  cd ../tests
  12.  Run PTL tests: pbs_benchpress -l INFOCLI2 -o ptl.txt
  13.  Once pbs_benchpress completes, you can find the PTL log in ptl.txt

...