在CentOS 5.6上使用Nginx 1.0.5安装Passenger 3.0.8时崩溃(使用RVM和Ruby 1.9.2-290)

时间:2011-08-17 19:55:57

标签: nginx passenger centos rvm ruby-1.9.2

在我下载OpenSSL 1.0.0d和Nginx 1.0.5源代码之后,在CentOS 5.6 i386上成功安装RVM(v1.7.2)和Ruby 1.9.2-p290后,我以root身份执行了以下操作:

rvm use 1.9.2 --default

- >使用/usr/local/rvm/gems/ruby-1.9.2-p290

gem install passenger

- >成功安装了fastthread-1.0.7,daemon_controller-0.2.6,rack-1.3.2和passenger-3.0.8

passenger-install-nginx-module

然后它显示:

* GNU C++ compiler... found at /usr/bin/g++
* The 'make' tool... found at /usr/bin/make
* A download tool like 'wget' or 'curl'... found at /usr/bin/wget
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /usr/local/rvm/wrappers/ruby-1.9.2-p290/rake
* rack... found
* Curl development headers with SSL support... found
* OpenSSL development headers... found
* Zlib development headers... found

接下来,

  • 我选择了自定义安装(即'2'),
  • 输入Nginx源路径(即'/usr/src/nginx-1.0.5'),
  • 输入'/ opt / nginx'作为Nginx目标路径
  • 并输入以下额外参数 configure : - with-openssl = / usr / src / openssl-1.0.0d --with-mail --with-mail_ssl_module

不幸的是,问题在于:

/usr/local/rvm/wrappers/ruby-1.9.2-p290/rake nginx:clean nginx RELEASE=yes
rm -rf ext/common/libboost_oxt.a ext/common/libboost_oxt
rm -rf ext/common/libpassenger_common.a ext/common/libpassenger_common
rm -f agents/PassengerWatchdog agents/PassengerLoggingAgent
rm -rf agents/nginx/PassengerHelperAgent
mkdir -p ext/common/libboost_oxt
g++ -Iext  -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<ext/hash_fun.h>" -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o ext/common/libboost_oxt/aggregate.o -c ext/common/libboost_oxt/aggregate.cpp
mkdir -p ext/common/libboost_oxt
rm -rf ext/common/libboost_oxt.a
ar cru ext/common/libboost_oxt.a ext/common/libboost_oxt/aggregate.o
ranlib ext/common/libboost_oxt.a
mkdir -p ext/common/libpassenger_common
g++ -Iext -Iext/common -Iext/libev  -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<ext/hash_fun.h>" -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o ext/common/libpassenger_common/aggregate.o -c ext/common/libpassenger_common/aggregate.cpp
rm -rf ext/common/libpassenger_common.a
ar cru ext/common/libpassenger_common.a ext/common/libpassenger_common/aggregate.o
ranlib ext/common/libpassenger_common.a
mkdir -p agents/nginx
g++ ext/nginx/HelperAgent.cpp -o agents/nginx/PassengerHelperAgent -Iext -Iext/common -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<ext/hash_fun.h>" -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS  ext/common/libpassenger_common.a ext/common/libboost_oxt.a -lpthread -rdynamic 
In file included from ext/nginx/HelperAgent.cpp:63:
ext/common/Utils/Dechunker.h:232:8: warning: extra tokens at end of #endif directive
Connection closed.

我没有发现任何相关信息。你有个主意吗? 非常感谢你

雅克 - 伊夫

PS:我的程序适用于Parallels Desktop CentOS 5.6虚拟机(带有用户界面),但不适用于Gandi(www.gandi.net)托管的VPS

0 个答案:

没有答案