如何解决Linux符号查找错误未定义的符号

如何解决Linux符号查找错误未定义的符号

网络上有很多与未定义符号查找错误相关的类似问题,但没有一个解释如何处理该错误。

我正在使用 RHEL7,并尝试mysql-workbench-community-6.3.10-1.el7.x86_64.rpm使用命令从包中安装 MySQL-workbench rpm

有一些依赖性问题,我尝试一一解决。有几次它导致了python-cryptopython2-crypto python-paramiko包的问题,​​不知何故我解决了依赖关系。有好几次我不得不卸载python相关的包。

最后,工作台已安装,但我遇到了符号查找错误,如下所示:

Found /lib64/libproj.so.0

/usr/libexec/mysql-workbench/mysql-workbench-bin: symbol lookup error: /usr/lib64/mysql-workbench/liblinux_utilities.so.6.3.10: undefined symbol: g_application_add_main_option_entries

我搜索了一些论坛,有些讨论超出了我的理解,尽管我尝试使用命令找到一些有关它的信息,nm我认为这可以帮助你们专家理解这个问题。


nm: /usr/lib64/mysql-workbench/liblinux_utilities.so.6.3.10: no symbols

[root@MYSQLTEST sqladmin]# nm -A /usr/libexec/mysql-workbench/mysql-workbench-bin | grep g_application_add_main_option_entries

nm: /usr/libexec/mysql-workbench/mysql-workbench-bin: no symbols

[root@MYSQLTEST sqladmin]# nm -u /usr/libexec/mysql-workbench/mysql-workbench-bin | grep g_application_add_main_option_entries

nm: /usr/libexec/mysql-workbench/mysql-workbench-bin: no symbols

[root@MYSQLTEST sqladmin]# nm -n /usr/libexec/mysql-workbench/mysql-workbench-bin | grep g_application_add_main_option_entries

nm: /usr/libexec/mysql-workbench/mysql-workbench-bin: no symbols

root@MYSQLTEST sqladmin]# file /usr/libexec/mysql-workbench/mysql-workbench-bin

/usr/libexec/mysql-workbench/mysql-workbench-bin: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0xae7dc55c9352d44d2fe6ef881c4d019211d4c69d, stripped```

Please help me out with how should I go about resolving it. Please if possible provide steps to resolve it. I will be glad to provide if any more info is required.

Thank you.

相关内容