如何在Mac OSX上安装PCRE开发标题 [英] How to Install PCRE Development Headers on Mac OSX

查看:607
本文介绍了如何在Mac OSX上安装PCRE开发标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将MacBook Pro升级到Mavericks,而我的本地Ruby on Rails开发环境并没有立即运行,当我访问localhost时,我看到了It works!并记得我需要启动Phusion Passenger,所以当我运行passenger start,它检查所有先决条件,并且在到达PCRE开发标头时失败:

I just upgraded my MacBook Pro to Mavericks and my local Ruby on Rails development environment isn't running straight off the bat, when I visit localhost I see It works! and remembered I needed to start Phusion Passenger, so when I run passenger start it checks all the prerequisites and fails when it gets to the PCRE Development Headers:

 * Checking for PCRE development headers...
    Found: no

它告诉我要去 http://www.pcre.org/进行下载,所以我从此处下载的8.33文件中,该文件已保存到我的Downloads文件夹中,所以我将其解压缩,cd到该文件夹​​并运行:

It tells me to go to http://www.pcre.org/ to download them so I downloaded 8.33 from here which went to my Downloads folder, so I unzipped it, cd'd to the folder and ran:

./configure
make
make install

然后cd返回桌面上的我的rails应用程序目录,然后重新运行passenger start,但仍然相同.尝试了一个新的终端"窗口,但没有任何区别.

Then cd'd back to my rails app directory on my Desktop and re-ran passenger start but it's still the same. Tried a new Terminal window but that didn't make any difference.

我必须先完成此操作才能使我的开发环境正常工作,但这次似乎无法解决.

I must have done this before to get my dev environment working but can't seem to solve it this time.

我也尝试过brew install pcre,但是它说的是Warning: pcre-8.33 already installed.

I also tried brew install pcre but it says Warning: pcre-8.33 already installed.

推荐答案

重新安装OS X开发人员工具.小牛升级将它破坏了.

Reinstall the OS X Developer Tools. It was broken by the Mavericks upgrade.

这篇关于如何在Mac OSX上安装PCRE开发标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