Skip to content

Instantly share code, notes, and snippets.

@jsierles
Created April 2, 2009 18:09
Show Gist options
  • Save jsierles/89323 to your computer and use it in GitHub Desktop.
Save jsierles/89323 to your computer and use it in GitHub Desktop.
Welcome to the Phusion Passenger Apache 2 module installer, v2.1.3.
This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.
Here's what you can expect from the installation process:
1. The Apache 2 module will be installed for you.
2. You'll learn how to configure Apache.
3. You'll learn how to deploy a Ruby on Rails application.
Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.
Press Enter to continue, or Ctrl-C to abort.
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/sbin/apache2
* Apache 2 development headers... found at /usr/bin/apxs2
* fastthread... found
* Apache Portable Runtime (APR) development headers... found at /usr/bin/apr-1-config
* Apache Portable Runtime Utility (APU) development headers... found at /usr/bin/apu-1-config
--------------------------------------------
--------------------------------------------
Compiling and installing Apache 2 module...
cd /usr/local/lib/ruby/gems/1.8/gems/passenger-2.1.3
/usr/local/bin/ruby -S /usr/local/bin/rake clean apache2
(in /usr/local/lib/ruby/gems/1.8/gems/passenger-2.1.3)
### In ext/apache2:
rm -rf SystemTime.o Utils.o Bucket.o Logging.o Configuration.o CachedFileStat.o Hooks.o mod_passenger.o mod_passenger.so ApplicationPoolServerExecutable
rm -r pkg
### In ext/phusion_passenger:
make clean
rm -f Makefile
rm -f ext/libboost_oxt.a ext/boost/src/*.o ext/oxt/*.o
### In test:
rm -f oxt/oxt_test_main oxt/*.o Apache2ModuleTests *.o
### In ext/boost/src:
g++ -I../.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c *.cpp
g++ -I../.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c pthread/exceptions.cpp
g++ -I../.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c pthread/once.cpp
g++ -I../.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c pthread/thread.cpp
### In ext/oxt:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c thread.cpp
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c system_calls.cpp
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c backtrace.cpp
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c tracable_exception.cpp
ar cru ext/libboost_oxt.a ext/boost/src/*.o ext/oxt/*.o
ranlib ext/libboost_oxt.a
### In ext/apache2:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c mod_passenger.c
### In ext/apache2:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c SystemTime.cpp
### In ext/apache2:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c Utils.cpp
### In ext/apache2:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c Bucket.cpp
### In ext/apache2:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c Logging.cpp
### In ext/apache2:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c Configuration.cpp
### In ext/apache2:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c CachedFileStat.cpp
### In ext/apache2:
g++ -I.. -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -c Hooks.cpp
### In ext/apache2:
g++ -shared SystemTime.o Utils.o Bucket.o Logging.o Configuration.o CachedFileStat.o Hooks.o mod_passenger.o -fPIC -o mod_passenger.so ../libboost_oxt.a -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -I/usr/include/mysql -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/mysql -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -fPIC -L/usr/lib -lapr-1 -L/usr/lib -laprutil-1 -lpthread -lstdc++
g++: SystemTime.o: No such file or directory
g++: mod_passenger.o: No such file or directory
g++: ../libboost_oxt.a: No such file or directory
rake aborted!
Command failed with status (1): [g++ -shared SystemTime.o Utils.o Bucket.o ...]
/usr/local/lib/ruby/gems/1.8/gems/passenger-2.1.3/Rakefile:158
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment