[PBS]: configure: error: TORQUE needs libxml2-devel in order to build

Updated on January 6, 2021

I have the following error when installing TORQUE Portable Batch System (PBS) on my 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

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

Happy Installation!

Was this article helpful?

Related Articles

Leave a Comment