<p>我习惯了macport,最近买了一个新的macbookpro10.8.4,我切换了<code>brew</code>并尝试安装python,但出现了以下错误:</p>
<pre><code>brew install python --universal --framework
Error: You must `brew link gdbm' before python can be installed
</code></pre>
<p>我试图按照以下链接使用brew安装python,但它一直在说link,我不明白。
<a href="http://docs.python-guide.org/en/latest/starting/install/osx.html" rel="nofollow">WebSite 1</a>,<a href="http://bluehat.me/blog/2011/09/10/python-installation-via-homebrew/" rel="nofollow">webSite 2</a></p>
<p>以下是我收到的警告:</p>
<pre><code> brew install readline sqlite gdbm
Warning: readline-6.2.4 already installed
Warning: sqlite-3.7.17 already installed
Warning: gdbm-1.10 already installed, it's just not linked
</code></pre>
<p>除此之外,我还尝试将其链接到brew link gdbm,但我获得了以下权限问题:</p>
<pre><code>file: /usr/local/Cellar/gdbm/1.10/include/gdbm.h
/usr/local/include is not writable. You should change its permissions.
</code></pre>
<p>我检查/usr/local/include,它有写权限</p>
<pre><code>drwxr-xr-x 29 root wheel 986 Mar 30 16:46 include ( I am not the root)
</code></pre>
<p>我不是根用户,也没有根用户密码,但我在计算机上有sudo权限。</p>