brew链接sdl无法链接给予权限被拒绝错误

时间:2015-04-19 03:00:20

标签: python pygame sdl homebrew

我无法联系pygame,当我尝试安装pygame时,我收到了权限错误

$ brew install pygame
==> Installing pygame from homebrew/homebrew-python
Error: You must `brew link sdl' before pygame can be installed
$ brew link sdl
Linking /usr/local/Cellar/sdl/1.2.15... 
Error: Could not symlink share/man/man3/SDLKey.3
/usr/local/share/man/man3 is not writable.

从这个错误信息中我不清楚我应该用什么符号链接?

2 个答案:

答案 0 :(得分:1)

您应该使用sudo chown -R $(whoami) /usr/local/share将这些路径的所有权归还给您的用户帐户。

答案 1 :(得分:0)

https://www.youtube.com/watch?v=c_TzqzKZpMw这就是我的表现。它起初很混乱