在centos7.3上编译安装nginx-1.12.2 启动测试出错

[root@web02 local]# /usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libprofiler.so.0: cannot open shared object file: No such file or directory

从错误看出是缺少lib文件导致,进一步查看下  

[root@web02 local]# ldd $(which /usr/local/nginx/sbin/nginx)
linux-vdso.so.1 => (0x00007ffdd918e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fea2b1c8000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fea2afac000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fea2ad74000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fea2ab12000)
libssl.so.10 => /lib64/libssl.so.10 (0x00007fea2a8a0000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fea2a43e000)
libz.so.1 => /lib64/libz.so.1 (0x00007fea2a228000)
libgd.so.2 => /lib64/libgd.so.2 (0x00007fea29fe1000)
libprofiler.so.0 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007fea29c1d000)
/lib64/ld-linux-x86-64.so.2 (0x00007fea2b3d6000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fea29a1a000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fea297cc000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fea294e4000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fea292e0000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fea290ac000)
libXpm.so.4 => /lib64/libXpm.so.4 (0x00007fea28e9a000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007fea28b5c000)
libjpeg.so.62 => /lib64/libjpeg.so.62 (0x00007fea28906000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007fea286c9000)
libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007fea28423000)
libpng15.so.15 => /lib64/libpng15.so.15 (0x00007fea281f7000)
libm.so.6 => /lib64/libm.so.6 (0x00007fea27ef5000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fea27ce7000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fea27ae2000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fea278c8000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fea2769f000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fea27475000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fea2724e000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007fea27049000)  

可以看出libprofiler.so.0并没有找到

找出源文件

[root@web02 local]# find / -type f -name "libprofiler.so*"
/usr/local/lib/libprofiler.so.0.4.17
/usr/local/src/gperftools-2.6.90/.libs/libprofiler.so.0.4.17 

做软连接

[root@web02 local]# ln -sv /usr/local/lib/libprofiler.so.0.4.17 /lib64/libprofiler.so.0
‘/lib64/libprofiler.so.0’ -> ‘/usr/local/lib/libprofiler.so.0.4.17’  

再次检查

[root@web02 local]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx-1.12.2/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx-1.12.2/conf/nginx.conf test is successful

ok了。  

 

nginx检查报错 error while loading shared libraries: libprofiler.so.0: cannot open shared object file: No such file or directory的更多相关文章

  1. linux使用wkhtmltopdf报错error while loading shared libraries:

    官网提示 linux需要这些动态库.depends on: zlib, fontconfig, freetype, X11 libs (libX11, libXext, libXrender) 在li ...

  2. 10gRAC运行srvctl报错error while loading shared libraries:

    数据库10g才会有这个错,因为11g的grid和oracle是分开的. [oracle@news01 orcl]$ srvctl /u01/app/oracle/db_1/jdk/jre/bin/ja ...

  3. 运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory

    运行编译后的程序报错  error while loading shared libraries: lib*.so: cannot open shared object file: No such f ...

  4. 使用arm-none-eabi-gdb报错error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

    使用arm-none-eabi-gdb报错error while loading shared libraries: libncurses.so.5: cannot open shared objec ...

  5. svnadmin:error while loading shared libraries: libaprutil-1.so.0:cannot open shared object file: No such file or directory

    wdcp下安装svn后一直提示 svnadmin:error while loading shared libraries: libaprutil-1.so.0:cannot open shared ...

  6. 动态链接库找不到 : error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory

    问题: 运行gsl(GNU scientific Library)的函数库,用 gcc erf.c -I/usr/local/include -L/usr/local/lib64 -L/usr/loc ...

  7. ./filezilla: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

    opensuse系统 在filezilla官网下载压缩文件解压运行后报 ./filezilla: error while loading shared libraries: libpng12.so.0 ...

  8. error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file

    安装rac10g,出现例如以下错误: [root@rac2 oracle]# /u01/product/crs/root.sh WARNING: directory '/u01/product' is ...

  9. 启动uwsgi报错error while loading shared libraries: libpcre.so.1:

    启动uwsgi时候报错: [root@ richie]# /usr/bin/uwsgi --ini /usr/local/nginx/conf/uwsgi.ini /usr/bin/uwsgi: er ...

随机推荐

  1. cp 命令(转)

    原文:http://www.cnblogs.com/peida/archive/2012/10/29/2744185.html cp命令用来复制文件或者目录,是Linux系统中最常用的命令之一.一般情 ...

  2. POJ 3414 Pots(BFS+回溯)

    Pots Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 11705   Accepted: 4956   Special J ...

  3. 递归和for循环

    # -*- coding: utf-8 -*- #python 27 #xiaodeng #http://www.cnblogs.com/BeginMan/p/3223356.html #递归2 '非 ...

  4. Oracle快速克隆安装

    Oracle的家目录进行快速克隆,对同类型机器配置很高效的! 01.确认你在克隆数据库时,原数据库已经关闭 sqlplus   /   as sysdba; shutdown immediate ; ...

  5. bootstrap之UpdateStrings

    UpdateStrings package io.appium.android.bootstrap.handler; import io.appium.android.bootstrap.Androi ...

  6. Android 5.0 + IDA 6.8 调试经验分享

    如今升级快.网上的资料仅仅能做參考. 学到了NDK逆向这一块,昨天为了能让IDA 能动态调试SO,瞎折腾了非常久,这里分享一下我的经验. 工具: IDA pro 6.8 Android 5.x IDA ...

  7. 设置sqlplus访问远程oracle数据库的最快方法

    设置sqlplus访问远程oracle数据库的最快方法 时间:2010-01-21 10:57来源: 作者: 点击: 2次 设置sqlplus访问远程oracle数据库的最快方法,如果要连接远程数据库 ...

  8. Linux目录结构及解释(附图)

    ___/bin (binary二进制) 常用Linux命令 ___/boot 存放着启动Linux时使用的一些核心文件,包括一些链接文件以及镜像文件 ___/cdrom 这个目录在你刚刚安装系统的时候 ...

  9. 老毛桃pe装机工具备份系统

    电脑故障可以说是难以避免的,误操作或者修改了哪个设置系统就莫名其妙崩溃了.这在日常使用当中并不鲜见,许多用户就会寻求备份系统方法.有没有好的一键备份系统教程可以参考呢?在本篇教程中,就容我跟大家讲讲怎 ...

  10. 【js】正则表达式(I)

    正则表达式是由英文词语regular expression翻译过来的,就是符合某种规则的表达式.正则表达式在软件开发中应用非常广泛,例如,找出网页中的超链接,找出网页中的email地址,找出网页中的手 ...