Mac OsX - Phusion Passenger安装错误

时间:2014-09-28 12:03:27

标签: ruby-on-rails macos passenger phusion

我试图在Mac OsX上设置Phusion Passenger并且一直在收到错误。我使用Homebrew安装了Passenger:

brew update
brew install passenger

成功。然后我重新启动计算机并运行

sudo passenger-install-apache2-module

并在提示时选择为Ruby安装它的选项。但是,设置无法成功完成。所有返回的代码都不适合这篇文章,但以下是最后一部分:

1 warning generated.
c++ -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/boost/error_code.o -c ext/boost/libs/system/src/error_code.cpp
c++ -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/boost/future.o -c ext/boost/libs/thread/src/future.cpp
c++ -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/boost/once.o -c ext/boost/libs/thread/src/pthread/once.cpp
c++ -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/boost/once_atomic.o -c ext/boost/libs/thread/src/pthread/once_atomic.cpp
c++ -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/boost/thread.o -c ext/boost/libs/thread/src/pthread/thread.cpp
c++ -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/boost/tss_null.o -c ext/boost/libs/thread/src/tss_null.cpp
mkdir -p buildout/common/libboost_oxt/oxt
c++ -O2 -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/oxt/implementation.o -c ext/oxt/implementation.cpp
c++ -O2 -Iext  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libboost_oxt/oxt/system_calls.o -c ext/oxt/system_calls.cpp
mkdir -p buildout/common/libboost_oxt
rm -rf buildout/common/libboost_oxt.a
ar cru buildout/common/libboost_oxt.a buildout/common/libboost_oxt/boost/lockpool.o buildout/common/libboost_oxt/boost/c_regex_traits.o buildout/common/libboost_oxt/boost/cpp_regex_traits.o buildout/common/libboost_oxt/boost/cregex.o buildout/common/libboost_oxt/boost/instances.o buildout/common/libboost_oxt/boost/posix_api.o buildout/common/libboost_oxt/boost/regex.o buildout/common/libboost_oxt/boost/regex_debug.o buildout/common/libboost_oxt/boost/regex_raw_buffer.o buildout/common/libboost_oxt/boost/regex_traits_defaults.o buildout/common/libboost_oxt/boost/static_mutex.o buildout/common/libboost_oxt/boost/wc_regex_traits.o buildout/common/libboost_oxt/boost/wide_posix_api.o buildout/common/libboost_oxt/boost/winstances.o buildout/common/libboost_oxt/boost/error_code.o buildout/common/libboost_oxt/boost/future.o buildout/common/libboost_oxt/boost/once.o buildout/common/libboost_oxt/boost/once_atomic.o buildout/common/libboost_oxt/boost/thread.o buildout/common/libboost_oxt/boost/tss_null.o buildout/common/libboost_oxt/oxt/implementation.o buildout/common/libboost_oxt/oxt/system_calls.o
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: buildout/common/libboost_oxt.a(regex_debug.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: buildout/common/libboost_oxt.a(tss_null.o) has no symbols
ranlib buildout/common/libboost_oxt.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: buildout/common/libboost_oxt.a(regex_debug.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: buildout/common/libboost_oxt.a(tss_null.o) has no symbols
mkdir -p buildout/common/libpassenger_common
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Logging.o -c ext/common/Logging.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Exceptions.o -c ext/common/Exceptions.cpp
mkdir -p buildout/common/libpassenger_common/Utils
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils/SystemTime.o -c ext/common/Utils/SystemTime.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils/StrIntUtils.o -c ext/common/Utils/StrIntUtils.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils/IOUtils.o -c ext/common/Utils/IOUtils.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils.o -c ext/common/Utils.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils/Base64.o -c ext/common/Utils/Base64.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils/CachedFileStat.o -c ext/common/Utils/CachedFileStat.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils/LargeFiles.o -c ext/common/Utils/LargeFiles.cpp
mkdir -p buildout/common/libpassenger_common/ApplicationPool2
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/ApplicationPool2/Implementation.o -c ext/common/ApplicationPool2/Implementation.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/ApplicationPool2/AppTypes.o -c ext/common/ApplicationPool2/AppTypes.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/AgentsBase.o -c ext/common/agents/Base.cpp
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils/MD5.o -c ext/common/Utils/MD5.cpp
cc -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o buildout/common/libpassenger_common/Utils/fib.o -c ext/common/Utils/fib.c
c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template  -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHAS_UNORDERED_MAP -o buildout/common/libpassenger_common/Utils/jsoncpp.o -c ext/common/Utils/jsoncpp.cpp
rm -f buildout/libev//libev.la
cd buildout/libev/ && make libev.la
make: *** No rule to make target `/private/tmp/passenger-bvASIZ/passenger-4.0.52/ext/libev/ev.c', needed by `ev.lo'.  Stop.
rake aborted!
Command failed with status (2): [cd buildout/libev/ && make libev.la...]
/usr/local/Cellar/passenger/4.0.52/libexec/build/common_library.rb:143:in `block in <top (required)>'
Tasks: TOP => apache2 => buildout/agents/PassengerHelperAgent => buildout/libev/.libs/libev.a
(See full trace by running task with --trace)

--------------------------------------------

It looks like something went wrong

Please read our Users guide for troubleshooting tips:

   /usr/local/Cellar/passenger/4.0.52/libexec/doc/Users guide Apache.html
   https://www.phusionpassenger.com/documentation/Users%20guide%20Apache.html

If that doesn't help, please use our support facilities. We'll do our best to help you.

   https://www.phusionpassenger.com/documentation_and_support

这是我正在使用的:
 Mac OsX 10.9.5
 Phusion Passenger 4.0.52(与Homebrew一起安装)
 Ruby 2.0.0p481
 Rails 4.0.0
 终端作为我的命令行界面

知道可能导致上述情况的原因吗?我该如何移动过去?我已经被困在Passenger安装上几天了,可以真正使用这个帮助。如果我能提供其他任何内容,请告诉我。谢谢,伙计们!

1 个答案:

答案 0 :(得分:1)

  

然后我重新启动计算机并运行   sudo passenger-install-apache2-module

passenger-install-apache2-module应该可以工作。由于它不起作用,这是一个必须修复的错误。 I've taken note of it

无论如何,你不必首先运行passenger-install-apache2-module。 Homebrew receipe已经为您编译了Apache模块。实际上,如果您查看安装文档,Homebrew部分中没有说明您运行passenger-install-apache2-module的说明。在Homebrew警告中,您将看到它专门指示您编辑Apache配置以插入Phusion Passenger模块片段。