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.
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:
- 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
- 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