I've tried building grpc, but when trying to load an app I get an error due to missing shared object file, a symbolic link which is present in the build tree but not in the install path. The first time I tried installing grpc this was link was present, but subsequent attempts have resulted in missing symlinks. I could create the link myself of course, but really I am curious why the link is not being made at install. I'm on ubuntu.
...
Error: libgrpc.so.0: cannot open shared object file: No such file or directory
...
Here are my steps:
$ make
$ make install prefix=/path/to/install
$ make verify-install
Your system looks ready to go.
When I check the libs dir I see the following:
install/lib$ ls -al | grep grpc
-rwxr-xr-x 1 root root 5811678 Apr 26 10:45 libgrpc.a
-rwxr-xr-x 1 root root 304262 Apr 26 10:45 libgrpc++.a
lrwxrwxrwx 1 root root 18 Apr 26 10:50 libgrpc.so -> libgrpc.so.0.6.0.0
lrwxrwxrwx 1 root root 20 Apr 26 10:50 libgrpc++.so -> libgrpc++.so.0.6.0.0
-rwxr-xr-x 1 root root 2494056 Apr 26 10:50 libgrpc.so.0.6.0.0
-rwxr-xr-x 1 root root 184664 Apr 26 10:50 libgrpc++.so.0.6.0.0
-rwxr-xr-x 1 root root 566406 Apr 26 10:45 libgrpc_unsecure.a
-rwxr-xr-x 1 root root 271000 Apr 26 10:45 libgrpc++_unsecure.a
lrwxrwxrwx 1 root root 27 Apr 26 10:50 libgrpc_unsecure.so -> libgrpc_unsecure.so.0.6.0.0
lrwxrwxrwx 1 root root 29 Apr 26 10:50 libgrpc++_unsecure.so -> libgrpc++_unsecure.so.0.6.0.0
-rwxr-xr-x 1 root root 272120 Apr 26 10:50 libgrpc_unsecure.so.0.6.0.0
-rwxr-xr-x 1 root root 176344 Apr 26 10:50 libgrpc++_unsecure.so.0.6.0.0
Here's what I see in grpc/libs/opt, the missing link (and some more):
grpc/libs/opt$ ls -al | grep grpc
-rw-rw-r-- 1 bdunlay bdunlay 5811678 Apr 26 10:45 libgrpc.a
-rw-rw-r-- 1 bdunlay bdunlay 304262 Apr 26 10:45 libgrpc++.a
-rw-rw-r-- 1 bdunlay bdunlay 4660912 Apr 26 10:44 libgrpc_plugin_support.a
lrwxrwxrwx 1 bdunlay bdunlay 18 Apr 26 10:44 libgrpc.so -> libgrpc.so.0.6.0.0
lrwxrwxrwx 1 root root 20 Apr 26 10:50 libgrpc++.so -> libgrpc++.so.0.6.0.0
lrwxrwxrwx 1 bdunlay bdunlay 18 Apr 26 10:44 libgrpc.so.0 -> libgrpc.so.0.6.0.0
lrwxrwxrwx 1 root root 20 Apr 26 10:50 libgrpc++.so.0 -> libgrpc++.so.0.6.0.0
-rwxrwxr-x 1 bdunlay bdunlay 2494056 Apr 26 10:50 libgrpc.so.0.6.0.0
-rwxr-xr-x 1 root root 184664 Apr 26 10:50 libgrpc++.so.0.6.0.0
-rw-rw-r-- 1 bdunlay bdunlay 345610 Apr 26 11:11 libgrpc_test_util.a
-rw-rw-r-- 1 bdunlay bdunlay 566406 Apr 26 10:45 libgrpc_unsecure.a
-rw-rw-r-- 1 bdunlay bdunlay 271000 Apr 26 10:45 libgrpc++_unsecure.a
lrwxrwxrwx 1 bdunlay bdunlay 27 Apr 26 10:44 libgrpc_unsecure.so -> libgrpc_unsecure.so.0.6.0.0
lrwxrwxrwx 1 root root 29 Apr 26 10:50 libgrpc++_unsecure.so -> libgrpc++_unsecure.so.0.6.0.0
lrwxrwxrwx 1 bdunlay bdunlay 27 Apr 26 10:44 libgrpc_unsecure.so.0 -> libgrpc_unsecure.so.0.6.0.0
lrwxrwxrwx 1 root root 29 Apr 26 10:50 libgrpc++_unsecure.so.0 -> libgrpc++_unsecure.so.0.6.0.0
-rwxrwxr-x 1 bdunlay bdunlay 272120 Apr 26 10:50 libgrpc_unsecure.so.0.6.0.0
-rwxr-xr-x 1 root root 176344 Apr 26 10:50 libgrpc++_unsecure.so.0.6.0.0