Installation error in Ubuntu 20.04 LTS


I am trying to install openPBS on my Ubuntu 20.04 LTS system.
I typed the following commands in “openpbs” directory.

./configure -prefix=/opt/pbs

But the compilation process was halted with the error message shown below.

gcc -DHAVE_CONFIG_H -I. -I../../../src/include  -I../../../src/include    -g -O2 -MT libattr_a-attr_fn_acl.o -MD -MP -MF .deps/libattr_a-attr_fn_acl.Tpo -c -o libattr_a-attr_fn_acl.o `test -f 'attr_fn_acl.c' || echo './'`attr_fn_acl.c
In file included from /usr/local/include/assert.h:5,
                 from attr_fn_acl.c:42:
/usr/local/include/except.h:5:10: fatal error: config.h: No such file or directory
    5 | #include <config.h>  /* For HAVE_PTHREAD */
      |          ^~~~~~~~~~
compilation terminated.
make[3]: *** [Makefile:735: libattr_a-attr_fn_acl.o] Error 1
make[3]: Leaving directory '/path/to/openpbs/src/lib/Libattr'
make[2]: *** [Makefile:513: all-recursive] Error 1
make[2]: Leaving directory '/path/to/openpbs/src/lib'
make[1]: *** [Makefile:512: all-recursive] Error 1
make[1]: Leaving directory '/path/to/openpbs/src'
make: *** [Makefile:548: all-recursive] Error 1

What do I have to do to finish the compilation properly?

Remove the prefix and see. Try to build rpm and then install.

Install pre-requisites -