Compiler errors, cannot find some system header files

7 views
Skip to first unread message

Jeremy

unread,
Dec 18, 2009, 1:44:57 AM12/18/09
to Phusion Passenger Discussions
I'm trying to install Passenger on my MacBook (latest version of Snow
Leopard), and I'm getting some really crazy error messages. Here's a
snapshot of the problem:

mkdir -p ext/apache2/libpassenger_common
g++ -Iext -Iext/common -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -
I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -arch
i386 -arch ppc -arch x86_64 -arch ppc64 -D_REENTRANT -I/usr/local/
include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o ext/
apache2/libpassenger_common/Utils.o -c ext/common/Utils.cpp
In file included from ext/boost/config/no_tr1/utility.hpp:21,
from ext/boost/config/select_stdlib_config.hpp:20,
from ext/boost/config.hpp:40,
from ext/boost/thread/detail/platform.hpp:14,
from ext/boost/thread/tss.hpp:9,
from ext/oxt/system_calls.hpp:28,
from ext/common/Utils.cpp:26:
/usr/include/c++/4.2.1/utility:65:28: error: bits/c++config.h: No such
file or directory

The "locate" command shows me that I *do* have the "missing" header
file:

/usr/include/c++/4.2.1/i686-apple-darwin10/bits/c++config.h
/usr/include/c++/4.2.1/powerpc-apple-darwin10/bits/c++config.h
/usr/include/c++/4.2.1/x86_64-apple-darwin10/bits/c++config.h
# plus some others

FWIW, here's the start of the install script's output:

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 /opt/local/bin/rake
* rack... found
* Apache 2... found at /usr/sbin/httpd
* Apache 2 development headers... found at /usr/sbin/apxs
* 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

Ruby is coming from MacPorts; everything else is from Apple.

I've got no good read on this problem at all, and I'd appreciate any
push anyone can give me.

jdf

Hongli Lai

unread,
Dec 20, 2009, 11:57:49 AM12/20/09
to phusion-passenger
On Fri, Dec 18, 2009 at 7:44 AM, Jeremy <jdf...@gmail.com> wrote:
> I'm trying to install Passenger on my MacBook (latest version of Snow
> Leopard), and I'm getting some really crazy error messages.  Here's a
> snapshot of the problem:
>
> mkdir -p ext/apache2/libpassenger_common
> g++ -Iext -Iext/common -fPIC -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -
> I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/apache2 -arch
> i386 -arch ppc -arch x86_64 -arch ppc64 -D_REENTRANT -I/usr/local/
> include -Wall -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o ext/
> apache2/libpassenger_common/Utils.o -c ext/common/Utils.cpp
> In file included from ext/boost/config/no_tr1/utility.hpp:21,
>                 from ext/boost/config/select_stdlib_config.hpp:20,
>                 from ext/boost/config.hpp:40,
>                 from ext/boost/thread/detail/platform.hpp:14,
>                 from ext/boost/thread/tss.hpp:9,
>                 from ext/oxt/system_calls.hpp:28,
>                 from ext/common/Utils.cpp:26:
> /usr/include/c++/4.2.1/utility:65:28: error: bits/c++config.h: No such
> file or directory

I think your C++ compiler is broken. Try reinstalling the dev tools.


--
Phusion | The Computer Science Company

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

Reply all
Reply to author
Forward
0 new messages