bundle install无法在osx 10.9上安装ruby-oci8

时间:2014-06-11 18:44:08

标签: ruby-on-rails ruby macos

我用ruby 2.0运行'bundle install',当它到达ruby-oci8 gem时就失败了。

"xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin13 -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT    -g -Os -pipe -I/opt/oracle_11_2/instantclient_11_2/rdbms/public conftest.c  -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib -L. -L/usr/local/lib   -arch x86_64 -arch i386   -L/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib  -L/opt/oracle_11_2/instantclient_11_2/lib -lclntsh -lruby.2.0.0  -L/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib  -L/opt/oracle_11_2/instantclient_11_2/lib -lclntsh -lpthread -ldl -lobjc "
conftest.c:7:29: error: too few arguments to function call, expected 5, have 0
int t(void) { OCIInitialize(); return 0; }
              ~~~~~~~~~~~~~ ^
/opt/oracle_11_2/instantclient_11_2/rdbms/public/ociap.h:7085:1: note: 'OCIInitialize' declared here
sword   OCIInitialize   (ub4 mode, void  *ctxp,

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

结果我得到了32位而不是64位oracle instantclient