Tuesday, August 2, 2016

Shared library support linux

Shared libs are know by linking its path in /etc/ld.so.conf.d/

Recently i came across an error in asterisk while trying to compile OPUS codec as shared lib support to asterisk

asterisk: error while loading shared libraries: libopus.so

But OPUS was install under /usr/local/lib

Now to make it available to asterisk do

echo '/usr/local/lib' > /etc/ld.so.conf.d/usr_local.conf

then update ldconfig by
ldconfig && ldconfig -v

No comments:

Post a Comment

CSS tricks

Mixed paint in background: background: linear-gradient(to right, #b6e358, #38b143) Grid view: display: grid; grid-template-columns: a...