Elephant: Component "ele-bdb" not found

22 views
Skip to first unread message

Nik

unread,
Nov 17, 2011, 9:17:45 AM11/17/11
to weblocks
Hi folks!

Sorry for posting this Elephant specific issue to this list.
Unfortunately, my original posting to the Elephant mailing list
was blocked.

Maybe somebody on this list had a similar problem in the past
and can help me to fix it.

I have installed Elephant (elephant-20111001-darcs)
via Quicklisp. Following the installation guide I have
compiled and installed Berkeley DB 4.5 from the source
and modified my-config.sexp in the root directory
of Elephant accordingly.

After loading "elephant" I have tried to open
a sample store and got the follwoing error:

--------------------------------------------------------------------
CL-USER> (ql:quickload :elephant)
To load "elephant":
Load 1 ASDF system:
elephant
; Loading "elephant"
Attempting to load libmemutil.so...
Loaded /home/nik/.cache/common-lisp/ccl-1.7-f95-linux-x64/home/nik/
quicklisp/dists/quicklisp/software/elephant-20111001-darcs/src/memutil/
libmemutil.so

(:ELEPHANT)
CL-USER> (defpackage #:test
(:use :cl :elephant))
#<Package "TEST">
CL-USER> (in-package :test)
#<Package "TEST">
TEST> (open-store '(:BDB "/home/nik/tmp/test-db/"))

Component "ele-bdb" not found
[Condition of type ASDF:MISSING-COMPONENT]

Restarts:
0: [RETRY] Retry SLIME REPL evaluation request.
1: [*ABORT] Return to SLIME's top level.
2: [ABORT-BREAK] Reset this thread
3: [ABORT] Kill this thread
--------------------------------------------------------------------

I'm using Clozure CL 1.7-r14925M on Archlinux (64bit).
I have installed BerkeleyDB 4.5 in /usr/local/lisp/elephant/
BerkelyDB-4.5:

tar -xzf db-4.5.20.tar.gz; cd db-4.5.20/build_unix;
../dist/configure --prefix=/usr/local/lisp/elephant/BerkelyDB-4.5;
make; make install

Here is the content of my-config.sexp:
---------------------------------------------------------------------------
;; ==============
;; Linux defaults
;; ==============
;;
#+(and (or sbcl allegro openmcl lispworks) (not (or mswindows windows
win32)) (not (or macosx darwin)))
((:compiler . :gcc)
(:berkeley-db-version . "4.5")
(:berkeley-db-include-dir . "/usr/local/lisp/elephant/BerkeleyDB-4.5/
include/")
(:berkeley-db-lib-dir . "/usr/local/lisp/elephant/BerkeleyDB-4.5/
lib/")
(:berkeley-db-lib . "/usr/local/lisp/elephant/BerkeleyDB-4.5/lib/
libdb-4.5.so")
(:berkeley-db-deadlock . "/usr/local/lisp/elephant/BerkeleyDB-4.5/bin/
db_deadlock")
(:berkeley-db-cachesize . 20971520)
(:berkeley-db-max-locks . 2000)
(:berkeley-db-max-objects . 2000)
(:berkeley-db-max-transactions . 1000)
(:berkeley-db-map-degree2 . t)
(:berkeley-db-mvcc . nil)
(:clsql-lib-paths . nil)
(:prebuilt-libraries . nil)
(:warn-when-dropping-persistent-slots . t)
(:return-null-on-missing-instance . t)
(:no-deserialization-package-found-action . :warn))
---------------------------------------------------------------------------

Any help is very much appreciated!

Regards
Nik

PS: I also tested it using SBCL 1.0.52 and got the same error!

Leslie P. Polzer

unread,
Nov 17, 2011, 10:47:09 AM11/17/11
to webl...@googlegroups.com

Nik wrote:

> Component "ele-bdb" not found
> [Condition of type ASDF:MISSING-COMPONENT]

I think it's a QL bug. They need to include ele-bdb.asd in their
Elephant system file.

Leslie

> --
> You received this message because you are subscribed to the Google Groups "weblocks"
> group.
> To post to this group, send email to webl...@googlegroups.com.
> To unsubscribe from this group, send email to weblocks+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/weblocks?hl=en.
>
>
>


--


Nik

unread,
Nov 17, 2011, 2:35:00 PM11/17/11
to weblocks
You are right.

I have put an appropriate "ele-bdb.txt" file into systems directory
and added the line "elephant ele-bdb ele-bdb uffi elephant" to the
"systems.txt"
file. And voila, it works now!

Thank you!

On Nov 17, 4:47 pm, "Leslie P. Polzer" <s...@viridian-project.de>
wrote:
Reply all
Reply to author
Forward
0 new messages