Why do I get this error trying to compile libxml2?

Posted by bfaskiplar on Ask Ubuntu See other posts from Ask Ubuntu or by bfaskiplar
Published on 2012-07-06T13:54:45Z Indexed on 2012/07/06 15:23 UTC
Read the original article Hit count: 195

Filed under:

Although, I installed libxml2 once and reinstalled it for a few times. I cannot compile c-source code because 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 to 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

that's why I installed synaptic package manager and reinstalled it, but in this case, isn't it supposed to put header files in default directory where gcc normally searches in

currently, I am able to compile it with -I option, but I wonder why do I have to copy headers manually even if I used synaptic for installation and why I am getting Error 1 and Error 2 when trying to install the package manually.

thanks in advance

© Ask Ubuntu or respective owner

Related posts about libxml