update apr-util fails looking for Berkeley DB

Daniel J. Luke dluke at geeklair.net
Fri Jul 15 08:03:39 PDT 2011


On Jul 14, 2011, at 7:54 PM, Gwen Barnes wrote:
> 
> I'm trying to update apr-util (a dependency for subversion, which I'm
> trying to update.)
> 
> My installed ports list includes a current version of db46, which
> apr-util says it depends on:
> 
>> db46 @4.6.21_6 (active)

From your main.log:

:info:configure checking for Berkeley DB 4.6 in /opt/local/include and /opt/local/lib/db46... 
:info:configure checking db46/db.h usability... yes
:info:configure checking db46/db.h presence... yes
:info:configure checking for db46/db.h... yes
:info:configure checking for -ldb-4.6... no

so, it's finding the headers, but not seeing the dylib.

You should have a file /opt/local/lib/db46/libdb-4.6.dylib

You might want to use the 'file' command and make sure it contains the right architecture for your system:

% file /opt/local/lib/db46/libdb-4.6.dylib
/opt/local/lib/db46/libdb-4.6.dylib: Mach-O universal binary with 2 architectures
/opt/local/lib/db46/libdb-4.6.dylib (for architecture i386):	Mach-O dynamically linked shared library i386
/opt/local/lib/db46/libdb-4.6.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64

if it's not there, or is of the wrong architecture, you'll want to fix that (sudo port uninstall db46 && sudo port clean --all db46 && sudo port install db46)

--
Daniel J. Luke                                                                   
+========================================================+                        
| *---------------- dluke at geeklair.net ----------------* |                          
| *-------------- http://www.geeklair.net -------------* |                          
+========================================================+                        
|   Opinions expressed are mine and do not necessarily   |                          
|          reflect the opinions of my employer.          |                          
+========================================================+





More information about the macports-users mailing list