如何在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.