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.
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.
| OS | Environment Variable Name |
|---|---|
| Linux | LD_LIBRARY_PATH |
| Solaris 32-bit ruby | LD_LIBRARY_PATH_32 or LD_LIBRARY_PATH |
| Solaris 64-bit ruby | LD_LIBRARY_PATH_64 or LD_LIBRARY_PATH |
| HP-UX PA-RISC 32-bit ruby | SHLIB_PATH |
| HP-UX PA-RISC 64-bit ruby | LD_LIBRARY_PATH |
| HP-UX IA64 | LD_LIBRARY_PATH |
| Mac OS X | DYLD_LIBRARY_PATH |
| AIX | LIBPATH |
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
Keyword(s):
References:[SideMenu] [Platform Specific Issues] [How to Install]