libtool version mismatch error

后端 未结 10 1623
情歌与酒
情歌与酒 2020-12-07 11:13

When building my application with kdevelop 3.5 on Ubuntu 10.04, I get the following errors:

libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2         


        
相关标签:
10条回答
  • 2020-12-07 11:36

    Try

    autoreconf -i
    

    The -i option is important.

    0 讨论(0)
  • 2020-12-07 11:40

    I solve that uninstalling system's libtool and installing from upstream: git clone git://git.savannah.gnu.org/libtool.git

    sudo apt-get install texinfo autoconf automake make
    ./bootstrap
    ./configure
    make
    sudo make install
    0 讨论(0)
  • 2020-12-07 11:45

    None of the above worked. After I deactivated the conda environment, it worked:

    source deactivate

    0 讨论(0)
  • 2020-12-07 11:46

    I also encounter this issue. In my case, in the output of ./autogen.sh, there is:

    libtoolize: You should add the contents of the following files to 'aclocal.m4': libtoolize: '/aclocal/libtool.m4' libtoolize: '/aclocal/ltoptions.m4' libtoolize: '/aclocal/ltversion.m4' libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac, libtoolize: and rerunning libtoolize and aclocal. libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

    I just append the content the three *.m4 files under /aclocal/ to the aclocal.m4 file:

    cat <a path>/aclocal/libtool.m4 <a path>/aclocal/ltoptions.m4 <a path>/aclocal/ltversion.m4 >> aclocal.m4 
    

    then make.

    0 讨论(0)
  • 2020-12-07 11:49

    Try running aclocal

    0 讨论(0)
  • 2020-12-07 11:54

    maybe you have installed two libtools of different version. Try to apt-get remove all (until you get nothing, when you type which libtool in the command line), then apt-get install the one you like.

    0 讨论(0)
提交回复
热议问题