Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Apache module, compiled from source, which works just fine with the stock Apache 2.2 on Mac OS X 10.5 through 10.7. However, under the Apache 2.2.22 installed by MacPorts, running /opt/local/apache2/bin/httpd -t errors with Symbol not found: _sqlite3_bind_text.

I've verified that MacPorts' SQLite is installed, but neither the current 3.7.11 nor 3.6.12, which is the version that Snow Leopard ships with, works. I've also changed the makefile to reference /opt/local/apache2/include and /opt/local/include instead of /usr/include. Not being to familiar with such compilation, I don't know what to check for next.

share|improve this question
up vote 0 down vote accepted

All I had to do was add this line to the makefile:

Darwin_LIBS += -lsqlite3

and the resulting module now works with MacPorts' Apache.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.