Linux系统下
点击qtcreator图表无法运行
且使用命令运行出现如下错误时
[root@localhost ~] # qtcreator
qtcreator: error while loading share libraries: libpcre2-16.so.0:cannot open(这是我自己的找不到libpcre2-16.so.0)
hared pbject file :No such file or director
出现这类错因为系统不知道xxx.so文件放在哪个目录下,这时候要在/etc/ld.so.conf中加入xxx.so所在的目录
故在ld.so.conf文件中添加一行 /xxx/xxxx(.so文件的目录),保存后
[root@localhost ~] # : /sbin/ldconfig -v
更新配置
PS:
不知道文件在哪可以用 whereis命令