Apache2 安装错误 recipe for target 'all-recursive' failed
2017-07-28 15:32
5491 查看
0down votefavorite | I am getting error while processing make install. My code is as follows: git clone https://github.com/apache/httpd.git cd httpd svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr && cd srclib/apr && ./buildconf && ./build libtool && make && make install ./buildconf && ./configure --prefix=/usr/local && make && make install echo "ServerName localhost" >> /usr/local/conf/httpd.conf Error is as follow : ... Building shared: mod_mime.la make[4]: Entering directory '/httpd/modules/http' /usr/local/apr/build-2/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/httpd/os/unix -I/httpd/include -I/usr/local/apr/include/apr-2 -I/httpd/modules/aaa -I/httpd/modules/cache -I/httpd/modules/core -I/httpd/modules/database -I/httpd/modules/filters -I/httpd/modules/ldap -I/httpd/modules/loggers -I/httpd/modules/lua -I/httpd/modules/proxy -I/httpd/modules/session -I/httpd/modules/ssl -I/httpd/modules/test -I/httpd/server -I/httpd/modules/arch/unix -I/httpd/modules/dav/main -I/httpd/modules/generators -I/httpd/modules/mappers -prefer-pic -c mod_mime.c && touch mod_mime.slo /usr/local/apr/build-2/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -o mod_mime.la -rpath /usr/local/modules -module -avoid-version mod_mime.lo make[4]: Leaving directory '/httpd/modules/http' make[3]: Leaving directory '/httpd/modules/http' make[3]: Entering directory '/httpd/modules/http2' Building shared: mod_http2.la make[4]: Entering directory '/httpd/modules/http2' /usr/local/apr/build-2/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/httpd/os/unix -I/httpd/include -I/usr/local/apr/include/apr-2 -I/httpd/modules/aaa -I/httpd/modules/cache -I/httpd/modules/core -I/httpd/modules/database -I/httpd/modules/filters -I/httpd/modules/ldap -I/httpd/modules/loggers -I/httpd/modules/lua -I/httpd/modules/proxy -I/httpd/modules/session -I/httpd/modules/ssl -I/httpd/modules/test -I/httpd/server -I/httpd/modules/arch/unix -I/httpd/modules/dav/main -I/httpd/modules/generators -I/httpd/modules/mappers -prefer-pic -c mod_h2.c && touch mod_h2.slo mod_h2.c:25:29: fatal error: nghttp2/nghttp2.h: No such file or directory #include <nghttp2/nghttp2.h> ^ compilation terminated. /httpd/build/rules.mk:213: recipe for target 'mod_h2.slo' failed make[4]: *** [mod_h2.slo] Error 1 make[3]: *** [shared-build-recursive] Error 1 make[4]: Leaving directory '/httpd/modules/http2' /httpd/build/rules.mk:117: recipe for target 'shared-build-recursive' failed make[3]: Leaving directory '/httpd/modules/http2' /httpd/build/rules.mk:117: recipe for target 'shared-build-recursive' failed make[2]: Leaving directory '/httpd/modules' make[2]: *** [shared-build-recursive] Error 1 /httpd/build/rules.mk:117: recipe for target 'shared-build-recursive' failed make[1]: Leaving directory '/httpd' make[1]: *** [shared-build-recursive] Error 1 /httpd/build/rules.mk:75: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 Please provide me the solution server software-installation apache2 apache2.4
| ||||
a comment |
1 Answer
activeoldestvotesup vote0down vote | The partgit clone https://github.com/apache/httpd.git cd httpd svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr && cd srclib/apr && ./buildconf && ./build libtool && make && make install ./buildconf && ./configure --prefix=/usr/local && make && make install echo "ServerName localhost" >> /usr/local/conf/httpd.conf is pretty confusing. But because of the error message: Install the missing libraries via sudo apt-get install libnghttp2-dev sudo apt-get install libxml2-dev And you have to use sudo make install instead of make install at the end of your command queue. Otherwise you will probably get immediately the next error.
| ||||||||||||||||||||
|
0down votefavorite | I am getting error while processing make install. My code is as follows: git clone https://github.com/apache/httpd.git cd httpd svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr && cd srclib/apr && ./buildconf && ./build libtool && make && make install ./buildconf && ./configure --prefix=/usr/local && make && make install echo "ServerName localhost" >> /usr/local/conf/httpd.conf Error is as follow : ... Building shared: mod_mime.la make[4]: Entering directory '/httpd/modules/http' /usr/local/apr/build-2/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/httpd/os/unix -I/httpd/include -I/usr/local/apr/include/apr-2 -I/httpd/modules/aaa -I/httpd/modules/cache -I/httpd/modules/core -I/httpd/modules/database -I/httpd/modules/filters -I/httpd/modules/ldap -I/httpd/modules/loggers -I/httpd/modules/lua -I/httpd/modules/proxy -I/httpd/modules/session -I/httpd/modules/ssl -I/httpd/modules/test -I/httpd/server -I/httpd/modules/arch/unix -I/httpd/modules/dav/main -I/httpd/modules/generators -I/httpd/modules/mappers -prefer-pic -c mod_mime.c && touch mod_mime.slo /usr/local/apr/build-2/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -o mod_mime.la -rpath /usr/local/modules -module -avoid-version mod_mime.lo make[4]: Leaving directory '/httpd/modules/http' make[3]: Leaving directory '/httpd/modules/http' make[3]: Entering directory '/httpd/modules/http2' Building shared: mod_http2.la make[4]: Entering directory '/httpd/modules/http2' /usr/local/apr/build-2/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I/httpd/os/unix -I/httpd/include -I/usr/local/apr/include/apr-2 -I/httpd/modules/aaa -I/httpd/modules/cache -I/httpd/modules/core -I/httpd/modules/database -I/httpd/modules/filters -I/httpd/modules/ldap -I/httpd/modules/loggers -I/httpd/modules/lua -I/httpd/modules/proxy -I/httpd/modules/session -I/httpd/modules/ssl -I/httpd/modules/test -I/httpd/server -I/httpd/modules/arch/unix -I/httpd/modules/dav/main -I/httpd/modules/generators -I/httpd/modules/mappers -prefer-pic -c mod_h2.c && touch mod_h2.slo mod_h2.c:25:29: fatal error: nghttp2/nghttp2.h: No such file or directory #include <nghttp2/nghttp2.h> ^ compilation terminated. /httpd/build/rules.mk:213: recipe for target 'mod_h2.slo' failed make[4]: *** [mod_h2.slo] Error 1 make[3]: *** [shared-build-recursive] Error 1 make[4]: Leaving directory '/httpd/modules/http2' /httpd/build/rules.mk:117: recipe for target 'shared-build-recursive' failed make[3]: Leaving directory '/httpd/modules/http2' /httpd/build/rules.mk:117: recipe for target 'shared-build-recursive' failed make[2]: Leaving directory '/httpd/modules' make[2]: *** [shared-build-recursive] Error 1 /httpd/build/rules.mk:117: recipe for target 'shared-build-recursive' failed make[1]: Leaving directory '/httpd' make[1]: *** [shared-build-recursive] Error 1 /httpd/build/rules.mk:75: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 Please provide me the solution server software-installation apache2 apache2.4
| ||||
a comment |
1 Answer
activeoldestvotesup vote0down vote | The partgit clone https://github.com/apache/httpd.git cd httpd svn co http://svn.apache.org/repos/asf/apr/apr/trunk srclib/apr && cd srclib/apr && ./buildconf && ./build libtool && make && make install ./buildconf && ./configure --prefix=/usr/local && make && make install echo "ServerName localhost" >> /usr/local/conf/httpd.conf is pretty confusing. But because of the error message: Install the missing libraries via sudo apt-get install libnghttp2-dev sudo apt-get install libxml2-dev And you have to use sudo make install instead of make install at the end of your command queue. Otherwise you will probably get immediately the next error.
| ||||||||||||||||||||
|
相关文章推荐
- Makefile:xxx: recipe for target xxx failed +【顺带搞懂了】如何忽略makefile执行过程中的某些命令的错误而得以继续运行
- 很感谢这篇文张【已解决】Makefile:xxx: recipe for target xxx failed +【顺带搞懂了】如何忽略makefile执行过程中的某些命令的错误而得以继续运行
- Osmocombb项目编译GnuArmToolchain中的GCC4.5.2时遇到recipe for target 'doc/cpp.info' failed(texinfo)错误的解决方法
- 编译ROS的package包出错,提示recipe for target 'all' failed
- Makefile:160: recipe for target 'all' failed (Ubuntu 16.06 + Opencv3.2)解决办法
- [7]_编译内核错误提示2:recipe for target 'kernel/timeconst.h' failed 和 "mkimage" command not found - U-Boot
- Makefile:xxx: recipe for target xxx failed +如何忽略makefile执行过程中的某些命令的错误而得以继续运行
- 交叉编译openssh出现错误Makefile:548: recipe for target 'install_sw' failed
- Makefile:xxx: recipe for target xxx failed +【顺带搞懂了】如何忽略makefile执行过程中的某些命令的错误而得以继续运行
- opencv recipe for target 'all' failed解决
- /opt/linux/linux-3.5/scripts/kconfig/Makefile:21: recipe for target 'menuconfig' failed错误
- Caffe编译出现:Makefile:603: recipe for target '.build_release/lib/libcaffe-nv.so.0.16.6' failed
- Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误
- recipe for target 'doc/cpp.info' failed
- Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误
- 编译busybox时使用make menuconfig命令出现下列问题:recipe for target 'scripts/kconfig/lxdialog/checklist.o' failed
- go-ethereum 1.6 Makefile:15: recipe for target 'geth' failed
- caffe编译出现:Makefile:657: recipe for target '.build_release/tools/convert_imageset.bin' failed
- 采用MingW编译OPENCV,出现recipe for target xxx/can't create precompiled header错误解决方法
- Spread for ASP.NET 常见安装错误解决办法(Failed while processing WebVirtualDirs)