[ruby-oci8-commit] [442] web/hiki_data: update http://ruby-oci8.rubyforge.org
nobody at rubyforge.org
nobody at rubyforge.org
Sun Aug 21 09:33:54 EDT 2011
Revision: 442
Author: kubo
Date: 2011-08-21 09:33:54 -0400 (Sun, 21 Aug 2011)
Log Message:
-----------
update http://ruby-oci8.rubyforge.org
Modified Paths:
--------------
web/hiki_data/en/info.db
web/hiki_data/en/text/FAQ_uninstall
web/hiki_data/en/text/FrontPage
web/hiki_data/en/text/PlatformSpecificIssue
web/hiki_data/ja/info.db
web/hiki_data/ja/text/FAQ_uninstall
web/hiki_data/ja/text/FrontPage
web/hiki_data/ja/text/PlatformSpecificIssue
Modified: web/hiki_data/en/info.db
===================================================================
--- web/hiki_data/en/info.db 2011-08-19 13:19:35 UTC (rev 441)
+++ web/hiki_data/en/info.db 2011-08-21 13:33:54 UTC (rev 442)
@@ -64,7 +64,7 @@
:freeze => false,
:keyword => [
],
-:last_modified => Time.at(1169528599),
+:last_modified => Time.at(1298351291),
:references => [
],
:title => "How to uninstall ruby-oci8",
@@ -75,7 +75,7 @@
:freeze => false,
:keyword => [
],
-:last_modified => Time.at(1256185375),
+:last_modified => Time.at(1276000575),
:references => [
"InstallForInstantClient",
],
@@ -160,7 +160,7 @@
:freeze => false,
:keyword => [
],
-:last_modified => Time.at(1234097653),
+:last_modified => Time.at(1313933077),
:references => [
"InstallForFullClient",
],
Modified: web/hiki_data/en/text/FAQ_uninstall
===================================================================
--- web/hiki_data/en/text/FAQ_uninstall 2011-08-19 13:19:35 UTC (rev 441)
+++ web/hiki_data/en/text/FAQ_uninstall 2011-08-21 13:33:54 UTC (rev 442)
@@ -1,10 +1,25 @@
-Delete the following three files.
-* oci8.rb
-* oci8lib.so
-* DBD/OCI8/OCI8.rb
+'gem uninstall ruby-oci8' for gem packages.
+Otherwise, run the following commands and look downward.
-''oci8.rb'' and ''DBD/OCI8/OCI8.rb'' are in sitelib directory:
ruby -r rbconfig -e "puts Config::CONFIG['sitelibdir']"
+ ruby -r rbconfig -e "puts Config::CONFIG['sitearchdir']"
+ # Use rbx command instead of ruby for rubinius.
-''oci8lib.so'' is in sitearch directory:
- ruby -r rbconfig -e "puts Config::CONFIG['sitearchdir']"
+! ruby-oci8 2.0
+
+Delete the following files in in Config::CONFIG['sitelibdir'].
+* oci8.rb
+* oci8/*
+* dbd/OCI8.rb
+
+Delete the following file in in Config::CONFIG['sitearchdir'].
+* oci8lib_18.so, oci8lib_191.so or oci8lib_rbx18.so
+
+! ruby-oci8 1.0
+
+Delete the following two files in in Config::CONFIG['sitelibdir'].
+* oci8.rb
+* dbd/OCI8.rb or DBD/OCI8/OCI8.rb
+
+Delete the following file in in Config::CONFIG['sitearchdir'].
+* oci8lib.so
Modified: web/hiki_data/en/text/FrontPage
===================================================================
--- web/hiki_data/en/text/FrontPage 2011-08-19 13:19:35 UTC (rev 441)
+++ web/hiki_data/en/text/FrontPage 2011-08-21 13:33:54 UTC (rev 442)
@@ -7,3 +7,5 @@
! Sample one-liner
connect to scott/tiger, select emp and print as CSV format.
ruby -r oci8 -e "OCI8.new('scott', 'tiger').exec('select * from emp') do |r| puts r.join(','); end"
+
+If you install a ruby-oci8 gem package, you may need to add "-rubygems" before "-r oci8."
Modified: web/hiki_data/en/text/PlatformSpecificIssue
===================================================================
--- web/hiki_data/en/text/PlatformSpecificIssue 2011-08-19 13:19:35 UTC (rev 441)
+++ web/hiki_data/en/text/PlatformSpecificIssue 2011-08-21 13:33:54 UTC (rev 442)
@@ -1,17 +1,31 @@
! Mac OS X
-You need to delete '-arch ppc' or '-arch i386' in rbconfig.rb because
-the ruby distributed with Mac is universal binary but the Oracle instant
-client is not.
-See: [[How to setup Ruby and new Oracle Instant Client on Leopard|http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/]].
-(PowerPC mac users need to swap ppc and i386 in the blog.)
+!! OS X 10.7 Lion
+64-bit instant client doesn't work. Use 32-bit instant client or jruby.
+
+See:
+* http://rubyforge.org/forum/forum.php?thread_id=49548&forum_id=1078
+* https://forums.oracle.com/forums/thread.jspa?threadID=2187558
+
+!! Intel Mac (64-bit)
+
+See [[How to setup Ruby and Oracle Instant Client on Snow Leopard|http://blog.rayapps.com/2009/09/06/how-to-setup-ruby-and-oracle-instant-client-on-snow-leopard/]]. Note that setting the environment variable RC_ARCHS=x86_64 instead of ARCHFLAGS="-arch x86_64" will work fine also.
+
+!! Intel Mac (32-bit)
+
+See [[How to setup Ruby and Oracle Instant Client on Snow Leopard|http://blog.rayapps.com/2009/09/06/how-to-setup-ruby-and-oracle-instant-client-on-snow-leopard/]]. Note that you need to replace x86_64 with i386 in the blog.
+
The Intel Instant client is for Mac OS X 10.5 Leopard. If you are using 10.4 Tiger,
use one of the following workarounds.
# compile ruby as ppc. (look at [[How to setup Ruby and Oracle client on Intel Mac|http://blog.rayapps.com/2007/08/27/how-to-setup-ruby-and-oracle-client-on-intel-mac/]])
# use [[ruby-odbc|http://www.ch-werner.de/rubyodbc/]] and a third party ODBC driver ([[Actual Technologies|http://www.actualtechnologies.com/]] or [[OpenLink Software|http://uda.openlinksw.com/]]).
# use JRuby and Oracle JDBC driver.
+!! PowerPC Mac
+
+See [[How to setup Ruby and Oracle Instant Client on Snow Leopard|http://blog.rayapps.com/2009/09/06/how-to-setup-ruby-and-oracle-instant-client-on-snow-leopard/]]. Note that you need to replace x86_64 with ppc in the blog.
+
! Solaris
You need a same compiler which is used to make ruby itself.
@@ -27,6 +41,14 @@
If you use Blastwave.org's ruby and want not to install Sun Studio,
you can edit rbconfig.rb by your self. [[(look at here)|http://forum.textdrive.com/viewtopic.php?id=12630]]
+If you use Sunfreeware.com's ruby and
+ $ ruby -r rbconfig -e "p Config::CONFIG['GNU_LD']"
+prints "yes", you may need to edit rbconfig.rb distributed with the ruby
+as follows:
+
+ from: CONFIG["LDFLAGS"] = "-L. -Wl,-E"
+ to: CONFIG["LDFLAGS"] = "-L. "
+
! Linux
Use the same bit-width of libraries with ruby. For example, x86_64 instant client for x86_64 ruby and 32-bit instant client for 32-bit ruby. It depends on the ruby but not on the OS. As for full client, x86_64 ruby cannot use with 32-bit full client, but 32-bit ruby can use with 64-bit full client because 32-bit libraries are in $ORACLE_HOME/lib32.
Modified: web/hiki_data/ja/info.db
===================================================================
--- web/hiki_data/ja/info.db 2011-08-19 13:19:35 UTC (rev 441)
+++ web/hiki_data/ja/info.db 2011-08-21 13:33:54 UTC (rev 442)
@@ -63,7 +63,7 @@
:freeze => false,
:keyword => [
],
-:last_modified => Time.at(1169620412),
+:last_modified => Time.at(1298351216),
:references => [
],
:title => "\343\202\242\343\203\263\343\202\244\343\203\263\343\202\271\343\203\210\343\203\274\343\203\253\346\226\271\346\263\225",
@@ -74,7 +74,7 @@
:freeze => false,
:keyword => [
],
-:last_modified => Time.at(1256185906),
+:last_modified => Time.at(1276001083),
:references => [
"InstallForInstantClient",
],
@@ -148,7 +148,7 @@
:freeze => false,
:keyword => [
],
-:last_modified => Time.at(1234097682),
+:last_modified => Time.at(1313933203),
:references => [
"InstallForFullClient",
],
Modified: web/hiki_data/ja/text/FAQ_uninstall
===================================================================
--- web/hiki_data/ja/text/FAQ_uninstall 2011-08-19 13:19:35 UTC (rev 441)
+++ web/hiki_data/ja/text/FAQ_uninstall 2011-08-21 13:33:54 UTC (rev 442)
@@ -1,10 +1,25 @@
-以下の3つのファイルを削除してください。
-* oci8.rb
-* oci8lib.so
-* DBD/OCI8/OCI8.rb
+gem パッケージの場合は 'gem uninstall ruby-oci8' を実行してください。
+gem パッケージではない場合は、以下のコマンドの実行後、下の方を参照してください。
-oci8.rb と DBD/OCI8/OCI8.rb は sitelib ディレクトリにあります。
ruby -r rbconfig -e "puts Config::CONFIG['sitelibdir']"
+ ruby -r rbconfig -e "puts Config::CONFIG['sitearchdir']"
+ # rubinius の場合は、ruby の代わりに rbx コマンドを使用
-oci8lib.so は sitearch ディレクトリにあります。
- ruby -r rbconfig -e "puts Config::CONFIG['sitearchdir']"
+! ruby-oci8 2.0
+
+Config::CONFIG['sitelibdir'] の以下のファイルを削除してください。
+* oci8.rb
+* oci8/*
+* dbd/OCI8.rb
+
+Config::CONFIG['sitearchdir'] の以下のファイルを削除してください。
+* oci8lib_18.so, oci8lib_191.so または oci8lib_rbx18.so
+
+! ruby-oci8 1.0
+
+Config::CONFIG['sitelibdir'] の以下のファイルを削除してください。
+* oci8.rb
+* dbd/OCI8.rb または DBD/OCI8/OCI8.rb
+
+Config::CONFIG['sitearchdir'] の以下のファイルを削除してください。
+* oci8lib.so
Modified: web/hiki_data/ja/text/FrontPage
===================================================================
--- web/hiki_data/ja/text/FrontPage 2011-08-19 13:19:35 UTC (rev 441)
+++ web/hiki_data/ja/text/FrontPage 2011-08-21 13:33:54 UTC (rev 442)
@@ -8,3 +8,5 @@
scott/tiger で接続して、emp テーブルを select して、CSV 形式で出力する。
ruby -r oci8 -e "OCI8.new('scott', 'tiger').exec('select * from emp') do |r| puts r.join(','); end"
+
+ruby-oci8 を gem パッケージとしてインストールした場合は、"-r oci8" の前に "-rubygems" を付けないと動かない場合があります。
Modified: web/hiki_data/ja/text/PlatformSpecificIssue
===================================================================
--- web/hiki_data/ja/text/PlatformSpecificIssue 2011-08-19 13:19:35 UTC (rev 441)
+++ web/hiki_data/ja/text/PlatformSpecificIssue 2011-08-21 13:33:54 UTC (rev 442)
@@ -1,20 +1,32 @@
! Mac OS X
-(日本のサイトには Mac OS X 用の instant client はないようです、
-[[英語のサイト|http://www.oracle.com/technology/tech/oci/instantclient/index.html]]にあります。)
+!! OS X 10.7 Lion
-rbconfig.rb から '-arch ppc' または、'-arch i386' を削除してください。
-というのも、Mac 付属の ruby は Universal binary ですが、Oracle instant
-client は Universal binary ではないためです。
-[[How to setup Ruby and new Oracle Instant Client on Leopard|http://blog.rayapps.com/2008/04/24/how-to-setup-ruby-and-new-oracle-instant-client-on-leopard/]] を見てください。
-(PowerPC mac のユーザーは、ブログ中の ppc と i386 を入れ替えてください。)
+64ビット版の Instant Client は動きません。
+32ビット版を使用するか、jruby を使用してください。
+参照URL:
+* http://rubyforge.org/forum/forum.php?thread_id=49548&forum_id=1078
+* https://forums.oracle.com/forums/thread.jspa?threadID=2187558
+
+!! Intel Mac (64-bit)
+
+[[How to setup Ruby and Oracle Instant Client on Snow Leopard|http://blog.rayapps.com/2009/09/06/how-to-setup-ruby-and-oracle-instant-client-on-snow-leopard/]] を参照してください。環境変数 ARCHFLAGS="-arch x86_64" の代わりに、RC_ARCHS=x86_64 でもうまく行きます。
+
+!! Intel Mac (32-bit)
+
+[[How to setup Ruby and Oracle Instant Client on Snow Leopard|http://blog.rayapps.com/2009/09/06/how-to-setup-ruby-and-oracle-instant-client-on-snow-leopard/]] を参照してください。ただし、文書中の x86_64 は i386 に置き換えてください。
+
Intel 版の Instant client は Mac OS X 10.5 Leopard 用です。10.4 Tiger を使用
している場合は、以下の回避策のどれかを使用してください。
# ruby を ppc としてコンパイルする。([[How to setup Ruby and Oracle client on Intel Mac|http://blog.rayapps.com/2007/08/27/how-to-setup-ruby-and-oracle-client-on-intel-mac/]] を参照)
-* [[ruby-odbc|http://www.ch-werner.de/rubyodbc/]]とサードパーティのODBCドライバ([[Actual Technologies|http://www.actualtechnologies.com/]] または [[OpenLink Software|http://uda.openlinksw.com/]])を使用する。
+# [[ruby-odbc|http://www.ch-werner.de/rubyodbc/]]とサードパーティのODBCドライバ([[Actual Technologies|http://www.actualtechnologies.com/]] または [[OpenLink Software|http://uda.openlinksw.com/]])を使用する。
# JRuby と Oracle JDBC driver を使用する。
+!! PowerPC Mac
+
+[[How to setup Ruby and Oracle Instant Client on Snow Leopard|http://blog.rayapps.com/2009/09/06/how-to-setup-ruby-and-oracle-instant-client-on-snow-leopard/]] を参照してください。ただし、文書中の x86_64 は ppc に置き換えてください。
+
! Solaris
ruby 本体をコンパイルしたのと同じコンパイラが必要です。
@@ -28,6 +40,16 @@
Blastwave.orgのrubyを使っていて、Sun Studioをインストールしたくない場合は、rbconfig.rb を手で編集する方法もあります。[[(ここを参照)|http://forum.textdrive.com/viewtopic.php?id=12630]]
+Sunfreeware.comのrubyを使っていて、
+
+ $ ruby -r rbconfig -e "p Config::CONFIG['GNU_LD']"
+
+が "yes" を出力する場合は、rubyと一緒にインストールされる rbconfig.rb を以下のように編集
+する必要があるかもしれません。
+
+ この行を: CONFIG["LDFLAGS"] = "-L. -Wl,-E"
+ このように: CONFIG["LDFLAGS"] = "-L. "
+
! Linux
ruby と同じビット幅のライブラリを使用してください。例えば、 x86_64 版の ruby には x86_64 の instant client, 32ビットの ruby には 32ビットの instant client が必要です。OSのビット数ではなく、ruby のビット幅にのみ依存します。
More information about the ruby-oci8-commit
mailing list