compilation libxml2.la error

Issues related to applications and software problems
Post Reply
helgi
Posts: 9
Joined: 2014/11/09 09:31:48

compilation libxml2.la error

Post by helgi » 2014/11/18 12:42:58

Hi

I try to compile some code and I have this output:

/usr/bin/grep: /usr/lib64/libxml2.la: No such file or directory
/usr/bin/sed: can't read /usr/lib64/libxml2.la: No such file or directory
libtool: link: `/usr/lib64/libxml2.la' is not a valid libtool archive

and can't understand where is my mistake why the execution of "Makefile" try to search *.la library files.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: compilation libxml2.la error

Post by aks » 2014/11/18 17:56:11

Your library tool chain is broken. For whatever reason the code you're trying to compile is looking for a static library named libxml2.la and it's expecting it in /usr/lib64/. I guess it's not there. Perhaps you needed something like --enable-shared on your configure script (well that depends on the code you're trying to compile).

CentOS does not provide a static library (they're SO 1990s) in libxml-statiuc, it's an archive (.a). What are you trying to compile and can you switch on shared libraries?

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: compilation libxml2.la error

Post by chemal » 2014/11/18 18:10:50

"*.la" means libtool archive. These are short text files that serve a purpose similar to pkg-config files. They are normally not included in any package.

helgi
Posts: 9
Joined: 2014/11/09 09:31:48

Re: compilation libxml2.la error

Post by helgi » 2014/11/21 11:13:34

aks,

I'm use one software platform, in which I can add another program modules, and to add some module to this platform I need to compile them with tools from this platform.
Thank's I will try to find the code which is responsible for compiling and add this option.
Can I download this 'libtool' archive from somewhere?

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: compilation libxml2.la error

Post by aks » 2014/11/21 16:53:17

Probably not a good idea - downloading a random library could make things worse. As for libtools itself, it can be installed via YUM.

Post Reply