跳转至

ldconfig 命令


2015-10-30 by dongnan

环境

操作系统: openSUSE 13.2
软件版本: postgresql-9.3.6

问题描述

ERROR:  could not load library "/usr/lib/postgresql93/lib64/plperl.so": 
libperl.so: cannot open shared object file: No such file or directory

解决方法

文件路径

find / -type f -name "libperl.so"

/usr/lib/perl5/5.20.1/x86_64-linux-thread-multi/CORE/libperl.so

编辑文件

vim /etc/ld.so.conf

# 添加一行
/usr/lib/perl5/5.20.1/x86_64-linux-thread-multi/CORE/

即时生效

ldconfig

命令帮助

ldconfig --help
Usage: ldconfig [OPTION...]
Configure Dynamic Linker Run Time Bindings.

  -c, --format=FORMAT        Format to use: new, old or compat (default)
  -C CACHE                   Use CACHE as cache file
  -f CONF                    Use CONF as configuration file
  -i, --ignore-aux-cache     Ignore auxiliary cache file
  -l                         Manually link individual libraries.
  -n                         Only process directories specified on the command
                             line.  Don't build cache.
  -N                         Don't build cache
  -p, --print-cache          Print cache
  -r ROOT                    Change to and use ROOT as root directory
  -v, --verbose              Generate verbose messages
  -X                         Don't generate links
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -V, --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.



回到页面顶部