Pages

Thursday, September 18, 2014

Libtool library used but `LIBTOOL' is undefined

Libtool library used but `LIBTOOL' is undefined

I attempted to install this tool, glb in CentOS 6.5
https://github.com/codership/glb

Traditional Linux Source Build often have configure, make files available.
But this software was not having any such files. One shell script named
bootstrap.sh was available. When I run the script, I was struck up with this error.

Libtool library used but `LIBTOOL' is undefined

Searching thro forums I came across this link.

http://stackoverflow.com/questions/18978252/error-libtool-library-used-but-libtool-is-undefined

So Here they suggested to run
autoreconf
aclocal -I /usr/share/libtool
aclocal -I .

Again that did not solved.
Finally it was suggested to run libtoolize command from current directory.
But that command was not available; also I was not able to find the name of the package.

This link,

http://wiki.apache.org/couchdb/Installing_on_Fedora10

suggested to install a package titled libtool

yum install libtool

After this step, libtoolize command was available.
After which I issued

libtoolize
aclocal

autoheader
autoreconf
./bootstrap.sh

The above steps generated configure file automatically.

2 comments:

  1. # libtoolize
    libtoolize: putting auxiliary files in `.'.
    libtoolize: linking file `./ltmain.sh'
    libtoolize: You should add the contents of the following files to `aclocal.m4':
    libtoolize: `/usr/share/aclocal/libtool.m4'
    libtoolize: `/usr/share/aclocal/ltoptions.m4'
    libtoolize: `/usr/share/aclocal/ltversion.m4'
    libtoolize: `/usr/share/aclocal/ltsugar.m4'
    libtoolize: `/usr/share/aclocal/lt~obsolete.m4'
    libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
    libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
    libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
    # aclocal
    aclocal: configure.ac: 26: macro `AM_CFLAGS' not found in library
    aclocal: configure.ac: 28: macro `AM_CFLAGS' not found in library
    aclocal: configure.ac: 29: macro `AM_CPPFLAGS' not found in library
    aclocal: configure.ac: 40: macro `AM_CPPFLAGS' not found in library
    aclocal: configure.ac: 63: macro `AM_CPPFLAGS' not found in library
    aclocal: configure.ac: 74: macro `AM_CPPFLAGS' not found in library
    aclocal: configure.ac: 82: macro `AM_PROG_CC_C_O' not found in library
    aclocal: macro `_LT_DECL_SED' required but not defined
    aclocal: macro `_LT_FUNC_STRIPNAME_CNF' required but not defined
    aclocal: configure.ac: 139: macro `AM_CFLAGS' not found in library
    aclocal: configure.ac: 140: macro `AM_CPPFLAGS' not found in library
    # autoheader
    # autoreconf
    aclocal: configure.ac: 26: macro `AM_CFLAGS' not found in library
    aclocal: configure.ac: 28: macro `AM_CFLAGS' not found in library
    aclocal: configure.ac: 29: macro `AM_CPPFLAGS' not found in library
    aclocal: configure.ac: 40: macro `AM_CPPFLAGS' not found in library
    aclocal: configure.ac: 63: macro `AM_CPPFLAGS' not found in library
    aclocal: configure.ac: 74: macro `AM_CPPFLAGS' not found in library
    aclocal: configure.ac: 82: macro `AM_PROG_CC_C_O' not found in library
    aclocal: macro `_LT_DECL_SED' required but not defined
    aclocal: macro `_LT_FUNC_STRIPNAME_CNF' required but not defined
    aclocal: configure.ac: 139: macro `AM_CFLAGS' not found in library
    aclocal: configure.ac: 140: macro `AM_CPPFLAGS' not found in library
    autoreconf: aclocal failed with exit status: 1
    # ./bootstrap.sh
    Running autoreconf... Failed. See ./bootstrap.sh.log

    ReplyDelete