Forum: Ruby on Rails bdb xml

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2e47e5cb83bfb29e87c6aa1495b9837a?d=identicon&s=25 Levent Ali (levent)
on 2006-06-07 13:33
Anybody have any pointers for using BDB XML and Ruby on Rails?

I am developing on Windows XP pro..

I have installed Berkeley DB XML on my system
I have tried gem install rdbxml - this failed at first due to no nmake
I then installed nmake from the Windows support site.
Now when I run gem install rdbxml I get:

--------------

D:\>gem install rdbxml
Attempting local installation of 'rdbxml'
Local gem file not found: rdbxml*.gem
Attempting remote installation of 'rdbxml'
Building native extensions.  This could take a while...

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

swig -ruby -c++ -I. -I/usr/local/include -o ext/db_wrap.cc ext/db.i
ext\db.i(15): Error: Unable to find 'db_cxx.h'
rm -r ext/db_wrap.cc
rm -r ext/db_wrap.obj
rm -r ext/dbxml_wrap.cc
rm -r ext/dbxml_wrap.obj
swig -ruby -c++ -I. -I/usr/local/include -o ext/db_wrap.cc ext/db.i
ext\db.i(15): Error: Unable to find 'db_cxx.h'

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

swig -ruby -c++ -I. -I/usr/local/include -o ext/db_wrap.cc ext/db.i
ext\db.i(15): Error: Unable to find 'db_cxx.h'
ruby extconf.rb install rdbxml

nmake
(in c:/ruby/lib/ruby/gems/1.8/gems/rdbxml-0.6)
rake aborted!
Command failed with status (1): [swig -ruby -c++ -I.
-I/usr/local/include -...]

(See full trace by running task with --trace)
(in c:/ruby/lib/ruby/gems/1.8/gems/rdbxml-0.6)
(in c:/ruby/lib/ruby/gems/1.8/gems/rdbxml-0.6)
rake aborted!
Command failed with status (1): [swig -ruby -c++ -I.
-I/usr/local/include -...]

(See full trace by running task with --trace)

nmake install
(in c:/ruby/lib/ruby/gems/1.8/gems/rdbxml-0.6)
rake aborted!
Command failed with status (1): [swig -ruby -c++ -I.
-I/usr/local/include -...]

(See full trace by running task with --trace)
Successfully installed rdbxml-0.6
Installing RDoc documentation for rdbxml-0.6...

-------------

It seems to have placed the folders in the appropriate folder under
C:\ruby\lib\ruby\gems\1.8\gems\rdbxml-0.6\lib

but when I require 'rdbxml' and try and use RDBXML in the code I get

MissingSourceFile: no such file to load -- db

I'm a real newbie at BDB XML so any help will benefit me..

Thanks,
Levent
D3801b53598b8aa559514fb340a71d66?d=identicon&s=25 Lu Dai (darwin2005)
on 2007-12-21 03:09
i have the same problem with rdbxml, and i trid RAA - bdb 0.62 ,but it
doesn't work too. if you have an answer now, please help me.

Levent Ali wrote:
> Anybody have any pointers for using BDB XML and Ruby on Rails?
This topic is locked and can not be replied to.