[英]Unable to execute flutter doctor command
I wanted to explore flutter and followed this link for installation steps. 我想探索抖动,并点击此链接获取安装步骤。 I added the path and checked it with
echo $PATH
and I see the flutter files in that path. 我添加了路径,并使用
echo $PATH
对其进行了检查,然后在该路径中看到了抖动文件。 After I execute flutter doctor
in my terminal, I get the following error: 在终端中执行
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
I executed flutter doctor
inside flutter's image folder / working directory only. 我只在flutter的图像文件夹/工作目录中执行了
flutter doctor
。 I googled for the error and I tried the following: 我搜索了该错误,并尝试了以下操作:
brew upgrade bash
ln -s /usr/local/opt/readline/lib/libreadline.7.dylib /usr/local/opt/readline/lib/libreadline.6.dyli
brew link readline --force
but I still face the same issue. 但我仍然面临同样的问题。
I tried the following and I got the result: 我尝试了以下操作,并得到了结果:
Updating Homebrew... Warning: bash 5.0.0 is already installed, it's just not linked You can use brew link bash
to link this version. 正在更新Homebrew ...警告:bash 5.0.0已安装,尚未链接您可以使用
brew link bash
链接此版本。
Linking /usr/local/Cellar/bash/5.0.0... Error: Could not symlink bin/bash Target /usr/local/bin/bash is a symlink belonging to bash. 链接/usr/local/Cellar/bash/5.0.0 ...错误:无法符号链接bin / bash目标/ usr / local / bin / bash是属于bash的符号链接。 You can unlink it: brew unlink bash
您可以取消链接:brew取消链接bash
To force the link and overwrite all conflicting files: brew link --overwrite bash 强制链接并覆盖所有冲突的文件:brew link --overwrite bash
To list all files that would be deleted: brew link --overwrite --dry-run bash 列出所有将被删除的文件:brew link --overwrite --dry-run bash
Unlinking /usr/local/Cellar/bash/5.0.0... 0 symlinks removed MSCOE-MacMini3:flutter deepakt$ brew link --overwrite bash Linking /usr/local/Cellar/bash/5.0.0... 67 symlinks created 取消链接/usr/local/Cellar/bash/5.0.0 ... 0个符号链接删除MSCOE-MacMini3:flutter deepakt $ brew link --overwrite bash链接/usr/local/Cellar/bash/5.0.0 ... 67个符号链接创建
MacMini3:flutter deepakt$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v): 医生摘要(要查看所有详细信息,请运行flutter doctor -v):
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.