Opened 16 years ago

Last modified 14 years ago

#16559 closed defect

Leopard apache2 fails with "ld: library not found for -ldb-4.5" (db45 problem) — at Initial Version

Reported by: i@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: apache2

Description

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.

Change History (1)

Changed 16 years ago by i@…

The error code and the workaround

Note: See TracTickets for help on using tickets.