Brew doctor: dyld: Biblioteca no cargada & Error: No hay fórmula disponible para zlib


Cuando yo brew doctor obtengo los siguientes errores:

dyld: Library not loaded: /usr/lib/libltdl.7.dylib
  Referenced from: /usr/local/bin/php
  Reason: image not found
Error: No available formula for zlib

El archivo libltdl.7.dylib no está en mi directorio /usr/lib, pero hay varios otros archivos .dylib.

Estoy ejecutando 10.8.1 con la última versión de Xcode (4.4.1) y sus Herramientas de línea de comandos instaladas.

¿Alguna idea de cómo resolver estos errores?

Author: Ryan, 2012-09-07

10 answers

Intenta volver a instalar libtool:

brew reinstall libtool --universal && brew unlink libtool && brew link libtool

Si eso no ayuda, intente eliminar libtool por completo, y luego vuelva a intentar los pasos anteriores:

brew uninstall libtool

Si todavía no funciona después de probar los pasos anteriores, compruebe si tiene la variable DYLD_FALLBACK_LIBRARY_PATH definida en algún lugar del sistema (por ejemplo,~/.profile) e intente desactivarlo antes de volver a intentar los pasos anteriores.


Otros comandos que podrían ser útiles para identificar el problema:

$ libtool --version
$ whereis libtool
$ set | grep DYLD_FALLBACK_LIBRARY_PATH
$ echo $DYLD_FALLBACK_LIBRARY_PATH
 35
Author: kenorb,
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
2016-04-14 10:32:38

Para mí funciona con:

sudo ln -s /usr/local/Cellar/libtool/2.4.2/lib/libltdl.7.dylib /usr/local/lib/libltdl.7.dylib
 10
Author: Raul,
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-03-30 18:47:29

Intenta:

brew tap homebrew/dupes

Véase: https://github.com/josegonzalez/homebrew-php/pull/219

 9
Author: Bryan Stalcup,
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-09-02 22:32:39

Si tiene un error sobre pcre como este :

dyld: Library not loaded: /usr/local/opt/pcre/lib/libpcre.1.dylib
  Referenced from: /usr/local/Cellar/watchman/4.7.0/libexec/bin/watchman
  Reason: image not found
Abort trap: 6

Es necesario vincular pcre.

brew link --overwrite pcre
 7
Author: Diego Mello,
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
2016-10-29 14:11:58

La respuesta de kenorb es lo que funcionó para mí + un poco más para una medida segura: actualización de brew freetype no tenía enlaces simbólicos: brew link freetype varias otras soluciones que probé:

brew remove imagemagick
brew link jpeg libpng
brew install imagemagick
brew install libtiff
brew uninstall libtool
brew reinstall libtool --universal && brew unlink libtool && brew link libtool

Hay una buena probabilidad de que esto no fuera todo necesario si hubiera encontrado

brew uninstall libtool
brew reinstall libtool --universal && brew unlink libtool && brew link libtool

Primero. Pero pensé que publicaría mi proceso completo en caso de que alguien se encuentre con problemas

 0
Author: jzg.dev,
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-05-07 08:24:09
xcode-select --install
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install pcre
brew install libtool

Eso es todo.

 0
Author: tolerious,
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-04-20 13:00:39

Para mí, necesitaba arreglar XQuartz como brew doctor me preguntó también:

Advertencia: Su XQuartz (2.7.6) está desactualizado Por favor, instale XQuartz 2.7.8: https://xquartz.macosforge.org

Funcionó después de eso.

 0
Author: Francois Nadeau,
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
2016-03-19 14:22:06

Experimenté el mismo error en el proceso de instalación de AFNI. La instalación de PyQt, como se sugirió aquí, solucionó el problema resultante de la compatibilidad con OSX 10.11.

brew install pyqt
 0
Author: Chris,
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
2016-08-11 00:31:18

Yo tenía: % neato dyld: Library not loaded: /usr/lib/libltdl.7.dylib Referenced from: /Users/me/Documents/dev/anaconda/bin/neato Reason: image not found zsh: abort neato

Y la solución fue % echo $DYLD_FALLBACK_LIBRARY_PATH /Users/me/anaconda/lib:/usr/lib % export DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/usr/local/lib

(y luego añadir la exportación a un .bashrc o similar).

 0
Author: jmmcd,
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
2017-02-22 11:23:00

En mi caso lo resuelvo con el archivo de este enlace:

ln -s /usr/local/Cellar/jpeg/8d/lib/libjpeg.8.dylib /usr/local/opt/jpeg/lib/libjpeg.8.dyli
 0
Author: Luis Morales,
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
2017-08-15 03:27:18