gpt4 book ai didi

Ruby gem 'ruby oci8' 返回错误 : 'OCI.DLL: 126(The specified module could not be found. ) (LoadError)'

转载 作者:可可西里 更新时间:2023-11-01 09:36:59 34 4
gpt4 key购买 nike

我的平台: - Ruby 2.2.2p95(2015-04-13 修订版 50295)[x64-mingw32] - Windows 7 64 位

我已经安装了 Oracle Instant 客户端,即:

  • 甲骨文软件开发工具包
  • 甲骨文 SQLPLUS
  • Oracle windows(当安装 Oracle windows 安装客户端 oci.dll 时,我有用户变量路径指向 - C:\Users\joebloggs\Documents\oracle\oracle_windows\instantclient_12_1)

和 ruby :

  • 'ruby-oci8'
  • '事件记录'
  • 'activerecord-oracle_enhanced-adapter'

当我在从 activerecord ActiveRecord::Base.establish_connection(...) 调用此方法之前运行我的代码进行尝试时,我遇到了以下错误:

OCI.DLL: 126(The specified module could not be found.  ) (LoadError)
C:/Users/joebloggs/Documents/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Users/joebloggs/Documents/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/Users/joebloggs/Documents/Ruby22-x64/lib/ruby/gems/2.2.0/gems/ruby-oci8-2.2.1-x64-mingw32/lib/oci8.rb:72:in `<top (required)>'

我看不出问题出在哪里。 PATH 用户变量已正确设置为 oci.dll 在 Oracle Windows 目录中的位置。有人可以帮忙吗?

非常感谢,Irvz。

最佳答案

我需要将“32 位”文件夹添加到 $PATH,而不是 Instantclient 安装的根文件夹。

关于Ruby gem 'ruby oci8' 返回错误 : 'OCI.DLL: 126(The specified module could not be found. ) (LoadError)' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35990154/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com