2013-01-24 124 views
3

我在Debian wheezy覆盆子pi上運行ruby和ruby寶石。乘客安裝Apache錯誤

Apache: 
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1. 
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1. 

然後它開始編譯時,它顯示了這一點::

Compiling and installing Apache 2 module... 
cd /usr/lib/ruby/gems/1.9.1/gems/passenger-3.0.19 
/usr/bin/ruby1.9.1 /usr/bin/rake apache2:clean apache2 RELEASE=yes 
# /usr/bin/ruby1.9.1 /usr/bin/rake apache2:clean apache2 RELEASE=yes 
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1. 
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1. 
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1. 
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1. 
rm -rf ext/common/libboost_oxt.a ext/common/libboost_oxt 
rm -rf ext/common/libpassenger_common.a ext/common/libpassenger_common 
rm -f agents/PassengerWatchdog agents/PassengerLoggingAgent 
rm -rf ext/apache2/module_libboost_oxt.a ext/apache2/module_libboost_oxt 
rm -rf ext/apache2/module_libpassenger_common.a ext/apache2/module_libpassenger_common 
rm -rf ext/apache2/Configuration.o ext/apache2/Bucket.o ext/apache2/Hooks.o ext/apache2/mod_passenger.o ext/apache2/mod_passenger.so agents/PassengerHelperAgent 
mkdir -p ext/apache2/module_libpassenger_common 
g++ -Iext -Iext/common -Iext/libev -fPIC -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DBOOST_SP_USE_PTHREADS -DHAS_ALLOCA_H -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/apache2/module_libpassenger_common/aggregate.o -c ext/apache2/module_libpassenger_common/aggregate.cpp 
rm -rf ext/apache2/module_libpassenger_common.a 
ar cru ext/apache2/module_libpassenger_common.a ext/apache2/module_libpassenger_common/aggregate.o 
ranlib ext/apache2/module_libpassenger_common.a 
mkdir -p ext/apache2/module_libboost_oxt 
g++ -Iext -fPIC -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx" -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DBOOST_SP_USE_PTHREADS -DHAS_ALLOCA_H -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/apache2/module_libboost_oxt/aggregate.o -c ext/apache2/module_libboost_oxt/aggregate.cpp 
In file included from ext/boost/src/pthread/thread.cpp:27:0, 
       from ext/apache2/module_libboost_oxt/aggregate.cpp:6: 
ext/boost/src/pthread/timeconv.inl: In function âvoid {anonymous}::to_time(int, boost::xtime&)â: 
ext/boost/src/pthread/timeconv.inl:22:9: warning: variable âresâ set but not used [-Wunused-but-set-variable] 
ext/boost/src/pthread/timeconv.inl: In function âvoid {anonymous}::to_timespec_duration(const boost::xtime&, timespec&)â: 
ext/boost/src/pthread/timeconv.inl:59:9: warning: variable âresâ set but not used [-Wunused-but-set-variable] 
ext/boost/src/pthread/timeconv.inl: In function âvoid {anonymous}::to_duration(boost::xtime, int&)â: 
ext/boost/src/pthread/timeconv.inl:90:9: warning: variable âresâ set but not used [-Wunused-but-set-variable] 
ext/boost/src/pthread/timeconv.inl: In function âvoid {anonymous}::to_microduration(boost::xtime, int&)â: 
ext/boost/src/pthread/timeconv.inl:112:9: warning: variable âresâ set but not used [-Wunused-but-set-variable] 
當我運行安裝的Apache2和乘客寶石後 passenger-install-apache2-module命令,它檢查所有的組件都安裝時給出了這樣的

我已經嘗試重新安裝Apache和乘客,但錯誤依然存在。否則Apache正常工作。

編輯:未安裝apache標頭時,未發生'未初始化值'警告。一旦我安裝了它們,就會發生錯誤。

回答

1

我遇到過類似的問題,但沒有覆盆子pi。有一種解決方法,不要從寶石安裝乘客,而是使用命令「aptitude install libapache2-mod-passenger」。它可以工作,導致debian包通常具有經過良好測試的質量,您最好利用它。