PBC installation error can not find a shared library libpbc.so.1 under CentOS

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/z695516174/article/details/87606726

problem

In the run pbc go when you need to install GMP and PBC, but after installing the PBC error, can not find a shared library libpbc.so.1.

solve

I find a lot of information and found that there are two solutions:

  1. The non-standard path to join /etc/ld.so.conf, then run ldconfig generate /etc/ld.so.cache. When ld.so loads the shared library, looks from ld.so.cache
  2. Add shared library path in / etc / profile, namely:
    export LD_LIBRARY_PATH=....

    I go directly to the first solution, but found that the content is in /etc/ld.so.conf

include ld.so.conf.d/*.conf

View ld.so.conf.d the folders, which are all found in the conf file.

One reads as follows

/usr/lib64/dyninst

So, I then copy it, also wrote a conf file, content libpbc.so.1 the path:

/usr/local/lib

(The route may be directly written in the ld.so.conf)

Then we want to update cache:

sudo ldconfig

problem solved.

reference

https://deepfuture.iteye.com/blog/595646

https://blog.csdn.net/mndscc/article/details/46854865

https://zhidao.baidu.com/question/365836993458778732.html

Guess you like

Origin blog.csdn.net/z695516174/article/details/87606726