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.

Hjälpte svaret dig? 0 användare blev hjälpta av detta svar (0 Antal röster)