无法使用 odbc 连接到 Ruby on Rails 中的普及数据库 [英] Failing to connect to pervasive database in Ruby on Rails using odbc

查看:85
本文介绍了无法使用 odbc 连接到 Ruby on Rails 中的普及数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 Pervasive V10 服务器 x86 和 odbc gem.每当我请求从数据库中获取数据时,我都会收到以下错误IM003 (160) 由于系统错误 1114 无法加载指定的驱动程序:动态链接库 (DLL) 初始化例程失败.(Pervasive ODBC Client Interface, C:\Program Files (x86)\Pervasive Software\PSQL\bin\w3odbcci.dll)"

I have installed Pervasive V10 server x86 and odbc gem. Whenever i make a request to fetch data from the database, I get the following error "IM003 (160) Specified driver could not be loaded due to system error 1114: A dynamic link library (DLL) initialization routine failed. (Pervasive ODBC Client Interface, C:\Program Files (x86)\Pervasive Software\PSQL\bin\w3odbcci.dll)"

推荐答案

1114错误的两个主要原因是:

The two main causes of the 1114 error are:

  • 驱动程序 (w3odbcci.dll) 的路径 (C:\Program Files (x86)\Pervasive Software\PSQL\bin) 不在系统路径中.
  • 您使用了错误的位数.您的 Ruby on Rails 是 32 位还是 64 位?您需要使用与 Ruby on Rails 环境相同的位驱动程序.如果是 64 位,则需要 64 位驱动程序.

这篇关于无法使用 odbc 连接到 Ruby on Rails 中的普及数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