passenger-install-apache2-module fails - httpd.h file missing

1,073 views
Skip to first unread message

mar...@4playtheband.co.uk

unread,
Oct 23, 2013, 9:55:38 AM10/23/13
to phusion-...@googlegroups.com

Here is the full dump incase it helps:


Martins-MacBook-Pro:crm.fluency.net.uk martin$ sudo passenger-install-apache2-module

Password:

/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.21/bin/passenger-install-apache2-module:36: warning: Insecure world writable dir /Users/martin/.rbenv/versions in PATH, mode 040777

Welcome to the Phusion Passenger Apache 2 module installer, v4.0.21.


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...


 * Checking for C compiler...

      Found: yes

      Location: /usr/bin/cc

 * Checking for C++ compiler...

      Found: yes

      Location: /usr/bin/c++

 * Checking for Curl development headers with SSL support...

      Found: yes

      Header location: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/curl/curl.h

      Supports SSL: yes

      Version: libcurl 7.30.0

      curl-config location: /usr/bin/curl-config

      Usable: yes

 * Checking for OpenSSL development headers...

      Found: yes

      Location: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/openssl/ssl.h

 * Checking for Zlib development headers...

      Found: yes

      Location: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/zlib.h

 * Checking for Ruby development headers...

      Found: yes

      Location: /Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/i686-darwin12.4.0/ruby.h

 * Checking for OpenSSL support for Ruby...

      Found: yes

 * Checking for RubyGems...

      Found: yes

 * Checking for Rake (associated with /Users/martin/.rbenv/versions/1.8.7-p374/bin/ruby)...

      Found: yes

      Location: /Users/martin/.rbenv/versions/1.8.7-p374/bin/ruby /Users/martin/.rbenv/versions/1.8.7-p374/bin/rake

 * Checking for rack...

      Found: yes

 * Checking for Apache 2...

      Found: yes

      Apache version: 2.2.24

      Location of httpd: /usr/sbin/httpd

 * Checking for Apache 2 development headers...

      Found: yes

      Location of apxs2: /usr/sbin/apxs

 * Checking for Apache Portable Runtime (APR) development headers...

      Found: yes

      Version: 1.4.5

      Location: /usr/bin/apr-1-config

 * Checking for Apache Portable Runtime Utility (APU) development headers...

      Found: yes

      Version: 1.3.12

      Location: /usr/bin/apu-1-config


--------------------------------------------


Sanity checking Apache installation...


--------------------------------------------

Compiling and installing Apache 2 module...

cd /Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.21

/Users/martin/.rbenv/versions/1.8.7-p374/bin/ruby /Users/martin/.rbenv/versions/1.8.7-p374/bin/rake apache2:clean apache2 RELEASE=yes

# /Users/martin/.rbenv/versions/1.8.7-p374/bin/ruby /Users/martin/.rbenv/versions/1.8.7-p374/bin/rake apache2:clean apache2 RELEASE=yes

/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.21/lib/phusion_passenger/platform_info.rb:349: warning: Insecure world writable dir /Users/martin/.rbenv/versions in PATH, mode 040777

rm -rf buildout/common/libboost_oxt.a buildout/common/libboost_oxt

rm -f buildout/common/libpassenger_common/Logging.o buildout/common/libpassenger_common/Exceptions.o buildout/common/libpassenger_common/Utils/SystemTime.o buildout/common/libpassenger_common/Utils/StrIntUtils.o buildout/common/libpassenger_common/Utils/IOUtils.o buildout/common/libpassenger_common/Utils.o

rm -f buildout/common/libpassenger_common/agents/LoggingAgent/FilterSupport.o

rm -f buildout/common/libpassenger_common/Utils/Base64.o buildout/common/libpassenger_common/Utils/CachedFileStat.o buildout/common/libpassenger_common/Utils/LargeFiles.o buildout/common/libpassenger_common/ApplicationPool2/Implementation.o buildout/common/libpassenger_common/ApplicationPool2/AppTypes.o buildout/common/libpassenger_common/AgentsStarter.o buildout/common/libpassenger_common/AgentsBase.o buildout/common/libpassenger_common/Utils/MD5.o buildout/common/libpassenger_common/Utils/fib.o buildout/common/libpassenger_common/Utils/jsoncpp.o

rm -rf buildout/common/libpassenger_common

rm -rf buildout/agents/

rm -rf buildout/apache2/module_libboost_oxt.a buildout/apache2/module_libboost_oxt

rm -f buildout/apache2/module_libpassenger_common/Logging.o buildout/apache2/module_libpassenger_common/Exceptions.o buildout/apache2/module_libpassenger_common/Utils/SystemTime.o buildout/apache2/module_libpassenger_common/Utils/StrIntUtils.o buildout/apache2/module_libpassenger_common/Utils/IOUtils.o buildout/apache2/module_libpassenger_common/Utils.o

