无法执行Flutter Doctor命令

时间:2019-01-23 04:59:47

标签: flutter flutter-dependencies

我想研究抖动,并按照this link进行安装。我添加了路径并用echo $PATH进行了检查,然后在该路径中看到了抖动文件。在终端中执行flutter doctor后,出现以下错误:

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
  Referenced from: /usr/local/bin/bash
  Reason: image not found
Abort trap: 6

我仅在flutter的图像文件夹/工作目录中执行flutter doctor。我搜索了错误,然后尝试了以下操作:

  1. brew upgrade bash
  2. ln -s /usr/local/opt/readline/lib/libreadline.7.dylib /usr/local/opt/readline/lib/libreadline.6.dyli
  3. brew link readline --force

但我仍然面临同样的问题。

1 个答案:

答案 0 :(得分:0)

我尝试了以下操作,并得到了结果:

  1. MacMini3:flutter deepakt $ brew install bash

更新自制软件... 警告:bash 5.0.0已安装,尚未链接 您可以使用brew link bash链接此版本。

  1. MacMini3:flutter deepakt $ brew link bash

链接/usr/local/Cellar/bash/5.0.0 ... 错误:无法符号链接bin / bash 目标/ usr / local / bin / bash 是属于bash的符号链接。您可以取消链接:   酿造取消链接bash

要强制链接并覆盖所有冲突文件:   brew链接-覆盖bash

列出所有将被删除的文件:   酿造链接--overwrite --dry-bash

  1. MacMini3:flutter deepakt $ brew取消链接bash

取消链接/usr/local/Cellar/bash/5.0.0 ...删除了0个符号链接 MSCOE-MacMini3:flutter deepakt $ brew链接-覆盖bash 链接/usr/local/Cellar/bash/5.0.0 ...已创建67个符号链接

  1. MacMini3:flutter deepakt$ flutter doctor

医生摘要(要查看所有详细信息,请运行flutter doctor -v):