Subject: Missing files in 2.7.0 package?
Author: misuba
Posted: 02/16/2006 03:13PM
Should there be files named yamlstore.rb, gdbmstore.rb, etc. in the db directory of the 2.7.0 repo and zip file? Because there sure seem not to be. tmud.rb gets very unhappy when it tries to include them, and commenting out the part where it includes them results in more unhappiness still.
Looking forward to getting this to run...
reply
Subject: Missing files in 2.7.0 package?
Author: misuba
Posted: 02/16/2006 03:18PM
D'oh. Found my error, but darned if I can make it any happier. dbmstore.rb is looking for dbm and not finding it. Are there required gems or a version of ruby that I don't know about?
reply
Subject: Missing files in 2.7.0 package?
Author: misuba
Posted: 02/16/2006 03:38PM
I have all the requirements. I am running on WinXP
? via the One-Click Ruby Installer. yaml/dbm.rb seems to want to require itself. All I've got at this point is that there are some .so files in the cygwin version of Ruby that say dbm on them. I'm not going that route, so I guess I am looking elsewhere for my MUD joy. Blah
reply
Subject: Missing files in 2.7.0 package?
Author: Massaria
Posted: 02/16/2006 05:00PM
misuba wrote:
> I'm not going that route, so I guess I am looking elsewhere for my MUD joy. Blah
Suit yourself, but given time and a look at the actual errors, we... Well Tyche at least, could probably help you out.
Via con dios!
reply
Subject: Missing files in 2.7.0 package?
Author: misuba
Posted: 02/16/2006 07:54PM
Massaria wrote:
> misuba wrote:
> > I'm not going that route, so I guess I am looking elsewhere for my MUD joy. Blah
>
> Suit yourself, but given time and a look at the actual errors, we... Well Tyche at least, could probably help you out.
>
> Via con dios!
Sorry. The error is still that it isn't finding dbm.rb to include. That error is happening *in* dbm.rb, though... yaml's dbm.rb. Apparently there is some other dbm.rb. My guess is it comes standard with ruby, but for whatever damned reason, my One-Click install from months and months ago did not impart it to me.
Ok, let me fish it out:
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__': No
such file to load -- dbm (LoadError
?)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re
quire'
from c:/ruby/lib/ruby/1.8/yaml/dbm.rb:2
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re
quire__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re
quire'
from ./lib/db/dbmstore.rb:14
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re
quire__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `re
quire'
from tmud.rb:35
reply
Subject: Missing files in 2.7.0 package?
Author: Tyche
Posted: 02/17/2006 08:23AM
Sounds like a ruby installation problem. There ought to be a dbm.so in /lib/ruby/1.8/i386-mswin32
I've only tested sdbm and yaml under the Windows only version.
I've tested dbm, gdbm, sdbm and yaml under Unices and Cygwin.
Some Windows one-click installer versions have gdbm, some don't. I don't know why.
So you might want to change config.yaml to use :yaml or :sdbm if running in Windows.
# Type of database
#
# Valid values are: :yaml, :gdbm, :sdbm, :dbm
#
dbtype: :dbm
reply
Subject: Missing files in 2.7.0 package?
Author: misuba
Posted: 02/17/2006 11:35AM
Frustrating that something so basic isn't covered by the one-click installer. But anyway this is working now. Sorry I wasn't reading the errors carefully enough to start.
Does sdbm refer to sqlite? Or is that still pending?
Thanks!
reply
Subject: Missing files in 2.7.0 package?
Author: Tyche
Posted: 02/18/2006 10:38PM
misuba wrote:
> Does sdbm refer to sqlite? Or is that still pending?
>
sdbm (or Substitute DBM) is a hash-style database like dbm and gdbm.
I'm still working on sqlite support.
It should be a completely transparent addition.
reply