Oracle Full Client

1. Download source code

Download ruby-oci8-VERSION.tar.gz from rubyforge.

note: 1.0 is stable version. 2.0-unstable is in development.

2. Check whether ruby is in PATH.

UNIX

 $ ruby -v
 ruby 1.8.5 (2006-08-25) [i486-linux]

Windows

 C:\> ruby -v
 ruby 1.8.5 (2006-08-25) [i386-mswin32]

3. Check whether make is in PATH.

UNIX or Windows(cygwin, mingw32)

 $ which make

Windows(mswin32)

 C:\> nmake /?

If it cannot be found, run vcvars32.bat and check it again.

 C:\> C:\Program Files\Microsoft Visual Studio\VC98\Bin\vcvars32.bat
 C:\> nmake /?

4. Check whether sqlplus runs correctly.

UNIX

 $ sqlplus USERNAME/PASSWORD

Windows

 C:\> sqlplus USERNAME/PASSWORD

5. Check library search path.

UNIX

Set your OS's library search path to point to $ORACLE_HOME/lib. If the database is 64-bit and the ruby is 32-bit, use $ORACLE_HOME/lib32 instead.

OSEnvironment Variable Name
LinuxLD_LIBRARY_PATH
Solaris 32-bit rubyLD_LIBRARY_PATH_32 or LD_LIBRARY_PATH
Solaris 64-bit rubyLD_LIBRARY_PATH_64 or LD_LIBRARY_PATH
HP-UX PA-RISC 32-bit rubySHLIB_PATH
HP-UX PA-RISC 64-bit rubyLD_LIBRARY_PATH
HP-UX IA64LD_LIBRARY_PATH
Mac OS XDYLD_LIBRARY_PATH
AIXLIBPATH

Do not forget to export the variable.

 $ LD_LIBRARY_PATH=$ORACLE_HOME/lib
 $ export LD_LIBRARY_PATH

Windows

If sqlplus runs correctly, library search path has no problem.

6. make and install

If you have a problem, report me.

UNIX or Windows(cygwin, mingw32)

 gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
 cd ruby-oci8-VERSION
 make
 make install

note: If you use sudo, use it only when running 'make install'. sudo doesn't pass library search path to the executing command for security reasons.

Windows(mswin32)

 gzip -dc ruby-oci8-VERSION.tar.gz | tar xvf -
 cd ruby-oci8-VERSION
 nmake
 nmake install
Last modified:2007/10/11 15:14:54
Keyword(s):
References:[SideMenu] [Platform Specific Issues] [How to Install]