[ruby-oci8-commit] [312] web: * hiki_data/en/text/PlatformSpecificIssue, hiki_data/ja/text/ PlatformSpecificIssue
nobody at rubyforge.org
nobody at rubyforge.org
Sun Feb 1 09:39:26 EST 2009
Revision: 312
Author: kubo
Date: 2009-02-01 09:39:25 -0500 (Sun, 01 Feb 2009)
Log Message:
-----------
* hiki_data/en/text/PlatformSpecificIssue, hiki_data/ja/text/PlatformSpecificIssue
update Mac OS X and FreeBSD information.
Modified Paths:
--------------
web/ChangeLog
web/hiki_data/en/info.db
web/hiki_data/en/text/PlatformSpecificIssue
web/hiki_data/ja/info.db
web/hiki_data/ja/text/PlatformSpecificIssue
Modified: web/ChangeLog
===================================================================
--- web/ChangeLog 2009-01-31 14:17:56 UTC (rev 311)
+++ web/ChangeLog 2009-02-01 14:39:25 UTC (rev 312)
@@ -1,3 +1,7 @@
+2009-02-01 KUBO Takehiro <kubo at jiubao.org>
+ * hiki_data/en/text/PlatformSpecificIssue, hiki_data/ja/text/PlatformSpecificIssue
+ update Mac OS X and FreeBSD information.
+
2008-12-14 KUBO Takehiro <kubo at jiubao.org>
* hiki_data/en/text/PlatformSpecificIssue, hiki_data/ja/text/PlatformSpecificIssue
update FreeBSD information that oracle8-client port doesn't
Modified: web/hiki_data/en/info.db
===================================================================
--- web/hiki_data/en/info.db 2009-01-31 14:17:56 UTC (rev 311)
+++ web/hiki_data/en/info.db 2009-02-01 14:39:25 UTC (rev 312)
@@ -136,9 +136,8 @@
:freeze => false,
:keyword => [
],
-:last_modified => Time.at(1229260669),
+:last_modified => Time.at(1233498784),
:references => [
-"InstallForInstantClient",
"InstallForFullClient",
],
:title => "Platform Specific Issues",
Modified: web/hiki_data/en/text/PlatformSpecificIssue
===================================================================
--- web/hiki_data/en/text/PlatformSpecificIssue 2009-01-31 14:17:56 UTC (rev 311)
+++ web/hiki_data/en/text/PlatformSpecificIssue 2009-02-01 14:39:25 UTC (rev 312)
@@ -1,9 +1,7 @@
! Intel Mac
-Oracle hasn't provided intel mac binary yet.
-[[Oracle Instant Client]] 10.1.0.3 is ppc. It doesn't work with intel ruby.
-
-There are two workarounds.
+The Intel Instant client needs Mac OS X 10.5 Leopard.
+There are two workarounds to work on 10.4 Tiger.
# compile ruby as ppc. (look at [[Raimonds Simanovskis's blog|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/]]).
@@ -28,18 +26,56 @@
To check which type of ruby do you use:
file `which ruby`
-note: '''`''' is a backquote.
+note: '''`''' is a back quote.
! FreeBSD
There are two ways.
-# use ruby and instantclient on linux emulator (Does anyone write the procedure?)
+# use ruby and instant client on linux emulator
# use oracle8-client port
I don't recommend the latter because of the following two reasons.
-# The oracle8-clint port is made from Oracle 8.1.7.1 static library for Linux. Oracle have not supported the connectability between 8.1.7.1 and Oracle 10g.
+# The oracle8-client port is made from Oracle 8.1.7.1 static library for Linux. Oracle have not supported the connectivity between 8.1.7.1 and Oracle 10g.
# It is very unstable. When it fails to connect to an Oracle server, it is down by segmentation fault on FreeBSD 7.0 not only when using ruby-oci8, but also by a very simple test code written by C.
+1. use ruby and instant client on linux emulator
+
+I have not run ruby-oci8 on linux emulator, but I guess it will
+run as follows. If it works, please tell me.
+
+If FreeBSD has a cross-compiler which can generate linux binaries,
+use it to compile ruby and ruby-oci8.
+
+If FreeBSD doesn't have such a compiler, install a linux distribution
+which FreeBSD can emulate to a PC machine, make ruby and ruby-oci8 in
+the linux box and copy them to the FreeBSD box as follows.
+
+ on linux
+ # make ruby
+ tar xvfz ruby-1.8.x.tar.gz
+ cd ruby-1.8.x
+ ./configure --prefix=/usr/local/ruby-1.8.x --enable-pthread
+ make
+ make install
+ # setup instant client
+ ....
+ # make ruby-oci8
+ PATH=/usr/local/ruby-1.8.x/bin:$PATH
+ tar xvfz ruby-oci8-1.0.x.tar.gz
+ cd ruby-oci8-1.0.x
+ make
+ make install
+ cd /usr/local/
+ tar cvfz ruby-1.8.x-linux.tar.gz ruby-1.8.x
+
+ copy ruby-1.8.x-linux.tar.gz to the FreeBSD box.
+
+ on freebsd
+ cd /compat/linux/usr/local
+ tar xvfz ruby-1.8.x-linux.tar.gz
+
+2. use oracle8-client port
+
If you try to use oracle8-client port, compile and install as follows.
* install oracle8-client
cd /usr/ports/databases/oracle8-client
@@ -47,11 +83,6 @@
make install
* set an environment variable ORACLE_HOME
export ORACLE_HOME=/usr/local/oracle8-client
-* extract ruby-oci8 tarball and replace oraconf.rb.
- tar xvfz ruby-oci8-1.0.0-rc3.tar.gz
- cd ruby-oci8-1.0.0-rc3/ext/oci8
- mv oraconf.rb oraconf.rb.orig
- wget http://ruby-oci8.rubyforge.org/svn/branches/ruby-oci8-1.0/ext/oci8/oraconf.rb
The rest procedures are described at [[this page|InstallForFullClient]].
Modified: web/hiki_data/ja/info.db
===================================================================
--- web/hiki_data/ja/info.db 2009-01-31 14:17:56 UTC (rev 311)
+++ web/hiki_data/ja/info.db 2009-02-01 14:39:25 UTC (rev 312)
@@ -135,9 +135,8 @@
:freeze => false,
:keyword => [
],
-:last_modified => Time.at(1229260684),
+:last_modified => Time.at(1233498959),
:references => [
-"InstallForInstantClient",
"InstallForFullClient",
],
:title => "\343\203\227\343\203\251\343\203\203\343\203\210\343\203\225\343\202\251\343\203\274\343\203\240\345\233\272\346\234\211\343\201\256\345\225\217\351\241\214",
Modified: web/hiki_data/ja/text/PlatformSpecificIssue
===================================================================
--- web/hiki_data/ja/text/PlatformSpecificIssue 2009-01-31 14:17:56 UTC (rev 311)
+++ web/hiki_data/ja/text/PlatformSpecificIssue 2009-02-01 14:39:25 UTC (rev 312)
@@ -1,12 +1,10 @@
! Intel Mac
-Oracle は intel mac 用のバイナリを提供していません。
-[[Oracle Instant Client]] 10.1.0.3 は ppc バイナリなので、intel CPU 用の ruby では動かないのです。
(日本のサイトには Mac OS X 用の instant client はないようです、
[[英語のサイト|http://www.oracle.com/technology/tech/oci/instantclient/index.html]]にあります。)
-
-回避策としては以下の2つがあります。
+Intel 版 instant client は Mac OS X 10.5 Leopard 用です。
+10.4 Tiger で動かすには、以下の2つの回避策があります。
* ruby を ppc としてコンパイルする。([[Raimonds Simanovskisさんのblog|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/]])を使用する。
@@ -42,18 +40,51 @@
# oracle8-client port は Linux 版の Oracle 8.1.7.1 静的ライブラリかを元にしていますが、Oracle は 8.1.7.1 と Oracle 10g サーバーとの接続をサポートしていません。
# 非常に不安定です。FreeBSD 7.0 では Oracle への接続が失敗すると Segmentation fault で落ちます。ruby-oci8 を使っているときだけではなく、C言語で書かれた単純なテストコードでも同様です。
-oracle8-client port を使用する場合は以下のようにします。
-* oracle8-client をインストール
+1. instantclient を linux emulator 上の ruby で動かす。
+
+ruby-oci8 を linux emulator 上で動かしたことはないのですが、以下のようにすれば
+動くのではないかと思います。もしも動いたら、連絡下さい。
+
+FreeBSD に linux のバイナリを作成できるクロスコンパイラがあるのならば、
+それを使って ruby と ruby-oci8 を作成してください。
+
+FreeBSD にそのようなコンパイラがないのならば、FreeBSD がエミュレートできる linux
+ディストリビューションを適当なマシンにインストールした上で、以下のように linux 上で
+ruby と ruby-oci8 をコンパイルして FreeBSD にコピーしてください。
+
+ on linux
+ # ruby の作成
+ tar xvfz ruby-1.8.x.tar.gz
+ cd ruby-1.8.x
+ ./configure --prefix=/usr/local/ruby-1.8.x --enable-pthread
+ make
+ make install
+ # instant client のセットアップ
+ ....
+ # ruby-oci8 の作成
+ PATH=/usr/local/ruby-1.8.x/bin:$PATH
+ tar xvfz ruby-oci8-1.0.x.tar.gz
+ cd ruby-oci8-1.0.x
+ make
+ make install
+ cd /usr/local/
+ tar cvfz ruby-1.8.x-linux.tar.gz ruby-1.8.x
+
+ ruby-1.8.x-linux.tar.gz を FreeBSD マシンにコピー
+
+ on freebsd
+ cd /compat/linux/usr/local
+ tar xvfz ruby-1.8.x-linux.tar.gz
+
+2. oracle8-client port を使用。
+
+敢えて oracle8-client port を使用する場合は、以下のようにします。
+* install oracle8-client
cd /usr/ports/databases/oracle8-client
make
make install
* 環境変数 ORACLE_HOME を設定
export ORACLE_HOME=/usr/local/oracle8-client
-* ruby-oci8 のソースコードを展開して oraconf.rb を入れ替える。
- tar xvfz ruby-oci8-1.0.0-rc3.tar.gz
- cd ruby-oci8-1.0.0-rc3/ext/oci8
- mv oraconf.rb oraconf.rb.orig
- wget http://ruby-oci8.rubyforge.org/svn/branches/ruby-oci8-1.0/ext/oci8/oraconf.rb
この後の作業は [[InstallForFullClient]]を見てください。
More information about the ruby-oci8-commit
mailing list