[英]Ruby gem 'ruby oci8' returning Error: 'OCI.DLL: 126(The specified module could not be found. ) (LoadError)'
我的平台: - Ruby 2.2.2p95(2015-04-13修訂版50295)[x64-mingw32] - Windows 7 64位
我已經安裝了Oracle Instant Client,即:
和Ruby寶石:
當我運行我的代碼嘗試之前我甚至從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。
我需要將'32bit'文件夾添加到$ PATH,而不是Instantclient安裝的根文件夾。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.