[ruby-oci8-commit] [443] trunk/ruby-oci8: warn when the Oracle instant client is 64-bit on OS X Lion.
nobody at rubyforge.org
nobody at rubyforge.org
Tue Aug 23 06:58:33 EDT 2011
Revision: 443
Author: kubo
Date: 2011-08-23 06:58:33 -0400 (Tue, 23 Aug 2011)
Log Message:
-----------
warn when the Oracle instant client is 64-bit on OS X Lion.
Modified Paths:
--------------
trunk/ruby-oci8/ChangeLog
trunk/ruby-oci8/ext/oci8/oraconf.rb
Modified: trunk/ruby-oci8/ChangeLog
===================================================================
--- trunk/ruby-oci8/ChangeLog 2011-08-21 13:33:54 UTC (rev 442)
+++ trunk/ruby-oci8/ChangeLog 2011-08-23 10:58:33 UTC (rev 443)
@@ -1,3 +1,7 @@
+2011-08-23 KUBO Takehiro <kubo at jiubao.org>
+ * ext/oci8/oraconf.rb: warn when the Oracle instant client is
+ 64-bit on OS X Lion.
+
2011-08-19 KUBO Takehiro <kubo at jiubao.org>
* ext/oci8/bind.c, ext/oci8/oci8.c, ext/oci8/oci8.h, ext/oci8/ocinumber.c,
lib/oci8/properties.rb: Decimal to float and float to decimal conversions
Modified: trunk/ruby-oci8/ext/oci8/oraconf.rb
===================================================================
--- trunk/ruby-oci8/ext/oci8/oraconf.rb 2011-08-21 13:33:54 UTC (rev 442)
+++ trunk/ruby-oci8/ext/oci8/oraconf.rb 2011-08-23 10:58:33 UTC (rev 443)
@@ -1136,6 +1136,18 @@
else
# 10.1.0 doesn't have OCI_MAJOR_VERSION and OCI_MINOR_VERSION in oci.h.
@version = "1010"
+ if RUBY_PLATFORM =~ /darwin/ and 1.size == 8 and `sw_vers -productVersion`.chomp == "10.7"
+ $stderr.print <<EOS
+WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN!
+
+64-bit Oracle instant client doesn't work on OS X Lion.
+See: https://forums.oracle.com/forums/thread.jspa?threadID=2187558
+
+The compilation is continued because the issue may be fixed in future.
+
+WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN! WARN!
+EOS
+ end
end
return
end
More information about the ruby-oci8-commit
mailing list