Versions Compared

Key

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

A. Steps to

...

create rpm development tree (if it does not exist)

1. Go to home directory of user (Example : /root)

...

C. How to build rpm package for PBS Pro 14.1.0 Pro <pbs_version> (Source cloned from github)

        Note: <pbs_version> specified at pbspro/src/pbspro.spec

 

1.    Go to pbspro directory which we have cloned (git clone https://github.com/PBSPro/pbspro)
2.    Change directory to src/pbs
                 [user@hostname pbspro]# cd src/pbs
                 [user@hostname pbs]# ls
                 autogen.sh  configure.ac  doc      LICENSE  Makefile.am      pbspro-rpmlintrc  README     src   win_configure
                 buildutils  COPYRIGHT     INSTALL  m4       PBS_License.txt  pbspro.spec       README.md  test
3.    Run autogen.sh script to generate configure script and makefile
                ./autogen.sh
                (generates configure script and makefile templates)
4.    Run ./configure
5.    Run the below command
                make dist
                make dist generates .tar.gz (pbspro-<pbs_version>.tar.gz) file in the same directory.
6.    Move the pbspro-<pbs_version>.tar.gz file to ~/rpmbuild/SOURCES
7.    Move pbspro/src/pbspro.spec file to  ~/rpmbuild/SPECS
8.    Change directory to ~/rpmbuild/SPECS
9.    Run the below command
                  rpmbuild -ba pbspro.spec         ( This command will generate below rpm packages in ~/rpmbuild/RPMS dirctory)

...

                  d) pbspro-server-<pbs_version>-0.x86_64.rpmNote: <pbs_version> specified at pbspro/src/pbspro.spec

...

D. How to build rpm package from pbspro-<pbs_version>.src.rpm (Download from http://download.opensuse.org/repositories/home:/pbsproci/) 

...

  1. After following section 'C' or 'D', change directory to ~/rpmbuild/RPMS 
  2. zypper -n install /root/rpmbuild/RPMS/x86_64/pbspro-server-*.x86_64.rpm
  3. Need to enable mom “PBS_START_MOM=1” in /etc/pbs.conf file
  4.  Start the PBSPro daemons using /etc/init.d/pbs start. 
  5. Need to validate by submitting job and verifying the state.
  6. zypper -n install python-pip sudo which net-tools 
  7.  cd test/fw
  8.  pip install -r requirements.txt .
  9.  Need to install PTL(PBS test Lab) by executing “python setup.py install”
  10.  Need to create users needed by PTL by executing "pbs_config --make-ug"
  11.  cd ../tests
  12.  pbs_benchpress -l INFOCLI2 -o ptl.txt
  13.  Once pbs_benchpress completes, you can find the PTL log in ptl.txt.
     

...

...


Site Map