1
我最近將我的MacBook升級到Yosemite,現在乘客似乎不再工作。每次我試圖重新啓動Apache,我在日誌中出現此錯誤:我無法讓Phusion Passenger在OS X Yosemite上運行
[ 2014-10-19 17:08:51.6913 9735/0x7fff7b970300 agents/HelperAgent/Main.cpp:650 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.9726/generation-0/request
dyld: Library not loaded: /opt/local/lib/libcurl.4.dylib
Referenced from: /Users/barry.flinn/.rvm/gems/[email protected]/gems/passenger-4.0.53/buildout/agents/PassengerLoggingAgent
Reason: Incompatible library version: PassengerLoggingAgent requires version 8.0.0 or later, but libcurl.4.dylib provides version 7.0.0
當我運行otool -L /opt/local/lib/libcurl.4.dylib
,我得到:
/opt/local/lib/libcurl.4.dylib:
/opt/local/lib/libcurl.4.dylib (compatibility version 8.0.0, current version 8.0.0)
/opt/local/lib/libidn.11.dylib (compatibility version 18.0.0, current version 18.12.0)
/opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
然而,系統版本/usr/lib/libcurl.4.dylib
給出:
/usr/lib/libcurl.4.dylib:
/usr/lib/libcurl.4.dylib (compatibility version 7.0.0, current version 8.0.0)
/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 57031.1.27)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1151.14.0)
/System/Library/Frameworks/LDAP.framework/Versions/A/LDAP (compatibility version 1.0.0, current version 2.4.0)
/System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (compatibility version 5.0.0, current version 6.0.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
盡我所知,即使我構建了mod_passenger對/opt/local/lib/libcurl.4.dylib
,它仍然試圖運行使用lib在/usr/lib/libcurl.4.dylib
。我被困在試圖找出原因。