I was trying to install Phusion Passenger and nginx on Mac OS X 10.8.2, using the Passenger installer for nginx, and kept running into this error:
$ passenger-install-nginx-module
...
Undefined symbols for architecture x86_64:
"_pcre_free_study", referenced from:
_ngx_pcre_free_studies in ngx_regex.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [objs/nginx] Error 1
make: *** [build] Error 2
The Googles turned up a blog post from Phusion about what appeared to be the same problem. Applying their suggested fix (downloading pcre.h
and copying it to /usr/include
) didn’t help, unfortunately.
I happened to stumble across a Github issue about a different nginx module that provided a tantalizing hint:
If the problem persists, please check that if you have multiple versions of PCRE installed in your system.
There was a version of pcre installed via Homebrew already on my system. I had apparently installed it for something I had since uninstalled, because I was able to remove it without complaint. Running the Passenger installer for nginx this time was more successful:
$ passenger-install-nginx-module
...
PCRE (required by Nginx) not installed, downloading it...
...
Nginx with Passenger support was successfully installed.
It looks like pcre installed via Homebrew confuses the Passenger installer; removing pcre allows the installer to download all the pieces it needs to a place it can find them.
Now, to see how it runs.
====================================
1、gem install passenger
2、passenger-install-nginx-module
Compiling and installing Nginx...
# sh ./configure --prefix='/opt/nginx' --with-http_ssl_module --with-http_gzip_static_module --with-cc-opt='-Wno-error' --add-module='/Users/xxxx/.rvm/gems/ruby-1.9.3-p374/gems/passenger-3.0.17/ext/nginx' --with-pcre='/Users/xxxx/Downloads/packages/pcre-8.32'
相关推荐
It is known to work with Mac OS X versions 10.6.8 (Snow Leopard) through 10.14 (Mojave – see notes below), and has been tested on a wide variety of phones. Although you should be careful with all ...
2.4.1. General Notes on Installing MySQL on Mac OS X 2.4.2. Installing MySQL on Mac OS X Using Native Packages 2.4.3. Installing the MySQL Startup Item 2.4.4. Installing and Using the MySQL Preference...
标题 "Installing Nginx With PHP5 And MySQL Support On Debian Squeeze" 涉及到的是在Debian Squeeze操作系统上安装Nginx web服务器、PHP5脚本语言支持以及MySQL数据库的过程。这是一个基础的LEMP(Linux、Nginx、...
### 安装Oracle 10g R2在RHEL 5 & OEL 5 (x86_64)上的需求 #### 概述 本文档详细介绍了在Red Hat Enterprise Linux(RHEL)5和Oracle Enterprise Linux(OEL)5(x86_64架构)上安装Oracle 10g Release 2数据库的...
Designed for experienced IT professionals ready to advance their status, Exam Ref focuses on the critical thinking and decision making acumen needed for success at the MCSA level. Focus on the ...
安装 Mumax 3.9.1 和 Gnuplot 5.2 在 Windows 10 中的步骤指南 在这篇文章中,我们将一步步指导用户安装 Mumax 3.9.1 和 Gnuplot 5.2 在 Windows 10 操作系统中。这篇文章将为用户提供详细的安装步骤和相关知识点,...
Installing on Mac OS X 581 Installing on Linux and Unix 585 Appendix B. Selected PyQt Widgets 590 Appendix C. Selected PyQt Class Hierarchies 596 Index 600 A 601 B 602 C 604 D 606 E 608 F ...
Currently (at mono version 4.2.4) this store remains empty after installing Mono on Mac OS X. Fiddler uses the certificates in this store to validate the certificates of the websites visited. So you ...
在 OS X Yosemite 上安装 Intel ICPC 以使用 OpenMP 下载适用于 C++ OS X 的英特尔:registered: Parallel Studio XE Composer 版。它对大学生免费。 我是学生,所以我申请了学生许可证。 我收到了一封包含序列号和...
在本文中,我们将深入探讨如何在Linux环境下安装Oracle Database 11g,这是一个重要的数据库管理系统,广泛用于企业级数据存储和处理。Oracle 11g提供了高性能、高可用性和安全性,使其成为许多组织的核心数据库解决...
STK-Disk913x-Installing and Maintaining a 9137 OPENstorage Disk
STK-Disk913x-Installing and Maintaining a 9133 OPENstorage Disk
STK-Disk913x-Installing and Maintaining a 9131 OPENstorage Disk
STK-Disk913x-Installing and Maintaining a 9135 OPENstorage Disk