Which version of libxml2?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Which version of libxml2?
# 1  
Old 12-11-2010
Which version of libxml2?

What method do you use to find out what version of libxml2 one uses on Linux? I have tried the following:
Code:
$ libxml2 -v
libxml2: command not found
$ libxml2 --version
libxml2: command not found
$ which libxml2
$

There is however a /usr/lib/libxml2.so.2.7.5.
# 2  
Old 12-11-2010
Depends on the linux, they're really not all alike, but if you have pkg-config:
Code:
$ pkg-config --libs libxml-2.0
-lxml2
$

pkg-config has taken over a lot of the fiddly weird scripts like sdl-config, gnome-config and so forth which used to litter up the system.
This User Gave Thanks to Corona688 For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Programming

libxml2 documentation

i need to read/write a xml file in c i found libxml2, but the documentation is awfull, im using google but i get most of vb, or c# results can anyone point me to a introduction tutorial? actually, any kind of documentation would be ok (just not the oficial The XML C parser and toolkit... (2 Replies)
Discussion started by: broli
2 Replies

2. Ubuntu

libxml2-dev

Hi again, I use Ubuntu 8.10. I could not install xml-config. Although libxml2-dev is installed, ./configure cannot find xml-config. Help me out please... apprentice (7 Replies)
Discussion started by: apprentice
7 Replies

3. Programming

libxml2

hi all is libxml2 version dependent? can you please explain about it. thank you in advance (2 Replies)
Discussion started by: munna_dude
2 Replies
Login or Register to Ask a Question