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: *** [install-libLTLIBRARIES] Error 127 make: Leaving directory `/home/bfaskiplar/Downloads/tar.gz packages/libxml2-2.8.0' make: *** [install-am] Error 2 make: 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