esy-packages / esy-libtools

GNU General Public License v2.0
3 stars 2 forks source link

Build fails on OSX with 'Version mismatch error' #1

Open bryphe opened 4 years ago

bryphe commented 4 years ago

I was trying to use this with esy-libvterm, but ran into issues compiling on OSX:

    libtool: Version mismatch error.  This is libtool 2.4.6, revision 2.4.6,
    libtool: but the definition of this LT_INIT comes from revision UNKNOWN.
    libtool: You should recreate aclocal.m4 with macros from revision 2.4.6
    libtool: of libtool 2.4.6 and run autoconf again.
    make[2]: *** [libltdl/loaders/libltdl_la-preopen.lo] Error 63
    make[1]: *** [install-recursive] Error 1
    make: *** [install] Error 2
    error: command failed: 'make' 'install' (exited with 2)
    esy-build-package: exiting with errors above...
ghost commented 3 years ago

I was trying to use this with esy-libvterm, but ran into issues compiling on OSX:

    libtool: Version mismatch error.  This is libtool 2.4.6, revision 2.4.6,
    libtool: but the definition of this LT_INIT comes from revision UNKNOWN.
    libtool: You should recreate aclocal.m4 with macros from revision 2.4.6
    libtool: of libtool 2.4.6 and run autoconf again.
    make[2]: *** [libltdl/loaders/libltdl_la-preopen.lo] Error 63
    make[1]: *** [install-recursive] Error 1
    make: *** [install] Error 2
    error: command failed: 'make' 'install' (exited with 2)
    esy-build-package: exiting with errors above...

I know is probably late but I wanted to help. I am on linux and I was getting the same error. I fixed this by doing the following: Remove the aclocal.m4 file rm aclocal.m4 Run aclocal and autoconf aclocal autoconf Now configure, make and install the package: ./configure make make install

This is not my work. Credits to www.howtodoityourself.org/how-to-fix-libtool-version-mismatch-error.html