Versions Compared

Key

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

...

4. mkdir            BUILD  BUILDROOT  RPMS  SOURCES  SPECS  SRPMS

 ( or )

we can use "rpmdev-setuptree" to create necessary directories.

B. Installing Dependencies

Below is the list of dependencies specified in the "pbspro.spec" file:

  • gcc
  • autoconf
  • automake
  • hwloc-devel
  • libX11-devel
  • libXt-devel
  • libedit-devel
  • libical-devel
  • ncurses-devel
  • perl
  • postgresql-devel
  • python-devel >= 2.6
  • python-devel < 3.0
  • tcl-devel
  • tk-devel
  • swig
  • expat-devel (if suse then libexpat-devel)
  • openssl-devel (if suse then libopenssl-devel)

We can install the dependencies specified in the "pbspro.spec" file using the command below:
yum-builddep pbspro.spec 
or 
yum -y install gcc autoconf automake hwloc-devel  

1. Install the prerequisite packages for building PBS Pro.

  For CentOS systems you should run the following command as root:

    yum install -y gcc make rpm-build libtool hwloc-devel \

      libX11-devel libXt-devel libedit-devel libical-devel \

      ncurses-devel perl postgresql-devel python-devel tcl-devel \

      tk-devel swig expat-devel openssl-devel libXext libXft

 

  For openSUSE systems you should run the following command as root:

    zypper install gcc make rpm-build libtool hwloc-devel \

      libX11-devel libXt-devel libedit-devel libical-devel \

      ncurses-devel perl postgresql-devel python-devel tcl-devel \

      tk-devel swig

...

libexpat-devel libopenssl-devel libXext-devel

...

\

      libXft-devel fontconfig

      

2. Install the prerequisite packages for running PBS Pro. In addition

  to the commands below, you should also install a text editor of

  your choosing (vim, emacs, gedit, etc.).

 

  For CentOS systems you should run the following command as root:

    yum install -y expat libedit postgresql-server python \

      sendmail sudo tcl tk libical

 

  For openSUSE systems you should run the following command as root:

    zypper install expat libedit postgresql-server python \

      sendmail sudo tcl tk libical1

...

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

...

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

...

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

        2. Run Change directory to ~/rpmbuild/SPECS and run the below command

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

...

E. Installing and Testing an rpm package locally on CentOS7

  1.  Change  After following section 'C' or 'D', change directory to ~/rpmbuild/RPMS
  2.  yum -y 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.  yum -y 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.

...

F. Installing and Testing an rpm package locally on openSUSE 13.2

Use the following steps to build the open source PBS Pro on your local machine (running openSUSE 13.2):

1. get pbs/pbspro

2. cd pbs/pbspro

3. zypper -n ar -f -G http://download.opensuse.org/repositories/devel:/tools/openSUSE_13.2/devel:tools.repo

4. zypper -n ref

5. zypper -n install rpmdevtools python-xml  (NOTE: without python-xml PBS compilation will fail while generating *.c from *.xml for all attr of PBS)

6. rpmdev-setuptree

7. zypper -n install $(rpmspec --buildrequires -q pbspro.spec)  (NOTE: ignore any warning)

8. cd pbs

9. ./autogen.sh

10. ./configure

11. make dist

12. cp pbspro-*.tar.gz ~/rpmbuild/SOURCES/

13. cp ../pbspro.spec ~/rpmbuild/SPECS/

14. rpmbuild -bb ../pbspro.spec   (Build is complete on these step You can find RPMs in ~/rpmbuild/RPMS/x86_64/)

The following steps are to run PTL:

...


  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

...

  1. Need to enable mom “PBS_START_MOM=1” in /etc/pbs.conf file
  2.  Start the PBSPro daemons using /etc/init.d/pbs start

...

  1. . 
  2. Need to validate by submitting job and verifying the state.
  3. zypper -n install python-pip sudo which net-tools 

...

  1.  cd test/fw

...

  1.  pip install -r requirements.txt .

...

  1.  Need to install PTL(PBS test Lab) by executing “python setup.py install”
  2.  Need to create users needed by PTL by executing "pbs_config --make-ug"

...

  1.  cd ../tests

...

  1.  pbs_benchpress -l INFOCLI2 -o ptl.txt

...

  1.  Once pbs_benchpress completes, you can find the PTL log in ptl.txt.
     

 

...


Site Map