添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Ubuntu18.04编译Nginx报错objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed

最新推荐文章于 2023-06-08 17:26:11 发布
最新推荐文章于 2023-06-08 17:26:11 发布

在Ubuntu18.04上安装Ngnix,在编译步骤出现如下错误:

cc1: all warnings being treated as errors
objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed
make[1]: *** [objs/src/core/ngx_murmurhash.o] Error 1
make[1]: Leaving directory '/home/wzj/tools/nginx/nginx-1.11.3'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2

解决办法
找到对应的Maakefile文件,将gcc参数中的-Werror去掉。

我上面显示的是./objs/Makefile文件,我打开看了下,将第三行的-Werror去掉就可以


---------------------
作者:dmfrm
来源:CSDN
原文:https://blog.csdn.net/u010889616/article/details/82867091
版权声明:本文为博主原创文章,转载请附上博文链接!

Ubuntu18.04编译Nginx报错objs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failed 在Ubuntu18.04上安装Ngnix,在编译步骤出现如下错误:cc1: all warnings being treated as errorsobjs/Makefile:460: recipe for target 'objs/src/core/ngx_murmurhash.o' failedmake[1]: *** [objs/src/core/ngx_murmurhash.o] ...
最近运行QtWindows版本,发现无法copy,动态库生成后没法放到指定的位置。目前尚未解决,先记录一下。有知道的朋友不妨留言告知,谢谢。 Makefile .Debug:168: re cipe for target 'compiler_moc_predefs_clean' failed process_begin: CreateProcess(NULL, rm -f debug/moc_predefs.h, ...) failed . make (e=2): 系统找不到指定的文件。 Makefile .Debug:174: re cipe for target 'compiler_moc_hea
Ubuntu18.04 编译 Nginx 报错 obj s/ Makefile :440: re cipe for target obj s/ src / core / ngx _ murmur hash .o’ failed 执行完 make 以后 报错 ~/ nginx -1.8.1$ sudo make ----------------------------------------- cc1: all warnings be...
make -f obj s/ Makefile make [1]: 进入目录“/opt/ nginx -1.8.1” cc -c -pipe -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g -I src / core -I src /event -I src /event/modules -I src /os/unix -I obj s -o obj s/ src / core / ngx _ murmur hash .o src / core / ngx _ murmur hash .c src /c.
Ubuntu18.4 编译 nginx 出错 Ubuntu18.04 编译 Nginx 报错 obj s/ Makefile :440: re cipe for target obj s/ src / core / ngx _ murmur hash .o’ failed 执行完 make 以后 报错 nginx 目录下进入 obj s目录,然后在编辑 Makefile 文件 MakeFile 文件 最后返回 nginx 安装目录进行 编译 make && make install 最后就会 编译 成功 错误原因是: 查了-Werro
src /os/unix/ ngx _user.c: In function ‘ ngx _libc_crypt’: src /os/unix/ ngx _user.c:36:7: error: ‘struct crypt_data’ has no member named ‘current_salt’ cd.current_salt[0] = ~salt[0]; make [1]: *** [ obj s/ Makefile :774: obj s/ src /os/unix/ ngx _
要解决glibc.so.6: version `glibc_2.28' not found 报错 ,我们需要升级 Ubuntu18.04 系统中的glibc版本至2.27。 首先,我们需要添加一个PPA源以获取新版本的glibc。打开终端并运行以下命令来添加PPA源: sudo add-apt-repository ppa:ubuntu-toolchain-r/test 接着,运行更新命令以获取最新的软件包列表: sudo apt-get update 然后,安装glibc2.27的软件包: sudo apt-get install libc6 在安装过程中,系统会自动将之前的glibc版本替换为2.27。这将需要一些时间,请耐心等待。 安装完成后,重新启动系统以使更改生效: sudo reboot 重新启动后,应该不再出现"glibc.so.6: version `glibc_2.28' not found" 报错 。 请注意,升级glibc可能会导致系统不稳定或不兼容某些软件。在进行此操作之前,请先备份重要数据,并确保您知道如何回滚到原始glibc版本。此外,仅在确定需要升级的情况下才进行此操作,因为大多数情况下,使用默认的glibc版本是安全和稳定的。