rm -f buildout/apache2/module_libpassenger_common/agents/LoggingAgent/FilterSupport.o

rm -f buildout/apache2/module_libpassenger_common/Utils/Base64.o buildout/apache2/module_libpassenger_common/Utils/CachedFileStat.o buildout/apache2/module_libpassenger_common/Utils/LargeFiles.o buildout/apache2/module_libpassenger_common/ApplicationPool2/Implementation.o buildout/apache2/module_libpassenger_common/ApplicationPool2/AppTypes.o buildout/apache2/module_libpassenger_common/AgentsStarter.o buildout/apache2/module_libpassenger_common/AgentsBase.o buildout/apache2/module_libpassenger_common/Utils/MD5.o buildout/apache2/module_libpassenger_common/Utils/fib.o buildout/apache2/module_libpassenger_common/Utils/jsoncpp.o

rm -rf buildout/apache2/module_libpassenger_common

rm -rf buildout/apache2/Bucket.o buildout/apache2/Configuration.o buildout/apache2/Hooks.o buildout/apache2/mod_passenger.o buildout/apache2/mod_passenger.so

mkdir -p buildout/apache2/module_libpassenger_common

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Logging.o -c ext/common/Logging.cpp

mkdir -p buildout/apache2/module_libpassenger_common/Utils

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Utils/IOUtils.o -c ext/common/Utils/IOUtils.cpp

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Utils/SystemTime.o -c ext/common/Utils/SystemTime.cpp

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Utils.o -c ext/common/Utils.cpp

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Exceptions.o -c ext/common/Exceptions.cpp

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Utils/StrIntUtils.o -c ext/common/Utils/StrIntUtils.cpp

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Utils/MD5.o -c ext/common/Utils/MD5.cpp

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Utils/Base64.o -c ext/common/Utils/Base64.cpp

mkdir -p buildout/apache2/module_libpassenger_common/ApplicationPool2

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/ApplicationPool2/AppTypes.o -c ext/common/ApplicationPool2/AppTypes.cpp

c++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libpassenger_common/Utils/LargeFiles.o -c ext/common/Utils/LargeFiles.cpp

mkdir -p buildout/apache2/module_libboost_oxt/boost

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/boost/lockpool.o -c ext/boost/libs/atomic/lockpool.cpp

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/boost/error_code.o -c ext/boost/libs/system/src/error_code.cpp

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/boost/future.o -c ext/boost/libs/thread/src/future.cpp

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/boost/once.o -c ext/boost/libs/thread/src/pthread/once.cpp

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/boost/once_atomic.o -c ext/boost/libs/thread/src/pthread/once_atomic.cpp

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/boost/thread.o -c ext/boost/libs/thread/src/pthread/thread.cpp

In file included from ext/boost/libs/thread/src/pthread/thread.cpp:30:

ext/boost/libs/thread/src/pthread/./timeconv.inl:51:13: warning: unused function 'to_time' [-Wunused-function]

inline void to_time(int milliseconds, timespec& ts)

            ^

ext/boost/libs/thread/src/pthread/./timeconv.inl:71:13: warning: unused function 'to_timespec_duration' [-Wunused-function]

inline void to_timespec_duration(const boost::xtime& xt, timespec& ts)

            ^

ext/boost/libs/thread/src/pthread/./timeconv.inl:104:13: warning: unused function 'to_duration' [-Wunused-function]

inline void to_duration(boost::xtime xt, int& milliseconds)

            ^

ext/boost/libs/thread/src/pthread/./timeconv.inl:126:13: warning: unused function 'to_microduration' [-Wunused-function]

inline void to_microduration(boost::xtime xt, int& microseconds)

            ^

4 warnings generated.

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/boost/tss_null.o -c ext/boost/libs/thread/src/tss_null.cpp

mkdir -p buildout/apache2/module_libboost_oxt/oxt

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/oxt/implementation.o -c ext/oxt/implementation.cpp

c++ -Iext -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHAS_UNORDERED_MAP -o buildout/apache2/module_libboost_oxt/oxt/system_calls.o -c ext/oxt/system_calls.cpp

mkdir -p buildout/apache2/module_libboost_oxt

rm -rf buildout/apache2/module_libboost_oxt.a

ar cru buildout/apache2/module_libboost_oxt.a buildout/apache2/module_libboost_oxt/boost/lockpool.o buildout/apache2/module_libboost_oxt/boost/error_code.o buildout/apache2/module_libboost_oxt/boost/future.o buildout/apache2/module_libboost_oxt/boost/once.o buildout/apache2/module_libboost_oxt/boost/once_atomic.o buildout/apache2/module_libboost_oxt/boost/thread.o buildout/apache2/module_libboost_oxt/boost/tss_null.o buildout/apache2/module_libboost_oxt/oxt/implementation.o buildout/apache2/module_libboost_oxt/oxt/system_calls.o

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: buildout/apache2/module_libboost_oxt.a(tss_null.o) has no symbols

