 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Wolfgang gr
RE: DB2 9.7 + Rails 3.0.7 + Ruby 1.9.2 problem [ reply ] 2011-05-18 08:46
|
I executed the commands from cmd but the problem still exisits!
set PATH=C:\db2_cli_odbc_driver\clidriver\bin;%PATH%
set LIB=C:\db2_cli_odbc_driver\clidriver\lib;%LIB%
Here is the exact output of ruby -v
C:\Users\Administrator>ruby -v
ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
|
By: Wolfgang gr
RE: DB2 9.7 + Rails 3.0.7 + Ruby 1.9.2 problem [ reply ] 2011-05-18 08:37
|
Thank you for your answer, I will check this as soon as possible.
I am currently using ruby 1.9.2
Shall I execute the set PATH and set LIB commands on cmd or shall I put them into environment variables with right-clicking onto "computer" -> Advanced?
the exact error message is:
LoadError: 14001: The application has failed to start because its side-
by-side configuration is incorrect. Please see the application event
log or use the comma
nd-line sxstrace.exe tool for more detail. - C:/Ruby192/lib/ruby/gems/
1.9.1/gems/ibm_db-2.5.6-x86-mingw32/lib/mswin32/rb19x/ibm_db.so
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
59:in `require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
59:in `rescue in require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
35:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ibm_db-2.5.6-x86-mingw32/lib/
mswin32/ibm_db.rb:1:in `<top (required)>'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
36:in `require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
36:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ibm_db-2.5.6-x86-mingw32/lib/
IBM_DB.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from (irb):1
from C:/Ruby192/bin/irb:12:in `<main>'
irb(main):002:0>
|
By: Praveen Devarao
RE: DB2 9.7 + Rails 3.0.7 + Ruby 1.9.2 problem [ reply ] 2011-05-16 12:14
|
Hi Wolfgang,
You mentioned you got a DB2CLI.dll not found error initially. Could you let me know the complete error message that you encountered.
Firstly, don't copy over the DB2CLI.ddl into bin directory under ruby. It is possible that ruby found DB2CLI.ddl but DB2CLI.dll is not able to find its dependencies. Hence would suggest that you put back the DB2CLI.ddl in its original location and then set your environment variables PATH and LIB to the bin and lib directory where the DB2CLI.dll is present.
Say you have your Data Server Driver installed at C:\sqllib and DB2CLI.dll is found in C:\sqllib\bin then set the environment variables as below
set PATH=C:\sqllib\bin;%PATH%
set LIB=C:\sqllib\lib;%LIB%
Can you let me know your ruby version [ruby -v]
Thanks
Praveen
|
By: Wolfgang gr
RE: DB2 9.7 + Rails 3.0.7 + Ruby 1.9.2 problem [ reply ] 2011-05-15 08:20
|
Thank you Praveen for your quick reply, I've downloaded the 32 bit version now (IBM Data Server Driver for ODBC and CLI (Windows/x86-32 32 bit) V9.7 Fix Pack 3a) and replaced the DB2CLI.dll but the problem remains!
C:\>irb
irb(main):001:0> require 'mswin32/ibm_db'
NOTE: Gem::Specification#default_executable= is deprecated with no replacement.
It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from C:/Ruby192/lib/ruby/gems/1.9.
1/specifications/rubygems-update-1.8.2.gemspec:11.
LoadError: 14001: The application has failed to start because its side-by-side c
onfiguration is incorrect. Please see the application event log or use the comma
nd-line sxstrace.exe tool for more detail. - C:/Ruby192/lib/ruby/gems/1.9.1/ge
ms/ibm_db-2.5.6-x86-mingw32/lib/mswin32/rb19x/ibm_db.so
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:i
n `require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:i
n `rescue in require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i
n `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ibm_db-2.5.6-x86-mingw32/lib/ms
win32/ibm_db.rb:1:in `<top (required)>'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:i
n `require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:i
n `rescue in require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:i
n `require'
from (irb):1
from C:/Ruby192/bin/irb:12:in `<main>'
Any other ideas?
|
By: Praveen Devarao
RE: DB2 9.7 + Rails 3.0.7 + Ruby 1.9.2 problem [ reply ] 2011-05-15 03:30
|
Hi Wolfgang,
Looks like you have downloaded and installed the 64-bit version of the IBM Data Server Driver package. Could you download the 32-bit version of the same and then try using the ibm_db gem. Given that ruby installer installs 32-bit version only there might be a mismatch on the 32/64 bit front.
Also you will need to issue
require 'mswin32/ibm_db' when on windows.
Thanks
Praveen
|
By: Wolfgang gr
DB2 9.7 + Rails 3.0.7 + Ruby 1.9.2 problem [ reply ] 2011-05-14 17:41
|
Hi all,
i am using Windows Server 2008 R2 and try to get RoR to work for the last three days. Basically I did the following
1) Installed Ruby 1.9.2 with Ruby installer
2) Installed gem
3) Installed ruby
4) installed DB2 with gem install ibm_db
When I enetered irb and executed the command "require 'ibm_db'" as suggested here http://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.apdv.ruby.doc/doc/t0052765.html I got an error, that the DB2CLI.dll is missing, so I did some internet research and found out here that the installation of "IBM Data Server Driver for ODBC and CLI (Windows/x86-64 64 bit) V9.7 Fix Pack 4" is necessary. So I installed it but the error message still appeared, so I manually copied "C:\db2_cli_odbc_driver\clidriver\bin" to "C:\Ruby192\bin"
When I executed the command "require 'ibm_db'" again, the following error message appeared:
irb(main):001:0> require 'ibm_db'
LoadError: 14001: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the comma
nd-line sxstrace.exe tool for more detail. - C:/Ruby192/lib/ruby/gems/1.9.1/gems/ibm_db-2.5.6-x86-mingw32/lib/mswin32/rb19x/ibm_db.so
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ibm_db-2.5.6-x86-mingw32/lib/mswin32/ibm_db.rb:1:in `<top (required)>'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/ibm_db-2.5.6-x86-mingw32/lib/IBM_DB.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:33:in `require'
from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from (irb):1
from C:/Ruby192/bin/irb:12:in `<main>'
irb(main):002:0>
I also installed VC_redist 2005 and 2010.
I hope that anybody can help me with that problem.
|
|
 |