error while loading shared libraries: libcurlpp.so.0: cannot open shared object file: No such file or directory

Problem

I was able to compile and link a program using curlpp, but I get this error:

error while loading shared libraries: libcurlpp.so.0: cannot open shared object file: No such file or directory

Solution

This will may only work in Ubuntu:

  1. sudo bash -c "echo /usr/local/lib/ > /etc/ld.so.conf.d/local.conf"
  2. sudo /sbin/ldconfig

References

Your rating: None Average: 5 (2 votes)