ranlib buildout/apache2/module_libboost_oxt.a

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: buildout/apache2/module_libboost_oxt.a(tss_null.o) has no symbols

cc  -Iext -Iext/common -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o buildout/apache2/mod_passenger.o -c ext/apache2/mod_passenger.c

ext/apache2/mod_passenger.c:25:10: fatal error: 'httpd.h' file not found

#include <httpd.h>

         ^

1 error generated.

rake aborted!

Command failed with status (1): [cc  -Iext -Iext/common -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -g -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o buildout/apache2/mod_passenger.o -c ext/apache2/mod_passenger.c]


Tasks: TOP => apache2 => buildout/apache2/mod_passenger.so => buildout/apache2/mod_passenger.o

(See full trace by running task with --trace)


--------------------------------------------


It looks like something went wrong


Please read our Users guide for troubleshooting tips:


   /Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.21/doc/Users guide Apache.html

   http://www.modrails.com/documentation/Users%20guide%20Apache.html


If that doesn't help, please use our support facilities. We'll do our best to help you.


   http://www.phusionpassenger.com/support


The above is the command ran with sudo, without sudo used to do the same until I ran it as sudo, now it fails earlier:


Martins-MacBook-Pro:crm.fluency.net.uk martin$ passenger-install-apache2-module

/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.21/bin/passenger-install-apache2-module:36: warning: Insecure world writable dir /Users/martin/.rbenv/versions in PATH, mode 040777

Welcome to the Phusion Passenger Apache 2 module installer, v4.0.21.


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...


 * Checking for C compiler...

      Found: yes

      Location: /usr/bin/cc

 * Checking for C++ compiler...

      Found: yes

      Location: /usr/bin/c++

 * Checking for Curl development headers with SSL support...

      Found: yes

      curl-config location: /usr/bin/curl-config

      Version: libcurl 7.30.0

      Supports SSL: yes

      Usable: yes

      Header location: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/curl/curl.h

 * Checking for OpenSSL development headers...

      Found: yes

      Location: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/openssl/ssl.h

 * Checking for Zlib development headers...

      Found: yes

      Location: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/zlib.h

 * Checking for Ruby development headers...

      Found: yes

      Location: /Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/1.8/i686-darwin12.4.0/ruby.h

 * Checking for OpenSSL support for Ruby...

      Found: yes

 * Checking for RubyGems...

      Found: yes

 * Checking for Rake (associated with /Users/martin/.rbenv/versions/1.8.7-p374/bin/ruby)...

      Found: yes

      Location: /Users/martin/.rbenv/versions/1.8.7-p374/bin/ruby /Users/martin/.rbenv/versions/1.8.7-p374/bin/rake

 * Checking for rack...

      Found: yes

 * Checking for Apache 2...

      Found: yes

      Location of httpd: /usr/sbin/httpd

      Apache version: 2.2.24

 * Checking for Apache 2 development headers...

      Found: yes

      Location of apxs2: /usr/sbin/apxs

 * Checking for Apache Portable Runtime (APR) development headers...

      Found: yes

      Location: /usr/bin/apr-1-config

      Version: 1.4.5

 * Checking for Apache Portable Runtime Utility (APU) development headers...

      Found: yes

      Location: /usr/bin/apu-1-config

      Version: 1.3.12


--------------------------------------------


Sanity checking Apache installation...


--------------------------------------------

Compiling and installing Apache 2 module...

cd /Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.21

/Users/martin/.rbenv/versions/1.8.7-p374/bin/ruby /Users/martin/.rbenv/versions/1.8.7-p374/bin/rake apache2:clean apache2 RELEASE=yes

# /Users/martin/.rbenv/versions/1.8.7-p374/bin/ruby /Users/martin/.rbenv/versions/1.8.7-p374/bin/rake apache2:clean apache2 RELEASE=yes

/Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.21/lib/phusion_passenger/platform_info.rb:349: warning: Insecure world writable dir /Users/martin/.rbenv/versions in PATH, mode 040777

rm -rf buildout/common/libboost_oxt.a buildout/common/libboost_oxt

rm -f buildout/common/libpassenger_common/Logging.o buildout/common/libpassenger_common/Exceptions.o buildout/common/libpassenger_common/Utils/SystemTime.o buildout/common/libpassenger_common/Utils/StrIntUtils.o buildout/common/libpassenger_common/Utils/IOUtils.o buildout/common/libpassenger_common/Utils.o

