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
。
謝謝。我沒有任何錯誤安裝了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。 –