FreeBSD and Phusion Passenger

If I don’t write this one down I won’t remember it, especially at this hour when I finally got it to work! I was having a devil of a time on the passenger-install-apache2-module … While it says it “found” everything, I guess it really didn’t … The Apache2 Portable Runtime stuff apparently needs directories to be found. Inevitably, this is how I got it to work:

setenv APXS2 /usr/local/sbin/apxs
setenv APR_CONFIG /usr/local/lib/apache2/apr-config
setenv APU_CONFIG /usr/local/lib/apache2/apu-config

Of course, I found those one at a time Googling all over the Internet and the last was found within the source notes at github … A bunch of what I found had nothing to do with FBSD … Anyway, so the result should look something like this when run:

Checking for required software...

* GNU C++ compiler... found at /usr/bin/g++
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /usr/local/bin/rake
* Apache 2... found at /usr/local/sbin/httpd
* Apache 2 development headers... found at /usr/local/sbin/apxs
* Apache Portable Runtime (APR) development headers... found at /usr/local/lib/apache2/apr-config
* Apache Portable Runtime Utility (APR) development headers... found at /usr/local/lib/apache2/apu-config
* fastthread... found
* rack... found

Sheesh!

Leave a Reply

Your email address will not be published. Required fields are marked *