rm -f buildout/common/libpassenger_common/agents/LoggingAgent/FilterSupport.o

rm -f buildout/common/libpassenger_common/Utils/Base64.o buildout/common/libpassenger_common/Utils/CachedFileStat.o buildout/common/libpassenger_common/Utils/LargeFiles.o buildout/common/libpassenger_common/ApplicationPool2/Implementation.o buildout/common/libpassenger_common/ApplicationPool2/AppTypes.o buildout/common/libpassenger_common/AgentsStarter.o buildout/common/libpassenger_common/AgentsBase.o buildout/common/libpassenger_common/Utils/MD5.o buildout/common/libpassenger_common/Utils/fib.o buildout/common/libpassenger_common/Utils/jsoncpp.o

rm -rf buildout/common/libpassenger_common

rm -rf buildout/agents/

rm -rf buildout/apache2/module_libboost_oxt.a buildout/apache2/module_libboost_oxt

rm: buildout/apache2/module_libboost_oxt/boost/error_code.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/boost/future.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/boost/lockpool.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/boost/once.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/boost/once_atomic.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/boost/thread.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/boost/tss_null.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/boost: Permission denied

rm: buildout/apache2/module_libboost_oxt/oxt/implementation.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/oxt/system_calls.o: Permission denied

rm: buildout/apache2/module_libboost_oxt/oxt: Permission denied

rm: buildout/apache2/module_libboost_oxt: Directory not empty

rake aborted!

Command failed with status (1): [rm -rf buildout/apache2/module_libboost_ox...]


Tasks: TOP => apache2:clean

(See full trace by running task with --trace)


--------------------------------------------


It looks like something went wrong


Please read our Users guide for troubleshooting tips:


   /Users/martin/.rbenv/versions/1.8.7-p374/lib/ruby/gems/1.8/gems/passenger-4.0.21/doc/Users guide Apache.html

   http://www.modrails.com/documentation/Users%20guide%20Apache.html


If that doesn't help, please use our support facilities. We'll do our best to help you.


   http://www.phusionpassenger.com/support

Hongli Lai

unread,
Oct 23, 2013, 10:05:13 AM10/23/13
to phusion-passenger
This is a known problem. I think the Mavericks upgrade messed up the
Apache headers, but I don't know yet how to fix this. More
investigation is required.

Have you already tried reinstalling the Developer Tools?
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> For more options, visit https://groups.google.com/groups/opt_out.



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

mar...@4playtheband.co.uk

unread,
Oct 23, 2013, 11:18:36 AM10/23/13
to
Hi Hongli Lai, 

Nice to see you here, I didn't realise who you were when you answered my question on Stack Overflow :) 

I finally found out how to fix it, see here:


If anyone can't access the above link then you just run xcode-select --install on the command line (after updating or installing xcode).

The only problem I have now is that my app is only accessible via localhost:3000 instead of localhost like before. I just stopped apache and it has made no difference - the app is still running on port 3000. If you know how to fix that so that it's running on port 80 again that would be great.

Hongli Lai

unread,
Oct 23, 2013, 11:25:26 AM10/23/13
to phusion-passenger
The Mavericks upgrade probably installed a new, or modified an
existing, Apache config file. You should check all your config files
for interfering config directives.

On Wed, Oct 23, 2013 at 5:17 PM, <mar...@4playtheband.co.uk> wrote:
> Hi Hongli,
>
> Nice to see you here, I didn't realise who you were when you answered my
> question on Stack Overflow :)
>
> I finally found out how to fix it, see here:
>
> http://stackoverflow.com/questions/19543094/apache-httpd-h-file-missing-on-macosx-after-mavericks-upgrade/19544471?noredirect=1#19544471
>
> If anyone can't access the above link then you just run xcode-select
> --install on the command line (after updating or installing xcode).
>
> The only problem I have now is that my app is only accessible via
> localhost:3000 instead of localhost like before. I just stopped apache and
> it has made no difference - the app is still running on port 3000. If you
> know how to fix that so that it's running on port 80 again that would be
> great.
>
>
> On Wednesday, October 23, 2013 2:55:38 PM UTC+1, mar...@4playtheband.co.uk
> wrote:
>>

mar...@4playtheband.co.uk

unread,
Oct 24, 2013, 4:10:15 AM10/24/13
to phusion-...@googlegroups.com
An update to my apache question with passenger only working on port 3000 instead of 80, it's another apache issue caused by Mavericks.


Basically, restore the httpd.conf.pre-update file in /etc/apache2, if you updated the passenger gem to 4.0.21 remember and update the last three lines in the file aswell.


On Wednesday, October 23, 2013 2:55:38 PM UTC+1, mar...@4playtheband.co.uk wrote:
Reply all
Reply to author
Forward
0 new messages