nginx报错 symbol lookup error: /home/fdfs/nginx/sbin/nginx: undefined symbol: g_if_alias_prefix

升级nginx时,执行nginx -V时报错
/home/fdfs/nginx/sbin/nginx: symbol lookup error: /home/fdfs/nginx/sbin/nginx: undefined symbol: g_if_alias_prefix
在这里插入图片描述
以为是编译nginx时不完整,结果重新编译完再执行nginx -V还是报错
网上查看了类似的报错,有说是共享库的问题

我们nginx两台主机的配置是一样的,所以对比两台nginx主机的/lib目录,
发现有问题的nginx主机多了一条libfastcommon.so的软连接
在这里插入图片描述
在这里插入图片描述

libfastcommon.so是在编译安装fastdfs时做的软连接,怀疑可能是这个问题导致的,
选择删除掉软连接之后,再次执行nginx -V命令尝试
问题解决了
在这里插入图片描述

发布了25 篇原创文章 · 获赞 52 · 访问量 11万+
展开阅读全文

JNI 运行错误 symbol lookup error

12-12

```sh /usr/lib/jvm/java-6-openjdk-amd64/bin/java -Djava.library.path=../cef-swt-gtk-linux-x86_64-native/ -cp ./target/classes:./target/test-classes:$HOME/.m2/repository/org/eclipse/swt/org.eclipse.swt.gtk.linux.x86_64/3.7.2/org.eclipse.swt.gtk.linux.x86_64-3.7.2.jar com.zxg.cef.swt.test.TestWindow ``` 错误: /usr/lib/jvm/java-6-openjdk-amd64/bin/java: symbol lookup error: /home/xxx/code/workspace/eclipse_workspace/cef-swt-gtk-linux-x86_64-native/libcef-swt-gtk-linux-x86_64.so: undefined symbol: _Z13CefInitializeRK11CefMainArgsRK13CefStructBaseI17CefSettingsTraitsE9CefRefPtrI6CefAppE makefile: ```makefile OBJS = cef-swt-gtk-linux-x86_64.o JAVA_HOME = /usr/lib/jvm/java-6-openjdk-amd64 CXXFLAGS = -fPIC -Wall -fmessage-length=0 -I$(JAVA_HOME)/include -I/usr/local/include/cef3 `pkg-config --cflags gtk+-2.0` LIBS = -lcef -lffmpegsumo `pkg-config --libs gtk+-2.0` LDFLAGS := -shared -fpic -Wl,-rpath,/usr/local/lib CXX = g++ TARGET = libcef-swt-gtk-linux-x86_64.so $(TARGET): $(OBJS) $(CXX) $(LDFLAGS) -o $(TARGET) $(OBJS) $(LIBS) all: $(TARGET) ../cef-swt-gtk-linux-x86_64/target/classes/com/zxg/cef/swt/Cef.class: ../cef-swt-gtk-linux-x86_64/src/main/java/com/zxg/cef/swt/Cef.java mvn -f ../cef-swt-gtk-linux-x86_64/pom.xml compile com_zxg_cef_swt_Cef.h: ../cef-swt-gtk-linux-x86_64/target/classes/com/zxg/cef/swt/Cef.class $(JAVA_HOME)/bin/javah -classpath ../cef-swt-gtk-linux-x86_64/target/classes com.zxg.cef.swt.Cef cef-swt-gtk-linux-x86_64.o: cef-swt-gtk-linux-x86_64.cpp com_zxg_cef_swt_Cef.h $(CXX) $(CXXFLAGS) -c -o cef-swt-gtk-linux-x86_64.o cef-swt-gtk-linux-x86_64.cpp clean: rm -f $(OBJS) $(TARGET) ``` 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 书香水墨 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览