Updated: 22 October 2026 · Applies to: Error
Scenario:
Encountered the following error while installing TORQUE Portable Batch System (PBS) on your Ubuntu VM.
checking for lseek64... yes ./configure: line 17951: ac_fn_c_check_member: command not found checking for struct stat64.st_mode... yes checking if largefile compiles (looking at you, OSX)... checking for pthread_create in -lpthread... yes checking for xmlGetProp in -lxml2 -lz -llzma -lpthread -lm -ldl... no configure: error: TORQUE needs libxml2-devel in order to build
Here is the Solution:
You need to install libxml2-dev package using apt-get as shown below:
#sudo apt-get install libxml2-dev
Even after installing libxml2-dev still, the same error shows up. For which you need to run the configure command with --with-libxml2 option pointing to xml2-config binary as shown below:
#./configure --prefix=/usr/local/torque --with-libxml2=/usr/bin/xml2-config
How to find the xml2-config binary
After installing libxml2-dev, to find the xml2-config binary, follow the below command:
#whereis xml2-config
xml2-config: /usr/bin/xml2-config /usr/share/man/man1/xml2-config.1.gz
Installation Completed!
Facing errors, Hire our admins. Our experts will get this done in 15 mins.
TORQUE itself is an older project with relatively infrequent updates, so if this exact error message differs slightly on a newer Ubuntu release, check the specific missing dependency named in your own build output rather than assuming it is identical to this one.
TORQUE has mostly been superseded by newer schedulers such as Slurm on new clusters, so if you are setting one up from scratch rather than maintaining an existing TORQUE deployment, it is worth checking whether a newer scheduler would suit the job better.