ruby-informix icon indicating copy to clipboard operation
ruby-informix copied to clipboard

Error installing the gem on windows 7

Open ericksm3 opened this issue 7 years ago • 4 comments

Hello, Santana!

Im having an error while trying to install the gem on a windows 7 64 bits instance with ruby 2.3.1

error

It says that the directory or file coud not be found, but both exists.

I went into the folder via command line and did the "esql -e informixc.ec" that the gem installation was trying to do, with the .ec file from here:

https://github.com/santana/ruby-informix/blob/master/ext/informixc.ec

And got not response:

error2

Can you please help me?

ericksm3 avatar Apr 26 '18 18:04 ericksm3

For anyone looking for an answer, i had to use the odbc gem to connect with IBM informix and create a DSN for it.

https://github.com/localytics/odbc_adapter

Closing the issue.

ericksm3 avatar May 09 '18 19:05 ericksm3

Hi @ericksm3

it looks like the problem is that the path to the esql program includes spaces and I failed to add quotes around the variable holding that PATH.

Can you please try again, replacing this line:

%x{#{env} #{esql} -e informixc.ec}

with this:

%x{#{env} "#{esql}" -e informixc.ec}

santana avatar May 09 '18 22:05 santana

Hi, thanks for the answer.

Yeah it was that, i've tried changing folders but got another error, as described here: https://github.com/santana/ruby-informix/issues/2

Had to switch to ODBC still. Seems that its not working on windows 7.

ericksm3 avatar May 09 '18 22:05 ericksm3

I think its more to do with ruby version. I was on 1.9 and when I updated the ruby to > 2.2 then I got the error #2

dcharan avatar May 17 '18 23:05 dcharan

original and follow up issue were addressed; closing this issue.

santana avatar Apr 08 '23 17:04 santana