[Xapian-discuss] ruby bindings, ruby 1.9.3 and xapian
Rafi
webdeveloper at poczta.onet.pl
Thu Jul 26 19:09:11 BST 2012
Hello,
I've problem with xapian or sth.
Ubuntu 8.04, ruby 1.9.3 with rvm, when Im trying to initialize
database, Im getting this error:
irb > require 'xapian'
==> true
irb > database = Xapian::WritableDatabase.new('/full_path/db/xapian_db/development', Xapian::DB_CREATE_OR_OPEN)
ArgumentError: Wrong arguments for overloaded method 'WritableDatabase.new'.
Possible C/C++ prototypes are:
WritableDatabase.new()
WritableDatabase.new(std::string const &path, int action)
WritableDatabase.new(Xapian::WritableDatabase const &other)
from (irb):2:in `initialize'
from (irb):2:in `new'
from (irb):2
from script/rails:6:in `require'
from script/rails:6:in `<main>
If I use
any idea what Im doing wrong?
for example:
database = Xapian::Database.new()
==> #<Xapian::Database:0x94fbb3c>
and when I set path, I get error
database = Xapian::Database.new('db/xapian_db/development/')
ArgumentError: Wrong arguments for overloaded method 'Database.new'.
Possible C/C++ prototypes are:
Database.new()
Database.new(std::string const &path)
Database.new(Xapian::Database const &other)
from (irb):5:in `initialize'
from (irb):5:in `new'
from (irb):5
any help will be very welcome :)
--
Best regards,
Rafi mailto:webdeveloper at poczta.onet.pl
More information about the Xapian-discuss
mailing list