1

我正在尝试让乘客启动并运行以服务我的 Rails 应用程序。我在运行 OS X 10.6.8 的 Mac 上运行 rails 1.9.1。我已经能够安装乘客 gem,但是当我运行命令时:

sudo passenger-install-apache2-module

几分钟后安装失败并说

    Undefined symbols for architecture x86_64:
  "___fork", referenced from:
      Passenger::asyncFork()     in Utils.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
rake aborted!
Command failed with status (1): [g++ buildout/agents/PassengerHelperAgent.o -o buildout/agents/PassengerHelperAgent buildout/common/libpassenger_common/Logging.o buildout/common/libpassenger_common/Utils/SystemTime.o buildout/common/libpassenger_common/Utils/StrIntUtils.o buildout/common/libpassenger_common/Utils/IOUtils.o buildout/common/libpassenger_common/Utils.o buildout/common/libpassenger_common/Utils/Base64.o buildout/common/libpassenger_common/Utils/CachedFileStat.o buildout/common/libpassenger_common/Utils/LargeFiles.o buildout/common/libpassenger_common/ApplicationPool2/Implementation.o buildout/common/libpassenger_common/ApplicationPool2/AppTypes.o buildout/common/libpassenger_common/AgentsBase.o buildout/common/libpassenger_common/Utils/MD5.o buildout/common/libpassenger_common/Utils/fib.o buildout/common/libpassenger_common/Utils/jsoncpp.o buildout/common/libboost_oxt.a  buildout/libev/.libs/libev.a buildout/libeio/.libs/libeio.a -lpthread -Wl,-dead_strip ]

Tasks: TOP => apache2 => buildout/agents/PassengerHelperAgent
(See full trace by running task with --trace)

我在 Rails 方面有点新手,所以如果这是我的愚蠢错误,我深表歉意。任何帮助,将不胜感激!

4

2 回答 2

1

我终于让它工作了(所以 Phu​​sion Passenger 不在 Snow Leopard 上工作不是正确的答案)。我最终使用以下命令通过自制软件安装了乘客:

brew install passenger

然后再次使用

sudo passenger-install-apache2-module

因此,如果其他人遇到此问题,您可以尝试一下。

于 2013-07-17T18:42:19.220 回答
0

这是因为 Phusion Passenger 与 Snow Leopard 不兼容。Phusion 乘客不再支持雪豹。

于 2013-07-17T18:34:26.207 回答