我试图通过Homebrew安装看守员。
当它尝试安装其中一个依赖项时,我收到此错误:
==> Installing watchman dependency: python@2
==> Downloading https://homebrew.bintray.com/bottles/python@2-2.7.14_3.high_sierra.bottle.2
######################################################################## 100.0%
==> Pouring python@2-2.7.14_3.high_sierra.bottle.2.tar.gz
Error: An unexpected error occurred during the `brew link` step
The formula built, but is not symlinked into /usr/local
Permission denied @ dir_s_mkdir - /usr/local/Frameworks
Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
正在运行brew doctor
给我:
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:
python@2
gnupg
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/bin/electron
当我尝试brew link --overwrite python@2
时,我得到了:
Linking /usr/local/Cellar/python@2/2.7.14_3... Error: Permission denied @ dir_s_mkdir - /usr/local/Frameworks
当我尝试brew remove python@2
时,我得到了:
Error: Refusing to uninstall /usr/local/Cellar/python@2/2.7.14_3
because it is required by mongodb, which is currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies python@2
我在这里有点迷失,因为我几乎没有使用brew的经验。我只想安装守望者!
答案 0 :(得分:0)
似乎brew正在尝试关联var sqlQuery = @"RAISERROR (N'working', 10,1) WITH NOWAIT";
using (var connection = new SqlConnection(@"Server=localhost\SQLExpress;Database=master;Trusted_Connection=True;"))
{
await connection.OpenAsync();
connection.InfoMessage += (sender, args) =>
{
foreach (var element in args.Errors.OfType<SqlError>())
{
Console.WriteLine($"Class: {element.Class} LineNumber: {element.LineNumber} Message: {element.Message} Number: {element.Number} Procedure: {element.Procedure}");
}
};
using (var command = new SqlCommand(sqlQuery, connection))
{
await command.ExecuteNonQueryAsync();
}
}
,但无法生成文件夹python@2
。
通过以下步骤解决了这个问题:
/usr/local/Frameworks