[elephant-devel] "file is not of required architecture"

Leslie P. Polzer sky at viridian-project.de
Tue Nov 10 08:36:08 UTC 2009


Sebastian Tennant wrote:
> Hi list,
>
> elephant-1.0            (git)
> SBCL                    (git)
> Intel Core 2 Duo        MacOS X Leopard
>
> I built and installed BerkeleyDB 4.5 as per /src/contrib/henrik's script.  It
> compiled prefectly cleanly, withtout any problems at all.

Is there a specific reason you're not using 4.7?


>  $ file /usr/local/BerkeleyDB.4.5/lib/libdb-4.5.dylib
>  libdb-4.5.dylib: Mach-O dynamically linked shared library i386
>
> But:
>
>  $ file ~/clbuild/source/elephant/src/memutil/libmemutil.dylib
>  libmemutil.dylib: Mach-O 64-bit bundle x86_64
>
> so I wonder if there's a way to tell BDB to build 64-bit dynamic libraries, or
> if that's even the problem.

Yes, I think that's your problem. Try

  export CFLAGS=-march=x86_64

before running configure and make for BDB.
Or just try your operating system's BDB package.


> For instance, how to test my BerkeleyDB installation without using elephant?

There's a test suite in the BDB source tree. Or you could write a small test
program in C.

  Leslie

-- 
http://www.linkedin.com/in/polzer





More information about the elephant-devel mailing list