 |
Forums |
Admin Start New Thread
| Message: 63193 |
 |
BY: Praveen Devarao (praveend) DATE: 2008-12-18 08:50 SUBJECT: Installing ibm_db gem Hi,
Starting from version 1.0.1 of the ibm_db gem, the environment variables required for installing the gem on Linux/Unix/MacOS X have been made clear. The steps to be followed to install the gem on respective platforms as per the new process is below.
1. Linux/Unix/MacOS X Platforms: -
Follow the steps below
Step 1: - Set the Environment variables IBM_DB_INCLUDE and IBM_DB_LIB as below
$ export IBM_DB_INCLUDE=DB2HOME/include (eg. /home/db2inst1/sqllib/include)
$ export IBM_DB_LIB=DB2HOME/lib (eg. /home/db2inst1/sqllib/lib)
Note: -
1) Setting of IBM_DB_LIB is to be done appropriately according to the architecture for which Ruby is compiled. If Ruby is 32-bit then set IBM_DB_LIB to lib32 directory under DB2HOME. If Ruby is 64-bit then set IBM_DB_LIB to lib64 directory under DB2HOME.
2) The lib directory under DB2HOME is a link to either lib32 or lib64 depending on the Architecture for which DB2 is been installed, you can also set the path to lib directory accordingly.
Step 2: - Source the DB2 profile
$ . /home/db2inst1/sqllib/db2profile (optional)
Step 3: - Issue the command gem install ibm_db
$ gem install ibm_db
Select which gem to install for your platform (i686-linux)
1. ibm_db 1.0.1 (mswin32)
2. ibm_db 1.0.1 (ruby)
3. ibm_db 1.0.0 (ruby)
4. ibm_db 1.0.0 (mswin32)
...
Running gem install ibm_db you are presented with two choices for each release(mswin32 or ruby) choose ruby. This will build the native extension (ibm_db driver) and installs the ibm_db gem.
...
> 2
Building native extensions. This could take a while...
Successfully installed ibm_db-1.0.1
Installing ri documentation for ibm_db-1.0..1...
Installing RDoc documentation for ibm_db-1.0.1...
2. Windows: -
No Change.
Continue to install the gem on the Windows platform, as before, by issuing the command ‘gem install ibm_db’.
C:\ gem install ibm_db
Select which gem to install for your platform (i386-mswin32)
1. ibm_db 1.0.1 (mswin32)
2. ibm_db 1.0.1 (ruby)
3. ibm_db 1.0.0 (ruby)
4. ibm_db 1.0.0 (mswin32)
...
Running gem install ibm_db you are presented with two choices for each release
(mswin32 or ruby) choose mswin32.
...
> 1
Successfully installed ibm_db-1.0.1
Installing ri documentation for ibm_db-1.0..1...
Installing RDoc documentation for ibm_db-1.0.1...
-------------------------------------------------
As always, if you are finding any difficulties or have some suggestions or comments feel free write to us.
Thanks
Praveen
| |
Thread View
Post a followup to this message
|
 |