# TM api on pbspro does not work for me?

**URL:** <https://community.openpbs.org/t/tm-api-on-pbspro-does-not-work-for-me/323>\
**Category:** Users/Site Administrators\
**Created:** [October 25, 2016, 6:51pm UTC](https://community.openpbs.org/t/tm-api-on-pbspro-does-not-work-for-me/323 "2016-10-25T18:51:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)\
**Post date:** [October 26, 2016, 9:36am UTC](https://community.openpbs.org/t/tm-api-on-pbspro-does-not-work-for-me/323/2 "2016-10-26T09:36:07Z")

</div>

fedele,

We hope you have compiled OpenMPI from source as below:

```
1. tar -xvzf openmpi-XXX.tar.gz (current stable version as of now )
2. export LIBS=-ldl    
3. source /etc/pbs.conf
4. vi /opt/pbs/bin/pbs-config (chmod 755 )
	copy paste the script mkaro has suggested in this link http://community.openpbs.org/t/compile-openmpi-with-pbspro-14-1-10/159/4
5. cd openmpi-XXX
6. ./configure --prefix=/appdata/openmpi/XXX --with-tm=/opt/pbs --enable-mpi-interface-warning --enable-shared --enable-static --enable-cxx-exceptions
7. make
8. make install

```

Note:  
/appdata is a shared common applicaiton directory on the headnode and all the compute nodes  
/scratch is a shared common directory on the headnode and all the compute nodes  
green – headnode (pbs server )  
green1 and green2 – compute nodes (pbs mom)  
pbsdata - is the standard user

[pbsdata@green scratch]$ qsub -l select=2:ncpus=2:mem=10mb:mpiprocs=2 -l place=scatter – /appdata/openmpi/201/bin/mpirun /bin/hostname  
152.green  
[pbsdata@green scratch]$ cat STDIN.o152  
green1  
green2  
green2  
green1

Please let us know if you have any queries.  
pbs-plugin script: [Compile OpenMPI with PBSpro 14.1.10](http://community.openpbs.org/t/compile-openmpi-with-pbspro-14-1-10/159/4)

---

_[View the full topic](https://community.openpbs.org/t/tm-api-on-pbspro-does-not-work-for-me/323)._
