Compile OpenMPI with PBSpro 14.1.10

In addition to the pbs-config and the LDFLAGS / LD_LIBRARY_PATH above, the error about “TM support requested but not found” can still occur.

Looking in the config.log will show:

configure:6266: gcc -L/opt/pbs/lib -lpbs -lpthread -lcrypto conftest.c >&5
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status

The solution to this is to construct a symbolic link if libcrypto.so does not exist. (Thanks Alexis/Prasanna)
Check the listing first:
ls -al /usr/lib64/libcrypto*
19 May 12 13:43 /usr/lib64/libcrypto.so → libcrypto.so.1.0.1e
1440448 Jun 24 2014 /usr/lib64/libcrypto.so.0.9.8e
19 Aug 20 2016 /usr/lib64/libcrypto.so.10 → libcrypto.so.1.0.1e
2017168 May 9 2016 /usr/lib64/libcrypto.so.1.0.1e
19 May 27 2015 /usr/lib64/libcrypto.so.6 → libcrypto.so.0.9.8e

In ‘this’ case, create a symbolic link:
cd /usr/lib64
ln -s libcrypto.so.1.0.1e libcrypto.so

Then configure should work, followed by the remaining process:
./configure --with-tm=/opt/pbs
make
make install