1

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

jacinta
  • 55
bfaskiplar
  • 113
  • 1
  • 4

2 Answers2

1

I'm not sure why you're trying to compile libxml2 exactly. You need to install libxml2-dev to be able to build sources which depend on libxml2. You can do sudo apt-get build-dep $package to install the build-dependencies for a particular source package, as well.

I'm not sure what the error in your question is exactly. There isn't enough context to say what the exact problem is, but it looks like possibly an issue with the space in the file path.

dobey
  • 41,650
0

The answer is from the comments in Dobey's answer. I write it again to make it clearer.

The problem is because you have space in the path. Install it in some path which doesn't have space.

Ooker
  • 281