2015-07-22 46 views
0

我在嘗試在Ubuntu 12.04機器上從其源代碼安裝httpd 2.0.49時出現以下錯誤。錯誤:sockopt.c:216:27:錯誤:'SCTP_NODELAY'未申報(首次在此功能中使用)

sudo make 
... 
... 
make[4]: Entering directory `/home/satya/httpd-2.0.49/srclib/apr/network_io/unix' 
/bin/bash /home/satya/httpd-2.0.49/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -D_REENTRANT -D_GNU_SOURCE -I../../include -I../../include/arch/unix -I../../include/arch/unix -c sockopt.c && touch sockopt.lo 
sockopt.c: In function 'apr_socket_opt_set': 
sockopt.c:216:27: error: 'SCTP_NODELAY' undeclared (first use in this function) 

我通過執行sudo apt-get install lksctp-tools命令安裝lksctp和即使在這樣做,我無法編譯httpd和得到同樣的錯誤如上做出一些改動的建議here

回答

0

這是配置腳本中的一個錯誤,它假定sctp即使不存在也是可用的。這在2.0的更高版本中得到修復。

最好,你應該 - 如果你想2.0 - 編譯2.0.65,而不是。 不過要注意2.0是EOL(自2013年起),所以它不再被Apache官方支持。

+0

謝謝。我沒有任何錯誤安裝了Apache 2.0.65。但無法安裝PHP 5.2.9。在運行以下命令後,libphp5.so不會被創建。 sudo ./configure --prefix =/home/satya/php5.2.9 --with-libdir =/lib/i386-linux-gnu --with-apxs2 =/home/satya/apache2.0.65/bin/apxs - with-mysql sudo make sudo make install它正在創建libphp5.a和libphp5.la你可以pl。讓我知道如何解決這個問題。我只需要使用php5.2.9。 –

相關問題