error de desajuste de versión de libtool
Cuando compilo mi aplicación con kdevelop 3.5 en Ubuntu 10.04, obtengo los siguientes errores:
libtool: Version mismatch error. This is libtool 2.2.6 Debian-2.2.6a-4, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 Debian-2.2.6a-4
libtool: and run autoconf again.
make[2]: *** [wktools4] Error 63
make[2]: Target `all' not remade because of errors.
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*** Exited with status: 2 ***
Dónde puedo obtener la versión necesaria de libtool, o cómo puedo recrear aclocal.m4?
8 answers
Intenta ejecutar
autoreconf --force --install
./configure
make
En el directorio raíz de su proyecto.
Si eso no funciona, intente ejecutar make maintainer-clean
primero y luego vaya al paso 1.
Si eso todavía no funciona, ejecute make maintainer-clean
, luego elimine todos los archivos generados en el directorio raíz de su proyecto; incluyendo aclocal.m4
, cualquier directorio m4
, cualquier directorio autom4te.cache
, configure
, Makefile.in
, config.h
, config.h.in
, config.status
, libtool
, ltmain.sh
, etc. Luego vaya al paso 1.
Por qué funciona esto: libtool
y aclocal.m4
son ambos archivos que son generados por su sistema de compilación. Si no están sincronizados (generados por diferentes versiones de las herramientas de compilación), se obtiene este error. Normalmente eso no debería suceder, pero un ejemplo de algo que puede causar es cuando se comprueba en los archivos generados para el control de código fuente.
Lo que hace esta solución es eliminar y regenerar todos los archivos autogenerados. Una vez que son borrados y regenerados, ya no pueden estar fuera de sincronización.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-06-04 03:56:40
Intenta
autoreconf -i
La opción -i
es importante.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2011-01-09 15:00:00
Intenta ejecutar aclocal
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2010-06-22 21:02:08
Tal vez haya instalado dos libtools de versión diferente. Intente apt-get remove all
(hasta que no obtenga nada, cuando escriba which libtool
en la línea de comandos), luego apt-get install
el que le guste.
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2012-10-29 10:44:11
Si está utilizando Anaconda, entonces esto podría deberse a libtool y autoconf de diferentes fuentes. Puede comprobar esto ejecutando
which libtool
which autoconf
Mi libtool era de conda y autoconf era un paquete de sistema. Desinstalado autoconf e instalado de nuevo usando conda
apt remove -y autoconf
(Ubuntu/Debian)
conda install -c anaconda autoconf
Nota: Es posible que también necesite instalar automake.
conda install -c anaconda automake
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-04-12 05:23:33
Resuelvo que desinstalar libtool del sistema e instalarlo desde el desarrollador principal: git clone git: / / git.savannah.gnu.org/libtool. git
sudo apt-get install texinfo autoconf automake make ./bootstrap ./configure make sudo make install
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-01-02 12:45:36
Ninguna de las anteriores funcionó.
Entonces esto funcionó:
autoconf -f
./configure
make
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-12-20 02:23:16
Ninguna de las anteriores funcionó. Después de desactivar el entorno conda, funcionó:
source deactivate
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2018-03-03 20:19:15