santana / ruby-informix

Ruby library for IBM Informix
http://ruby-informix.rubyforge.org
Other
17 stars 7 forks source link

Error installing the gem on windows 7 #4

Closed ericksm3 closed 1 year ago

ericksm3 commented 6 years ago

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 commented 6 years ago

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.

santana commented 6 years ago

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}
ericksm3 commented 6 years ago

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.

dcharan commented 6 years ago

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

santana commented 1 year ago

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