Although, I installed libxml2 once and reinstalled it a few more times. I cannot compile c-source code because the compiler cannot find where the header file is. I am able to locate where it is (in the folder where I downloaded the tar.gz package) but I had a feeling in my guts that this package isn't installed correctly because when I tried sudo make install, it says
/bin/bash: /home/bfaskiplar/Downloads/tar.gz: No such file or directory
make[2]: *** [install-libLTLIBRARIES] Error 127
make[2]: Leaving directory `/home/bfaskiplar/Downloads/tar.gz packages/libxml2-2.8.0'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/bfaskiplar/Downloads/tar.gz packages/libxml2-2.8.0'
make: *** [install-recursive] Error 1
This is why I installed synaptic package manager and reinstalled libxml2, but in this case, isn't it supposed to put header files in default directory where gcc normally searches?
Currently, I am able to compile c-source code with -I option, but I wonder why I have to copy headers manually even if I used synaptic for installation and why am I getting Error 1 and Error 2 when trying to install the package manually.
Thanks in advance
xml2-config --cflagsexample.c `xml2-config --libsbut I am still curious about why synaptic package manager didn't put the headers one of the default folders where gcc is searching for included libraries in. Header files are still in the folder where I donwloaded the package in. And second thing, what is the trick in setting the both cflags and lib xml12-config, is this something which sets every parameter to the correct value automatically?
– bfaskiplar Jul 06 '12 at 18:12