Other changes include:
- the tests now load the extension just built, instead of the one installed
- adds a gemspec file, that replaces the old Rakefile, to build the gem
- Rakefile is now used for running the tests, passing the name of the database to test against as a task argument
- when installing the gem a warning is printed if INFORMIXDIR is not set and exits, instead of trying to guess and failing miserably
You'll need to have the test-unit gem installed in order to run the tests.

3 comments:
Hi,
I am trying to install ruby-informix 0.8 using gem and get the following error:
Building native extensions. This could take a while...
ERROR: Error installing ruby-informix:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
Set the Informix environment variables before installing this library
I have downloaded the Informix Client SDK Developer Edition for Linux x86, 32-bit from IBM website.
I have set an env variable:
INFORMIX=/root/informix_driver/
but whenever i run: gem install ruby-informix I get the same error.
Whats the correct setup?
Try this:
export INFORMIXDIR=/opt/IBM/informix
sudo -E gem install ruby-informix
Using activerecord-informix-adapter with rails 3.2 when I write a Prepared statement I get an error.
Informix::DatabaseError: Prepared statement is not a cursor specification:
I was searching for the cursor method but couldn't find it.
How to properly execute prepared statements in informix and rails?
Post a Comment