自制的aspell目录不可写

时间:2018-11-15 01:03:22

标签: homebrew aspell

我遇到一些困难。这从一个更广泛的问题开始,但是我(在此列表的帮助下)似乎将范围缩小了一些。我原来的查询是在Emacs - Kieran Healy's Emacs Starter Kit aspell English dictionery

(是的,我为标题的拼写错误感到尴尬)。

我已经缩小了范围(在该问题的帮助下),将我的问题缩小到Homebrew安装的aspell。命令brew install aspell给出以下错误。

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink lib/aspell-0.60/american-variant_0.alias
/usr/local/lib/aspell-0.60 is not writable.

You can try again using:
brew link aspell

如果我尝试brew link aspell,则会出现以下错误:

Linking /usr/local/Cellar/aspell/0.60.6.1_1... 
Error: Could not symlink lib/aspell-0.60/american-variant_0.alias
/usr/local/lib/aspell-0.60 is not writable.

对aspell的文件权限为

drwxr-xr-x  89 root  wheel  2848  7 Nov  2016 aspell-0.60

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:
aspell

它还告诉我我需要从XCode 9.3更新到XCode 10.1,但是由于我仍在运行MacOS 10.13.4,因此我认为不需要这样做。

任何帮助,我们将不胜感激。

1 个答案:

答案 0 :(得分:0)

Homebrew: Could not symlink, /usr/local/bin is not writable上的信息很有帮助。我不得不sudo chown -R:admin /usr/local/lib。然后,在使用Homebrew解除安装并重新安装aspell之后,我不得不brew link --overwrite aspell。现在一切正常。