Skip to content

Instantly share code, notes, and snippets.

@MarkMT
Created January 19, 2013 00:12
Show Gist options
  • Save MarkMT/4569763 to your computer and use it in GitHub Desktop.
Save MarkMT/4569763 to your computer and use it in GitHub Desktop.
$ passenger start -p4000
Nginx core 1.2.6 isn't installed
Phusion Passenger Standalone will automatically install it into:
/home/racine2013/.passenger/standalone/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/nginx-1.2.6
This will only be done once. Please sit back and relax while installation is
in progress.
Checking for required software...
* GNU C++ compiler... found at /usr/bin/g++
* GNU make... found at /usr/bin/make
* A download tool like 'wget' or 'curl'... found at /usr/bin/wget
* Ruby development headers... found
* OpenSSL support for Ruby... found
* RubyGems... found
* Rake... found at /home/racine2013/.rvm/wrappers/ruby-1.9.2-p320@global/rake
* rack... found
* Curl development headers with SSL support... found
* OpenSSL development headers... found
* Zlib development headers... found
* daemon_controller >= 1.0.0... found
Downloading Nginx binaries for your platform, if available...
# wget -O /tmp/racine2013-passenger-standalone-18989/nginx-1.2.6.tar.gz http://standalone-binaries.modrails.com/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/nginx-1.2.6.tar.gz
--2013-01-18 23:44:58-- http://standalone-binaries.modrails.com/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/nginx-1.2.6.tar.gz
Resolving standalone-binaries.modrails.com... 97.107.130.55
Connecting to standalone-binaries.modrails.com|97.107.130.55|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-01-18 23:44:58 ERROR 404: Not Found.
Looks like it's not. But don't worry, the necessary binaries will be compiled from source instead.
Downloading Nginx...
# wget -O /tmp/racine2013-passenger-standalone-18989/nginx-1.2.6.tar.gz http://nginx.org/download/nginx-1.2.6.tar.gz
--2013-01-18 23:44:58-- http://nginx.org/download/nginx-1.2.6.tar.gz
Resolving nginx.org... 206.251.255.63
Connecting to nginx.org|206.251.255.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 726025 (709K) [application/octet-stream]
Saving to: `/tmp/racine2013-passenger-standalone-18989/nginx-1.2.6.tar.gz'
100%[=============================================================================================>] 726,025 735K/s in 1.0s
2013-01-18 23:44:59 (735 KB/s) - `/tmp/racine2013-passenger-standalone-18989/nginx-1.2.6.tar.gz' saved [726025/726025]
Installing Phusion Passenger Standalone...
[******************************** ] Preparing Nginx... /
checking for OS
+ Linux 2.6.35.4-rscloud x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
checking for gcc -pipe switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for sched_setaffinity() ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for nobody group ... not found
checking for nogroup group ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... not found
checking for dlopen() in libdl ... found
checking for sched_yield() ... found
checking for SO_SETFIB ... not found
checking for SO_ACCEPTFILTER ... not found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE, TCP_KEEPINTVL, TCP_KEEPCNT ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for sys_nerr ... found
checking for localtime_r() ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... not found
checking for POSIX semaphores in libpthread ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for openat(), fstatat() ... found
configuring additional modules
adding module in /home/racine2013/.passenger/standalone/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/support/ext/nginx
*** The Phusion Passenger support files are not yet compiled. Compiling them for you... ***
*** Running 'rake nginx RELEASE=yes' in /home/racine2013/.passenger/standalone/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/support/ext/nginx... ***
(in /home/racine2013/.passenger/standalone/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/support)
g++ -Iext -Iext/common -Iext/libev -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -o ext/common/libpassenger_common/aggregate.o -c ext/common/libpassenger_common/aggregate.cpp
rm -rf ext/common/libpassenger_common.a
ar cru ext/common/libpassenger_common.a ext/common/libpassenger_common/aggregate.o
ranlib ext/common/libpassenger_common.a
mkdir -p agents/nginx
g++ ext/nginx/HelperAgent.cpp -o agents/nginx/PassengerHelperAgent -Iext -Iext/common -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS ext/common/libpassenger_common.a ext/common/libboost_oxt.a -lpthread -rdynamic
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
rake aborted!
Command failed with status (1): [g++ ext/nginx/HelperAgent.cpp -o agents/ng...]
/home/racine2013/.passenger/standalone/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/support/build/cplusplus_support.rb:47:in `create_executable'
/home/racine2013/.passenger/standalone/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/support/build/nginx.rb:55:in `block in <top (required)>'
Tasks: TOP => nginx => agents/nginx/PassengerHelperAgent
(See full trace by running task with --trace)
*** ERROR: command failed: sh ./configure --prefix=/tmp --with-cc-opt='-Wno-error' --without-pcre --without-http_rewrite_module --without-http_fastcgi_module '--add-module=/home/racine2013/.passenger/standalone/3.0.19-x86_64-ruby1.9.2-linux-gcc4.4.3-1002/support/ext/nginx'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment