This discussion is archived
0 Replies Latest reply: Aug 1, 2012 3:15 PM by 953140 RSS

Building DB with TCL in Windows 7 x64 questions

953140 Newbie
Currently Being Moderated
I apologize in advance for these technically naive questions.

My goal: To build Berkeley DB 5.3.21 on Windows 7 Home Premium SP1 x64 using TCL.

I downloaded "Tcl/Tk 8.5.12" binaries from http://www.tcl.tk/software/tcltk/8.5.html and installed.

I installed DB using the .msi included with the "Berkeley DB 5.3.21.msi Windows installer" and have a working installation with the standard directories bin, build_windows, docs, examples, include, jar, lib, links, sfc.

I needed to build the TCI API. So, I downloaded DB source "DB 5.3.21.NC.zip" and built DB with Berkeley_DB_vs2010.sln in MS VS 2010, "Release", "x64".

Then I changed the Include and Library directories for "db_tcl" in VS per:

http://docs.oracle.com/cd/E17076_02/html/installation/build_win_tcl.html

(The documentation incorrectly says to change "db_java").

Works great. I have libdb_tcl53.dll, libdb_tcl53.exp, libdb_tcl53.lib, libdb_tcl53.pdb in C:\db-5.3.21.NC\build_windows\x64\Release.

I have two questions:

1) My built version in C:\db-5.3.21.NC\build_windows\x64\Release is a large series of directories (e.g., db_archive, ex_btrec) and files (e.g., db_archive.exe, db_archive.pdb, etc.). I'm confused how this relates to my .msi version with the normal set of directories (bin, lib, doc, etc.). I.e., how do I make this "Release" version structured like my ".msi" version? Obviously I'm missing a step that everyone else just "gets".

2) According to Loading Berkeley DB with Tcl:

http://docs.oracle.com/cd/E17076_02/html/programmer_reference/tcl.html#tcl_intro

I need to either:

% pkg_mkIndex /usr/local/BerkeleyDB.5.2/lib libdb_tcl-5.2.so

load /usr/local/BerkeleyDB.5.2/lib/libdb_tcl-5.2.so

But I can't find any .so files let alone this one -- probably should be libdb_tcl-5.3.so but, as I said, there are no .so files anywhere.

What am I missing?

Thanks,

Mark

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points