[英]I'm trying to install postgresql by using brew but it cannot find Python.h
我试图通过使用brew安装postgresql,结果是
checking for libperl... yes
checking Python.h usability... no
checking Python.h presence... no
checking for Python.h... no
configure: error: header file <Python.h> is required for Python
发生此错误后,我安装了Python,并说:
brew install python
Warning: python-2.7.5 already installed, it's just not linked
我需要做什么? 谢谢
您必须告诉Homebrew链接Python:
$ brew link python
在执行此操作之前,它只是安装在/usr/local/Cellar
下的某个位置,但未链接到/usr/local/bin
(例如/usr/local/bin/python
)和朋友。
发生这种情况的原因是,Python似乎仅作为依赖项安装,但请求的软件包(PostgreSQL)的安装失败,因此其依赖项已安装但未链接(即被激活)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.