jshn: error while loading shared libraries: libjson.so.0: cannot open shared object file: No such file or directory
时间: 2023-10-15 12:06:04 浏览: 177
这个错误是因为在调用jshn时找不到共享库libjson.so.0所致。有两种可能的错误原因:
1. 操作系统没有包含所需的共享库,或者共享库的版本不匹配。
2. 共享库已经安装,但程序在默认的共享库路径中找不到该共享库。
解决这个问题的方法有:
1. 确保操作系统中安装了正确版本的共享库。你可以使用包管理器或从官方网站下载并手动安装所需的共享库。
2. 如果共享库已经安装,但程序找不到它,你可以尝试将共享库路径添加到LD_LIBRARY_PATH环境变量中。这可以通过以下命令实现:
export LD_LIBRARY_PATH=/path/to/library:$LD_LIBRARY_PATH
请确保将"/path/to/library"替换为实际共享库的路径。这将告诉程序在指定路径中查找共享库。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [error while loading shared libraries: libjson-c.so.4: cannot open shared object file: No such file](https://blog.csdn.net/weixin_48430195/article/details/113584547)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [共享库报错“error while loading shared libraries: lib**.so.**”](https://blog.csdn.net/qq_44991159/article/details/116495259)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文