collect2: error: ld returned 1 exit status
解决办法:
Cd srclib(查看是否有Makefile)
Cp -r apr-1.5.2 /httpd-2.4.27/srclib/apr
Cp -r apr-util-1.5.4 /httpd-2.4.27/srclib/apr-util
Make clean
./configure \ //这里的反斜杠是脱义字符,加上它我们可以把一行命令写成多行
--prefix=/usr/local/apache2.4 \
--with-included-apr
--enable-moudles=most
--enable-so \
--enable-mods-shared=all
-with-npm=prefork
Make -j4 && make install