我正在努力让乘客起来运行我的rails应用程序。我在运行OS X 10.6.8的Mac上运行rails 1.9.1。我已经能够安装乘客宝石,但是当我运行命令时:
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时我是一个新手,所以我很抱歉,如果这是我的愚蠢错误。任何帮助,将不胜感激!
答案 0 :(得分:1)
我终于确实让它发挥作用(所以没有使用Snow Leopard的Phusion Passenger不是正确答案)。我最终通过自制程序安装了乘客:
brew install passenger
然后使用
重新安装sudo passenger-install-apache2-module
因此,如果有其他人遇到过此问题,您可以尝试一下。
答案 1 :(得分:0)
这是因为Phusion Passenger与Snow Leopard的不兼容性。 Phusion Passenger不再支持Snow Leopard。