brew和dart权限问题libexec / bin / pub:权限被拒绝

时间:2019-03-17 06:12:27

标签: dart flutter homebrew

我遇到以下权限错误,该如何解决。我是新来的啤酒。

我有两个用户,一个是管理员,我曾经用来安装软件包,我可以使用该用户来运行pub get,但是我的另一个用户无法执行。普通用户如何使用它?

$ pub get
/usr/local/bin/pub: line 2: 
/usr/local/Cellar/dart/2.1.0/libexec/bin/pub: Permission denied
/usr/local/bin/pub: line 2: exec: 
/usr/local/Cellar/dart/2.1.0/libexec/bin/pub: cannot execute: Permission denied

似乎对当前用户和我安装dart的权限都可以。

根据@JBallin的请求,在此处添加brew doctor输出:

Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. 

Warning: Broken symlinks were found. Remove them with `brew cleanup`:
/usr/local/bin/dart

Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected dylibs:
/usr/local/lib/libpcre.1.dylib
/usr/local/lib/libpcre2-8.0.dylib
/usr/local/lib/libpcre2-posix.1.dylib
/usr/local/lib/libpcrecpp.0.dylib
/usr/local/lib/libpcreposix.0.dylib
/usr/local/lib/libtcl8.6.dylib
/usr/local/lib/libtk8.6.dylib

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
/usr/local/lib/libpcre.la
/usr/local/lib/libpcre2-8.la
/usr/local/lib/libpcre2-posix.la
/usr/local/lib/libpcrecpp.la
/usr/local/lib/libpcreposix.la

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
/usr/local/lib/pkgconfig/libpcre.pc
/usr/local/lib/pkgconfig/libpcre2-8.pc
/usr/local/lib/pkgconfig/libpcre2-posix.pc
/usr/local/lib/pkgconfig/libpcrecpp.pc
/usr/local/lib/pkgconfig/libpcreposix.pc
/usr/local/lib/pkgconfig/tcl.pc
/usr/local/lib/pkgconfig/tk.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
/usr/local/lib/libpcre.a
/usr/local/lib/libpcre2-8.a
/usr/local/lib/libpcre2-posix.a
/usr/local/lib/libpcrecpp.a
/usr/local/lib/libpcreposix.a
/usr/local/lib/libtclstub8.6.a
/usr/local/lib/libtkstub8.6.a

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
pcre

Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
brew install php

Run `brew missing` for more details.

请参阅上述信息以了解冲煮医生。

谢谢。

0 个答案:

没有答案