我正在尝试在ubuntu 18.04上运行自定义二进制文件。
但是它一直给我错误...
atp@atp:~$ G_station
G_station: error while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory
我做了一个Ldd G_station,它显示下面的文件缺少链接。
libjson-c.so.2 => not found
我已经下载了libjson0的软件包“ libjson0-dev_0.11-4_amd64.deb” 但是安装失败以及...
atp@atp:~/Downloads$ sudo dpkg -i /home/atp/Downloads/libjson0-dev_0.11-4_amd64.deb
[sudo] password for atp:
Selecting previously unselected package libjson0-dev:amd64.
(Reading database ... 176091 files and directories currently installed.)
Preparing to unpack .../libjson0-dev_0.11-4_amd64.deb ...
Unpacking libjson0-dev:amd64 (0.11-4) ...
dpkg: dependency problems prevent configuration of libjson0-dev:amd64:
libjson0-dev:amd64 depends on libjson-c-dev (= 0.11-4); however:
Version of libjson-c-dev:amd64 on system is 0.12.1-1.3.
libjson0-dev:amd64 depends on libjson0 (= 0.11-4); however:
Package libjson0 is not installed.
dpkg: error processing package libjson0-dev:amd64 (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libjson0-dev:amd64
atp@atp:~/Downloads$
该二进制文件先前是在ubuntu14.04系统上编译的,其中ldd G_station显示...
libjson-c.so.2 => /lib/x86_64-linux-gnu/libjson-c.so.2 (0x00007fce23ed3000)
任何想法都可以解决上述缺失的包裹。