乘客错误“库未加载" [英] Passenger error "library not loaded"
问题描述
从旅客(使用Apache)获取此错误.不知道这意味着什么...
Getting this error from Passenger (with Apache). Not sure what it means...
dlopen(/path/to/myapp/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle, 9):
Library not loaded: /usr/local/mysql/lib/libmysqlclient.16.dylib
Referenced from: /path/to/myapp/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
Reason: image not found - /path/to/myapp/shared/bundle/ruby/1.9.1/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
已安装的Ruby实际上是1.9.2,但无论出于何种原因,宝石都在此"1.9.1"路径中...
The Ruby installed is actually 1.9.2 but the gems are in this "1.9.1" path for whatever reason...
这与我使用mysql2
gem而不是mysql
的事实有关吗?
Could it have something to do with the fact I'm using the mysql2
gem instead of mysql
?
或者,它可能与第二行"库未加载"有关,看起来好像它正在尝试加载错误的libmysqlclient.16.dylib
?由于路径/usr/local/mysql
指向未运行的mysql版本. /usr/bin/
中正在运行的mysql版本. 我会尝试更改此设置,但我不知道如何!?!
Or, maybe could it have something to do with the 2nd line "Library not loaded" where it looks like it might be trying to load the wrong libmysqlclient.16.dylib
? As the path /usr/local/mysql
points to a version of mysql that is not running. The version of mysql that is running is in /usr/bin/
. I'd try to change this but I have no idea how!?!