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'
相关推荐
Time for action – installing Android SDK and NDK on Mac OS X Setting up Linux Time for action – preparing Ubuntu Linux for Android development Installing Android development kits on Linux Time ...
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...
Requirements For Installing Oracle10gR2 On RHEL 5&OEL 5 (x86_64)
Installing Oracle Database 11g on Linux
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 ...
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 ...
Mac OS X Installation 17 Package Installation 17 Compiling the Source 18 The Python Prompt 18 Customizing the Interactive Prompt 19 iPython: An Advanced Prompt 20 Installing setuptools 21 ...
Installing Activ Test on Your PC
The book includes detailed instructions for each of the processes it describes: downloading and installing the application, configuring and using modules, and much more. It provides a step-by-step ...
mcsa考试题库。exam:70-410 。Installing and Configuring Windows Server 2012 R2
STK-Disk913x-Installing the ArrayGUIde Utiity Revision 1.6 on an
NULL 博文链接:https://wsfei.iteye.com/blog/1830846
Oracle administration guide + Concepts Oracle + Installing Oracle Database 10 g on Sun Solaris 10 by Using RC
Installing Oracle 10G On Linux
安装mumax3最全教程
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 ...
Installing RAC on AIX
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 ...