I wrote a C app that uses the PCRE library. Everything works on my own computer. However, when I copy the binary over to another computer and run it, it gives the following error:
/libexec/ld-elf.so.1: Shared object “libpcre.so.0” not found, required by “myapp”
I know I can probably get it to work by installing the PCRE lib on the target computer. However, I’m wondering if there’s a more convenient way of doing this? (just copying over a few lib files?)
I tried to copy over the libpcre.so.0 file, but it didn’t work.
Any help is appreciated!
Thanks,
It’s better to either install it or link it in statically. The former, of course, is lighter on resources. The best way to ensure compatibility would be to build the package for target system, specifying all dependencies (depends on the distribution, of coursE).