ruby-on-railsodbcpervasive

How can I connect to pervasive database in ruby on rails?


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)"

I tried installing Pervasive v10 x64 but still it did not work


Solution

  • You must be running on 32 bit ruby when using x86 pervasive, I used to scratch my head a lot over this exact issue