[MacPorts] #16559: Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45 problem)
MacPorts
noreply at macports.org
Tue Sep 16 12:24:58 PDT 2008
#16559: Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45
problem)
---------------------------+------------------------------------------------
Reporter: i at foohack.com | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: Port Bugs
Component: ports | Version: 1.6.0
Keywords: | Port:
---------------------------+------------------------------------------------
The apache2 port fails on Leopard with this error:
`/opt/local/share/apr-1/build/libtool --silent --mode=link
/usr/bin/gcc-4.0 -I/opt/local/include -O2 -L/opt/local/lib/db44
-L/opt/local/lib -o htpasswd htpasswd.lo -L/opt/local/lib -lpcre
/opt/local/lib/libaprutil-1.la -ldb-4.5 -lsqlite3 -lexpat -liconv
/opt/local/lib/libapr-1.la -lpthread
ld: library not found for -ldb-4.5
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1`
I was able to find the required libraries and fix the problem like this:
`cd /opt/local/lib
sudo ln -s db45/libdb* .`
which links the library files from local/db45/lib into local/lib, where
apache2 expects to find them.
--
Ticket URL: <http://trac.macports.org/ticket/16559>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list