Compiling Oracle extension under Windows

Three weeks ago, I posted a message (which was a bit cryptic I’ll admit) about
compiling the Oracle extension under Cygwin and got no response. I’m beginning
to take the hint that Cygwin is ‘processa non grata’ as far as Ruby and Windows
is concerned.

So I’ve installed the proper Windows distribution of Ruby, and still am unable
to compile the Oracle (OCI) package by Yoshida Masato. The instructions are
for VC++ and Cygwin. I don’t have VC++, and am not using Cygwin, so I’m trying
to use MinGW, which is like halfway between.

And I’m basically not getting anywhere. I have many times compiled programs
under Unix (and Cygwin), but Windows seems to me to be an appalling development
environment from this point of view.

If anyone has successfully compiled the Oracle OCI under Windows, please let
me know
. I’ve looked through the ruby-talk archives, and it seems that this
topic never gets answered.

Regards,
Gavin

···


Gavin Sinclair Software Engineer
Sydney, Australia Soyabean Software Pty Ltd

Three weeks ago, I posted a message (which was a bit cryptic I’ll admit)
about
compiling the Oracle extension under Cygwin and got no response. I’m
beginning
to take the hint that Cygwin is ‘processa non grata’ as far as Ruby and
Windows
is concerned.

So I’ve installed the proper Windows distribution of Ruby, and still am
unable
to compile the Oracle (OCI) package by Yoshida Masato. The instructions are
for VC++ and Cygwin. I don’t have VC++, and am not using Cygwin, so I’m
trying
to use MinGW, which is like halfway between.

And I’m basically not getting anywhere. I have many times compiled programs
under Unix (and Cygwin), but Windows seems to me to be an appalling
development
environment from this point of view.

If anyone has successfully compiled the Oracle OCI under Windows, please let
me know
. I’ve looked through the ruby-talk archives, and it seems that this
topic never gets answered.

Regards,
Gavin


Gavin Sinclair Software Engineer
Sydney, Australia Soyabean Software Pty Ltd

And still no answer.

I just got it running under AIX. First time, no problem. That’ll do for now,
I guess.

···

From: “Gavin Sinclair” gsinclair@soyabean.com.au

Hello,

“Gavin Sinclair” gsinclair@soyabean.com.au writes:

Three weeks ago, I posted a message (which was a bit cryptic I’ll admit) about
compiling the Oracle extension under Cygwin and got no response.

I know the solution.
When you make libOCI.a, don’t run:
dlltool -d OCI.def -D $ORACLE_HOME/BIN/OCI.DLL -l libOCI.a
but run:
dlltool -d OCI.def -D OCI.DLL -l libOCI.a

The comment in extconf.rb makes a mistake.

···


KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

Three weeks ago, I posted a message (which was a bit cryptic I’ll admit)
about
compiling the Oracle extension under Cygwin and got no response.

I know the solution.
When you make libOCI.a, don’t run:
dlltool -d OCI.def -D $ORACLE_HOME/BIN/OCI.DLL -l libOCI.a
but run:
dlltool -d OCI.def -D OCI.DLL -l libOCI.a

The comment in extconf.rb makes a mistake.


KUBO Takehiro

Thanks for that; I’ll try it under Cygwin again.

Gavin

···

From: “KUBO Takehiro” kubo@jiubao.org